html {
    scroll-behavior: smooth;
}

:root {
    --green-500: #88E0AB;
}

*,
*::after,
*::before {
    margin: 0;
    padding: 0;
}


body {
    background-color: #272727;
    color: #FFF;
    font-family: Lato;
    font-feature-settings: 'liga' off, 'clig' off;
    font-style: normal;
    line-height: normal;
}

.index_header {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 740px;
    flex-shrink: 0;
    background: url("images/heroimage.jpeg") lightgray 50% / cover no-repeat;
    opacity: 88%;
}

.ul2 {
    display: none;
}

.ul3 {
    z-index: 999;
    display: none;
}

nav .ul3 {
    /* display: flex; */
    position: absolute;
    top: 0px;
    width: 100%;
    padding: 20px 0px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: #212121;
}

nav .ul3 li {
    list-style: none;
}

nav .ul3 li a {
    display: flex;
    padding: 6px 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    font-size: 20px;
    font-weight: 400;

}

nav .ul1 {
    display: flex;
    height: 38px;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
    padding-top: 24px;
}

nav .ul1 li {
    list-style: none;
}

nav .ul1 li a {
    color: rgba(0, 0, 0, 0.82);
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    padding: 6px 8px;
    text-decoration: none;
}


@media all and (max-width: 800px) {
    nav .ul1 {
        display: none;
    }

    .ul2 {
        display: flex;
        height: 38px;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        padding-top: 24px;
    }
}





.hero {
    align-self: stretch;
    padding-top: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.hero h2 {
    color: #7F7F7F;
    text-align: center;
    font-size: 48px;
    font-weight: 600;
    align-self: stretch;
}

.hero h1 {
    color: rgba(0, 0, 0, 0.82);
    text-align: center;
    font-size: 64px;
    font-weight: 800;
}

.hero h4 {
    color: #7F7F7F;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}


@media all and (max-width: 500px) {
    .hero h2 {
        font-size: 32px;
    }

    .hero h1 {
        font-size: 48px;
    }

}

/* Header End */

.container {
    padding-top: 40px;
    padding-bottom: 40px;


    max-width: 1100px;
    margin: 0 auto;
}

/* Title Start */
.head {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
}

.head h2 {
    text-align: center;
    font-weight: 800;
    font-size: 32px;
    text-decoration-line: underline;
}

small {
    font-size: inherit;
    color: rgba(255, 255, 255, 0.72);
}

/* Title Start End*/

.portfolio {
    padding-top: 82px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;

}

/* item selection start */
.selection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
}

.selection ul {
    display: flex;
    padding: 0px 52px;
    justify-content: center;
    align-items: center;
    gap: 32px;
    border-radius: 8px;
    background: #5E5E5E;
    list-style: none;
}

@media all and (max-width: 800px) {
    .selection ul {
        gap: 26px;
        padding-left: 24px;
        padding-right: 24px;

    }
}

@media all and (max-width: 600px) {
    .selection ul {
        gap: 12px;
        padding-left: 8px;
        padding-right: 8px;

    }
}

.selection ul li {
    cursor: pointer;
    color: #000;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
}

.selection ul li a {
    text-decoration: none;
    color: #000;
}

.selection ul li:nth-child(even) {
    padding: 0px;
    width: 2px;
    height: 24px;
    gap: 10px;
    opacity: 0.44;
    background: #000;
}

@media all and (max-width: 510px) {
    .selection ul {
        gap: 0px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .selection ul li {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* item selection end */


.card_s1 {
    display: block;
}

.card_s2 {
    display: none;
}

.card_s3 {
    display: none;
}

.card {
    /* width: 352px; */
    height: 450px;
    border-radius:12px;
    background: #3B3B3B;
    box-shadow: 0px 8px 8px 0px rgba(0, 0, 0, 0.35);
    position: relative;
    /* transition-property: transform; */
    transition-duration: 0.2s;
    transition-timing-function: ease-in;
}


.card img {
    object-position: 50% 50%;
    object-fit: cover;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.32);

    margin-top: 12px;
    margin-left: 12px;
    margin-right: 12px;
}

.card .text {
    margin-left: 16px;
    margin-right: 16px;
}

.card h3 {
    margin-top: 18px;
    font-size: 24px;
    font-weight: 600;
}

.card p {
    margin-top: 2px;
    width: 266px;
    height: 34px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card .link {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
    vertical-align: bottom;

    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
}

.card div a {
    margin: 0;
    padding: 0;
    color: var(--green-500);
    max-width: 220px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;


}

.type1 {
    padding: 4px 6px;
    border-radius: 6px;
    background: #7B1FA2;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    /* width: fit-content; */
}

.type2 {
    padding: 4px 6px;
    border-radius: 6px;
    background: #00897B;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    /* width: fit-content; */
}

.type3 {
    padding: 4px 6px;
    border-radius: 6px;
    background: #C62828;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    /* width: fit-content; */
}

.card_grid {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 32px;
    align-self: stretch;
    flex-wrap: wrap;

}

.scrole {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.scrole img {
    cursor: pointer;
    width: 14px;
}

.resume {
    padding-top: 40px;
    padding-bottom: 40px;

}

.resume_card {
    display: flex;
    width: 448px;
    padding: 16px 16px 16px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    border-radius: 8px;
    background: #5E5E5E;
}

@media all and (max-width: 530px) {
    .resume_card {
        width: 388px;
    }

    @media all and (max-width: 460px) {
        .resume_card {
            width: 340px;
        }

        @media all and (max-width: 400px) {
            .resume_card {
                width: 300px;
            }
        }
    }
}

.resume_card .date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resume_card .date h4 {
    font-size: 16px;
    font-weight: 400;
}

.resume_card .pointer {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: stretch;
}

.resume_card .pointer .circle {
    border-radius: 999px;
    background: var(--green-500);
    width: 20px;
    height: 20px;
}

.resume_card .pointer h4 {
    color: var(--green-500);
    font-size: 20px;
    font-weight: 500;
}

.resume_card .from {
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
    font-weight: 400;
    padding-right: 4px;
}

.resume_card p {
    align-self: stretch;
    font-size: 20px;
    font-weight: 500;
}

.resume_card .school {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;

    img {
        height: 24px;
        width: 24px;
    }
}

strong {
    color: #FFF;
}

.resume_cards {
    padding-top: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.service_card {

    width: 300px;
    height: 500px;
    background: #3B3B3B;
    box-shadow: 0px 8px 8px 0px rgba(0, 0, 0, 0.28);
    transition-duration: 0.25s;
    transition-timing-function: ease-in;
}

.service_card:hover{
    transform: translateY(-8px);
    box-shadow: 0px 4px 8px 4px #757575;
}

.service_card img {
    width: inherit;
    height: 230px;
    flex-shrink: 0;
    border-radius: 8px;
}

.service_card div {
    text-align: center;

}

.service_card div a {

    color: var(--green-500);
    font-size: 10px;
    font-weight: 600;
}

.service_card h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-top: 12px;
}

.service_card p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.74);
    text-align: center;
    font-size: 12px;
    font-weight: 400;

}

.service_card ul {
    margin-top: 40px;
    margin-right: 54px;
    margin-left: 54px;
    list-style-image: url("../images/icons/check-circle-fill.svg");

}

.service_card ul li {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 400;
}

.service_cards {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 32px;
    align-self: stretch;
    flex-wrap: wrap;
}

.service {
    padding-top: 40px;
}

.contact {
    margin-top: 48px;
    padding: 32px 32px;

}

.contacts h2 {
    font-size: 24px;
    font-weight: 400;
}


input {
    width: 98%;
    /* width: 570px; */
    height: 51px;
    border: 0;
    border-radius: 12px;
    padding-left: 16px;
    background: #5E5E5E;
    font-size: 16px;
    font-weight: 400;
    color: white;
}

input::placeholder {
    color: rgba(228, 228, 228, 0.79);
    font-size: 16px;
    font-weight: 400;
}


textarea {
    width: 98%;
    height: 130px;
    border: 0;
    border-radius: 16px;
    padding-left: 16px;
    padding-top: 16px;
    background: #5E5E5E;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    color: white;
}

textarea::placeholder {
    color: rgba(228, 228, 228, 0.79);
    font-size: 16px;
    font-weight: 400;
}

input:focus,
input:active {
    outline: var(--green-500) solid 2px;
    box-shadow: none;
}



textarea:focus,
textarea:active {
    outline-style: none;
    box-shadow: none;
    border: 2px var(--green-500) solid;
}

button,
.button {
    padding: 8px 16px;
    border-radius: 12px;
    background: #88E0AB;
    color: rgba(0, 0, 0, 0.65);
    font-size: 20px;
    font-weight: 400;
    border: #000;

    text-decoration: none;
}

.contacts form {
    display: flex;
    padding-bottom: 27px;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    flex-shrink: 0;
    min-width: 300px;
    flex: 2;
}

@media all and (max-width: 700px) {
    .contacts form {
        width: 88vw;
    }
}

.details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    align-self: stretch;
}

.details h3 {
    color: rgba(136, 224, 171, 0.72);
    font-size: 24px;
    font-weight: 400;
}

.details p {
    /* width: 448px; */
    color: rgba(255, 255, 255, 0.72);
    font-size: 20px;
    font-weight: 400;
}

.right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    min-width: 300px;
    flex: 1;
}

.links {
    display: flex;
    /* height: 45px; */
    align-items: center;
    gap: 12px;
    flex-direction: row;
}

.links {
    /* height: 32px; */
    color: white;
    fill: #ffffff;
}

.links img{
    height: 42px;
    width: 42px;
}

.contacts {
    display: flex;
    padding: 32px 0px;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    gap: 32px 96px;
    align-self: stretch;
    flex-wrap: wrap;
}

footer {
    padding: 32px 0px;
    background: #525252;
    font-size: 16px;
    font-weight: 400;
}
    
footer a,
footer li {
    text-decoration: none;
    list-style: none;
    color: white;
}

footer ul{
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}


footer hr {
    margin: 32px 0px;
    color: white;
}

footer p{
    display: flex;
    justify-content: center;
}

