@import url("reset.css");
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
@import url("https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css");
@import url('responsive.css');

:root {
    ---dark-color: rgba(0, 0, 0, 0.2);
    ---section-padding: 100px 0px 40px 0px;
    ---border-color: #363636;
    ---text-margin-bottom: 15px;
    ---card-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    ---polygon: polygon(0 0, 100% 0, 100% 100%, 0 90%);

}

/* Themes */
.light-theme {
    ---text-color: black;
    ---title-color: #40d396;
    ---bg-color: #ffff;
    ---bg-switch-btn: #1a1a1a;
    ---text-color-switch-btn: #e1dee1;
}

.dark-theme {
    ---text-color: #e1dee1;
    ---title-color: #40d396;
    ---bg-color: #1a1a1a;
    ---bg-switch-btn: #ffff;
    ---text-color-switch-btn: #black;

}


html {
    background: var(---bg-color);
}

body {
    font-family: "Roboto", sans-serif;
    margin: 150px 150px;
    border: 1px solid var(---border-color);
}

/* Header content */

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 70px 10px;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo-title a {
    text-decoration: none;
    font-size: 36px;
    padding-right: 15px;
    color: var(---text-color);
}

.vertical-line {
    border: 1px solid var(---title-color);
    height: 45px;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.header-nav-items {
    display: flex;
}

.header-nav-item {
    list-style: none;
    padding: 18px 36px;
    margin: 0 5px;
}

.header-nav-item a {
    color: var(---text-color);
    text-decoration: none;
    margin-right: 50px;
}

.header-nav-item a:last-child {
    margin-right: 0;
}

.header-nav-item a:hover {
    background: var(---title-color);
    padding: 15px;
    transition: all 0.3s;

}

#switch {
    color: var(---text-color);
    padding: 5px 10px;
    background: transparent;
    cursor: pointer;
    border: 1px solid var(---border-color);
    border-radius: 15px;
}

#switch:hover {
    background: var(---bg-switch-btn);
    color: var(---text-color-switch-btn);
}

/* Index intro content */

.intro {
    text-align: center;
    padding: var(---section-padding);
}

.intro-title {
    color: var(---title-color);
    padding: 50px 0;
    font-size: 60px;
}

.intro-text {
    color: var(---text-color);
    font-size: 20px;
}

/* Projects content */
.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.card {
    flex-basis: 33.33333%;
}

.shape-box {
    display: inline-block;
    position: relative;
    z-index: 1;
    max-width: 287px;
    height: 430px;
    margin: 30px 10px 30px;
    box-shadow: 0 6px 30px 0 rgba(0, 0, 0, .12);
    overflow: hidden;
    border: 1px solid var(---border-color);
}

.shape-box_half {
    overflow: hidden;
    text-align: left;
}

.shape-box_half:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: skewY(53.5deg);
    transform-origin: top left;
    transition: \transform .4s;
    background: var(---bg-color);
    z-index: 1;
}

.shape-box > img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}


.shape-box_half figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 30px 30px;
    transition: \transform .4s;
    transform: translateY(100%);
    z-index: 3;
}

.shape-box_half figcaption .show-cont {
    position: absolute;
    bottom: calc(100% + 30px);
    left: 30px;
    right: 30px;
    transition: bottom .4s;
}

.card-no {
    font-size: 36px;
    color: var(---text-color);
    padding: 0;
    margin: 10px 0;
}

.card-title {
    margin-top: 8px;
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    color: var(---title-color);
}

.card-content {
    color: #9f9f9f;
    margin-top: 20px;
    line-height: 22px;
    font-size: 15px;
}

.visit-btn, .github-btn {
    border: 2px solid var(---title-color);
    font-size: 14px;
    cursor: pointer;
    padding: 10px 20px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    position: relative;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    background: transparent;
    color: var(---text-color);
    border-radius: 2px;
    margin-top: 25px;
    text-decoration: none;
    margin-right: 5px;
}


.visit-btn:hover, .github-btn:hover {
    background: transparent;
    padding: 20px;
}

.shape-box_half > .after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    transition: opacity .4s;
}

.shape-box_half:hover:before {
    transform: skewY(20deg);
}

.shape-box_half:hover figcaption {
    transform: translateY(0);
}

.shape-box_half:hover figcaption .show-cont {
    bottom: 100%;
}

.shape-box_half:hover > .after {
    opacity: 1;
}


/* Certificates content ver.1 */

.certificates {
    padding: var(---section-padding);
    text-align: center;
    width: 100%;
}

.certificate-validity {
    margin-top: 15px;
    font-size: 20px;
    color: var(---text-color);
}

.certificate-validity a {
    color: var(---title-color);
    text-decoration: none;
}

.certificate-validity a:hover {
    text-decoration: underline;
}

.collapsible {
    background-color: transparent;
    color: var(---text-color);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    outline: none;
    font-size: 20px;
    text-align: center;
    border: 1px solid var(---border-color);
}

.active,
.collapsible:hover {
    background-color: var(---title-color);
    font-weight: bold;
}

.content {
    margin: 15px 0 15px 0;
    display: none;
    background-color: transparent;
}

/* About me content */

.about-me {
    display: flex;
    padding: var(---section-padding);
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.about-me-img {
    min-width: 220px;
    margin: 0 30px;
}

.about-me-img img {
    width: 100%;
    border-radius: 50%;
    border: 4px solid var(---title-color);
}

.about-me-content-title {
    color: var(---title-color);
    margin-bottom: var(---text-margin-bottom);
    font-size: 30px;
}

.about-me-content-job {
    color: gray;
    font-size: 16px;
    margin-bottom: var(---text-margin-bottom);
}

.about-me-content-text {
    color: var(---text-color);
    font-size: 20px;
    line-height: 30px;
    width: 100%;
    margin-bottom: var(---text-margin-bottom);
}

.about-me-hobbies {
    color: var(---text-color);
    margin-bottom: var(---text-margin-bottom);
}

.about-me-interested {
    color: var(---text-color);
}

.about-me-hobbies span,
.about-me-interested span {
    font-style: italic;
}

/* Contact me content */

.contacts {
    padding: var(---section-padding);
    text-align: center;

}

.contacts-items {
    display: flex;
    flex-direction: column;
    width: 40%;
    margin: auto;
}


.contacts-title {
    color: var(---title-color);
    font-size: 30px;
}

.contacts-item {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: var(---text-color);
    font-size: 16px;
    text-decoration: none;
    overflow: hidden;
    transition: 0.5s;
    margin-top: 40px;
    letter-spacing: 4px;
}

.contacts-item-p {
    font-size: 25px;
    margin-top: 15px;

}

.contacts-item:hover {
    cursor: default;
}

.contacts-item span {
    position: absolute;
    display: block;
}

.contacts-item span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(---title-color));
    animation: btn-anim1 1s linear infinite;
}

@keyframes btn-anim1 {
    0% {
        left: -100%;
    }
    50%,
    100% {
        left: 100%;
    }
}

.contacts-item span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(---title-color));
    animation: btn-anim2 1s linear infinite;
    animation-delay: 0.25s;
}

@keyframes btn-anim2 {
    0% {
        top: -100%;
    }
    50%,
    100% {
        top: 100%;
    }
}

.contacts-item span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, var(---title-color));
    animation: btn-anim3 1s linear infinite;
    animation-delay: 0.5s;
}

@keyframes btn-anim3 {
    0% {
        right: -100%;
    }
    50%,
    100% {
        right: 100%;
    }
}

.contacts-item span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, var(---title-color));
    animation: btn-anim4 1s linear infinite;
    animation-delay: 0.75s;
}

@keyframes btn-anim4 {
    0% {
        bottom: -100%;
    }
    50%,
    100% {
        bottom: 100%;
    }
}

/* Errors */
.page-404 {
    padding: var(---section-padding);
    text-align: center;
}

.page-404-title {
    font-size: 75px;
    color: var(---title-color);
}

.page-404-text {
    font-size: 25px;
    color: var(---text-color);
}

.page-404-btn {
    border: 2px solid var(---title-color);
    font-size: 14px;
    cursor: pointer;
    padding: 10px 20px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: transparent;
    color: var(---text-color);
    border-radius: 2px;
    margin-top: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.page-404-btn:hover {
    font-size: 18px;
}

/* Footer content */

.footer-content {
    padding: 100px 0 10px 0;
}

.footer-items {
    text-align: center;
}

.footer-item {
    color: var(---text-color);
}

.footer-item a {
    color: var(---title-color);
    text-decoration: none;
}

.footer-item a:hover {
    text-decoration: underline;
}



