@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    font-family: "Inter", sans-serif;
    /* font-family: "Comfortaa", sans-serif;*/
    margin: 0;
    scroll-behavior: smooth;
} 
section {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    position: relative;
}

#main {
    background-image: url(img/bgMAIN.png);
}
#about {
    background-image: url(img/bgABOUT.png);
}
#skills {
    background-image: url(img/bgSKILLS.png);
}
#works {
    background-image: url(img/bgWORKS.png);
}
#comments {
    background-image: url(img/bgCOMMENTS.png);
}

.main_block, .about_block, .skills_block, .works_block, .comments_block {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.main_block {
    flex-direction: column;
    height: 100vh;
}
.main_content {
    width: 850px;
    height: 225px;
    background: url(img/form1.png);
    background-size: contain;
    background-repeat: no-repeat;
    padding-left: 30px;
}
.main_title {
    color: #2b2d35;
    font-size: 65px;
    padding-top: 60px;
}
.main_subtitle {
    color: #2b2d35;
    font-size: 20px;
    font-family: "Comfortaa", sans-serif;
    padding-top: 10px;
}
.button {
    width: 200px;
    height: 60px;
    border-radius: 100px;
    border: #2b2d35 solid 2px;
    background-color: #BBFF2C;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    box-shadow: black 5px 5px;
    transition: all 0.5s;
}
.button:hover {
    transform: scale(1.1);
}
.button a {
    font-size: 20px;
    text-decoration: none;
}
.moving_planet {
    background: url(img/moving-planet.png);
    background-repeat: no-repeat;
    width: 200px;
    height: 230px;
    position: absolute;
    left: 30px;
    bottom: 30px;
    animation-name: moving_planet;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
@keyframes moving_planet {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-153px);
    }
}
.title {
    padding-top: 100px;
    text-align: center;
    color: white;
    font-size: 65px;
    text-shadow: 5px 5px black;
}
.about_text {
    height: 270px;
    width: 30%;
    background-color: #792aff;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 10px;
}
.about_text p {
    max-width: 95%;
    color: whitesmoke;
    font-size: 20px;
    font-weight: 700;
    font-family: "Comfortaa", sans-serif;
}
.about_card {
    width: 376px;
    height: 346px;
    background-image: url(img/form2.png);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.about_card p {
    width: 336px;
    margin-top: 5px;
    text-align: left;
}
.skils-card {
    background-image: url(img/form3.png);
    width: 638px;
    height: 401px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
.skils-card img{
    padding: 20px;
}
.skils-card p {
    font-family: "Comfortaa", sans-serif;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}
.moving_planet2 {
    background: url(img/moving-planet2.png);
    background-repeat: no-repeat;
    width: 208px;
    height: 200px;
    position: absolute;
    left: 0;
    bottom: 0;
    animation-name: moving_planet;
    animation-duration: 10s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
.works_block img{
    width: 31%;
}
.works_block {
    display: flex;
    justify-content: space-around;
}
.comments_block {
    justify-content: space-evenly;
}
.comment-card {
    background-image: url(img/card.png);
    width: 200px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background-repeat: no-repeat; */
}
.comment-card p {
    width: 90%;
}
.comment-card h3 {
    margin: 5px 0;
}
.comment {
    background-image: url(img/comment.png);
    width: 327px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px #BBFF2C;
    border-radius: 10px;
    /* background-repeat: no-repeat; */
}
.comment p {
    max-width: 75%;
}
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}
.fixed-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}
.nav-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
}
.logo {
    color: #BBFF2C;
    font-size: 80px;
    text-shadow: 5px 5px black;
}
.nav-link {
    width: 120px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid black;
    background-color: whitesmoke;
    text-decoration: none;
    color: black;
    font-size: 20px;
    font-family: "Comfortaa", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 1s;
}
.nav-link:hover {
    transform: scale(1.1);
}
.active {
    background-color: #BBFF2C;
}
footer {
  background-color: #220046; /* тёмно-фиолетовый фон */
  color: white;
  padding: 20px;
  font-family: sans-serif;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-text h3 {
  margin: 0;
  text-transform: uppercase;
  font-weight: bold;
}

.footer-text p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #ccc;
}

.mobile-button {
    display: none;
    width: 40px;
    position: absolute;
    right: 20px;
    top: 13px;
}

.off-scroll {
    overflow: hidden;
}

.hide {
    display: none;
}

@media (max-width: 1000px) {
    .nav-links {
        display: none;
    }

    .logo {
        font-size: 40px;
        padding-left: 10px;
    }

    .main_content {
        max-width: 320px;
        padding-left: 10px;
    }
    .main_title {
        font-size: 26px;
        padding-top: 24px;
    }
    .main_subtitle {
        font-size: 16px;
    }
    .moving_planet {
        left: 10px;
        bottom: 10px;
        width: 200px;
        height: 115px;
        background-size: contain;
    }
    .moving_planet2 {
        display: none;
    }
    .about_block {
        flex-direction: column;
    }
    .about_card {
        order: -1;
    }
    .about_text {
        width: 80%;
    }
    .title {
        padding-top: 0px;
    }
    .skils-card {
        width: 350px;
        height: 380px;
        background-size: cover;
        border-radius: 10px;
    }
    .skils-card p {
        font-size: 16px;
    }
    .skils-card img {
        padding: 10px;
        width: 80px;
    }
    .works_block {
        flex-direction: column;
    }
    .works_block img {
        width: 70%;
        margin-bottom: 15px;
    }
    .comments_block {
        flex-direction: column;
    }
    .comment {
        background-image: url(img/comment-mobile.png);
        height: auto;
        padding: 10px 0;
        background-size: cover;
        margin: 15px 0;
    }
    .footer-text h3 {
        font-size: 16px;
    }
    .footer-text p {
        font-size: 12px;
    }
    .mobile-button {
        display: block;
    }
    .mobile-menu {
        position: absolute;
        top: 0;
        z-index: -1;
        width: 100%;
        background-color:#200153;
        height: 100vh;
    }
    .mobile-nav {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .mobile-nav-links .nav-link {
        margin-bottom: 30px;
    }
    .fixed-menu {
        width: 100%;
        padding: 0;
    }


    .hide {
        display: none;
    }
}