@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lexend:wght@100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Outfit:wght@100..900&family=Playwrite+IT+Moderna:wght@100..400&family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Space+Grotesk:wght@300..700&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');


:root {

    --font1: "Nunito", sans-serif;
    --font2: "Playwrite IT Moderna", cursive;
    --font3: "Bebas Neue", sans-serif;
    --font4: "Outfit", sans-serif;
    --font5: "Titillium Web", sans-serif;
    --font6: "Space Grotesk", sans-serif;
    --font7: "Prompt", sans-serif;
    --font8: "Lexend", sans-serif;

}

.menu {
    padding: 0.5rem;
    background: linear-gradient(45deg, #212f3d80, #27374690);
    position: relative;
    display: flex;
    justify-content: center;
    border-radius: 15px;
    border: 1px solid #34495e;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}

.link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 40px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transform-origin: center left;
    transition: width 0.2s ease-in;
    text-decoration: none;
    color: inherit;
}

.link:before {
    position: absolute;
    z-index: -1;
    content: "";
    display: block;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    top: 0;
    transform: translateX(100%);
    transition: transform 0.2s ease-in;
    transform-origin: center right;
    background: linear-gradient(25deg, #283747, #212f3c);
}

.link:hover,
.link:focus {
    outline: 0;
    width: 140px;
}

.link:hover:before,
.link:focus:before,
.link:hover .link-title,
.link:focus .link-title {
    transform: translateX(0);
    opacity: 1;
}

.link-icon {
    width: 28px;
    height: 28px;
    display: block;
    flex-shrink: 0;
    left: 18px;
    position: absolute;
}

.link-icon svg {
    width: 28px;
    height: 28px;
}

.link-title {
    transform: translateX(100%);
    transition: transform 0.2s ease-in;
    transform-origin: center right;
    display: block;
    text-align: center;
    text-indent: 28px;
    width: 100%;
}

/* header  */
header {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav {
    margin: 10px 0;
}

/* home  */

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: auto;
}

.home h1 {
    margin: 10px 0;
    color: #fff;
}

.home h2 {
    color: #fdfefe;
    margin: 20px 0;
}

.home .space {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home .space p {
    text-align: justify;
    font-family: var(--font5);
    color: #bfc9ca;
}

/* media querry  */
@media screen and (max-width:768px) {
    .home .space p {
        width: 80%;
    }

    .home h1 {
        text-align: center;
    }


}

/* media querry  */
@media screen and (min-width:770px) {
    .home .space p {
        width: 70%;
    }
}

/* certificate button  */

.button {
    width: 200px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0px 15px;
    background-color: rgba(66, 66, 66, 0.5);
    border-radius: 10px;
    color: white;
    border: none;
    position: relative;
    cursor: pointer;
    transition-duration: .2s;
    margin-top: 30px;
}

.bell {
    width: 13px;
}

.bell path {
    fill: rgb(0, 206, 62);
}

.arrow {
    position: absolute;
    right: 0;
    width: 30px;
    height: 100%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button:hover {
    background-color: rgb(77, 77, 77);
    transition-duration: .2s;
}

.button:hover .arrow {
    animation: slide-right .6s ease-out both;
}

/* arrow animation */
@keyframes slide-right {
    0% {
        transform: translateX(-10px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.button:active {
    transform: translate(1px, 1px);
    transition-duration: .2s;
}

/* work or certificates  */

.work {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.work h2 {
    text-align: center;
}

.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

}

.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 400px;
    height: 320px;
    padding: 0.5rem;
    background: linear-gradient(45deg, #212f3d80, #27374690);
    position: relative;
    display: flex;
    justify-content: center;
    border-radius: 15px;
    border: 1px solid #34495e;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
    transition: 1s ease;

}

.box:hover {
    transform: scale(1.1);
    transition: 1s ease;
}

.box img {
    width: 350px;
    height: 250px;
    object-fit: cover;
}

.box .bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    flex-direction: row;
    gap: 35px;
}

.box .bottom a {
    background: linear-gradient(45deg, #5353ff, #3131d3);
    text-shadow: 0 0 1px #ff53c6;
    font-weight: 600;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


@media screen and (max-width:768px) {
    .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .box {
        width: 250px;
        height: 200px;
    }

    .box img {
        width: 220px;
        height: 150px;
        object-fit: cover;
    }

}

@media screen and (max-width:565px) {
    .container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .box {
        width: 300px;
        height: 250px;
    }

    .box img {
        width: 280px;
        height: 190px;
        object-fit: cover;
    }

}



/* RIBBON  */
.ribbon {
    width: 100%;
    height: 70vh;
    overflow: hidden !important;
    position: relative;
}

.ribbon_line::before {
    content: 'Web Developer';
    position: absolute;
    width: 120%;
    height: 40px;
    background-image: linear-gradient(45deg, #ff6547 0%, #ffb144 51%, #ff7053 100%);
    transform: rotate(10deg) translateY(100px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.23);
}

.ribbon_line::after {
    content: '';
    position: absolute;
    width: 10px;
    bottom: 0;
    left: 0;
    height: 10px;
    z-index: -1;
    box-shadow: 140px -140px #cc3f47;
    background-image: linear-gradient(45deg, #FF512F 0%, #F09819 51%, #FF512F 100%);
}

#ribbon-2::before {
    content: '';
    z-index: -4;
    position: absolute;
    top: 40%;
    width: 120%;
    height: 40px;
    background: linear-gradient(170deg, rgba(58, 56, 56, 0.623) 0%, rgb(31, 31, 31) 100%);
    transform: rotate(-2deg) translateY(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.23);
}

/* media querry  */

@media screen and (max-width:678px) {
    #ribbon-2::before {
        top: 50%;
        transform: rotate(-8deg) translateY(0px) translateX(-20px);
    }
}


/* FOOTER  */


/* FOOTER  */

.footer {
    padding-block: 4rem 2rem;
}

.footer__container,
.footer__content {
    row-gap: 3rem;
}

.footer__logo {
    justify-self: center;
    font-size: var(--h1-font-size);
    color: #F09819;
    font-family: var(--font8);
}

.footer__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

.footer__social,
.footer__pay,
.footer__form {
    display: flex;
    column-gap: 1rem;
}

.footer__social-link {
    font-size: 1.5rem;
    color: var(--first-color);
    transition: transform .4s;
}

.footer__social-link:hover {
    transform: translateY(-.25rem);
}

.footer__pay-img {
    width: 30px;
    filter: var(--shadow-small-img);
}

.footer__form {
    padding: .5rem;
    background-color: var(--container-color);
    box-shadow: 0 4px 16px hsla(353, 100%, 8%, .1);
    border-radius: 4rem;
}

.footer__input {
    width: 100%;
    background: transparent;
    padding-left: .75rem;
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

.footer__input::placeholder {
    color: var(--text-color);
}

.footer__button {
    padding-block: .75rem;
    cursor: pointer;
    padding: 5px 10px;
    color: #fff;
    border-radius: 16px;
    font-size: 14px;
    background-color: #F09819;
}

.footer__policy {
    display: flex;
    column-gap: 2rem;
    justify-content: center;
    margin-top: 5rem;
}

.footer__link {
    font-size: var(--small-font-size);
    color: var(--text-color);
}

.footer__copy {
    display: block;
    margin-top: 2rem;
    text-align: center;
    font-size: var(--small-font-size);
}


/* SCROLL BAR  */

::-webkit-scrollbar {
    width: 0.6rem;
    background-color: hsl(24, 32%, 75%);
}

::-webkit-scrollbar-thumb {
    background-color: hsl(24, 32%, 65%);
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(24, 32%, 55%);
}

/* SCROLL UP  */

.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: var(--body-color);
    box-shadow: 0 4px 16px hsla(353, 100%, 8%, .2);
    color: var(--title-color);
    display: inline-flex;
    padding: 6px;
    font-size: 1.25rem;
    border-radius: .5rem;
    z-index: var(--z-tooltip);
    transition: bottom .4s;
}

.scrollup:hover {
    transform: translateY(-.5rem);
}


/* SHOW SCROLL UP */
.show-scroll {
    bottom: 3rem;
}