@import url('https://fonts.googleapis.com/css2?family=Poppins: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&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    color: white;
}

header {
    position: absolute;
}

.logo {
    padding: 30px;
    transition: 0.3s;
}

.logo:hover {
    cursor: pointer;
    transform: scale(1.1);
    transform: rotate(10deg);
}

main {
    height: 100vh;
    width: 100%;
}

.firstrow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.product1 {
    height: 398px;
    width: 300px;
    background:linear-gradient(180deg, #00000000 0%, #00000080 100%), url('./img/products/yai.png');
    margin: 20px;
    border-radius: 20px;
    position: relative;
    border: 1px solid #e3e3e3;
}

.product1::after {
    content: "YupiterAI 0.1";
    position: absolute;
    bottom: 17px;
    left: 17px;
}

.product2 {
    height: 398px;
    width: 730px;
    background: linear-gradient(180deg, #00000000 0%, #00000080 100%), url('./img/products/ytekin.png');
    margin: 20px;
    border-radius: 20px;
    position: relative;
    border: 1px solid #e3e3e3;
}

.product2::after {
    content: "YupiterTekin 0.1";
    position: absolute;
    bottom: 17px;
    left: 17px;
}

.secondrow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.product3 {
    height: 300px;
    width: 300px;
    background: linear-gradient(180deg, #00000000 0%, #00000080 100%), url('./img/products/ylab.png');
    background-size: cover;
    background-position: center;
    margin: 20px;
    border-radius: 20px;
    position: relative;
    border: 1px solid #e3e3e3;
}

.product3::after {
    content: "YuppiLab 0.1";
    position: absolute;
    bottom: 17px;
    left: 17px;
}

.product4 {
    height: 300px;
    width: 390px;
    background: linear-gradient(180deg, #00000000 0%, #00000080 100%), url('./img/products/ycenter.png');
    margin: 20px;
    border-radius: 20px;
    position: relative;
    border: 1px solid #e3e3e3;
}

.product4::after {
    content: "YuppiCenter 0.1";
    position: absolute;
    bottom: 17px;
    left: 17px;
}

.product5 {
    height: 300px;
    width: 300px;
    background: linear-gradient(180deg, #00000000 0%, #00000080 100%), url('./img/products/yxpr.png');
    margin: 20px;
    border-radius: 20px;
    position: relative;
    border: 1px solid #e3e3e3;
}

.product5::after {
    content: "YuppiXpr 0.1";
    position: absolute;
    bottom: 17px;
    left: 17px;
}

.product1, .product2, .product3, .product4, .product5 {
    transition: 0.3s;
}

.product1:hover, .product2:hover, .product3:hover, .product4:hover, .product5:hover {
    cursor: pointer;
}

.product1:hover, .product2:hover, .product3:hover, .product4:hover, .product5:hover {
    background-size: cover;
    background-position: center;
}

.product1::after, .product2::after, .product3::after, .product4::after, .product5::after {
    transition: 0.3s;
    font-size: 16px;
    font-weight: 500;
}

.product1:hover::after, .product2:hover::after, .product3:hover::after, .product4:hover::after, .product5:hover::after {
    text-shadow: 0 0 5px black;
    font-weight: 600;
    font-size: 18px;
}
/* Адаптив для всех стандартных разрешений */
@media (max-width: 1200px) {
    .product2 {
        width: 500px;
    }
    .product4 {
        width: 300px;
    }
}

@media (max-width: 900px) {
    .firstrow, .secondrow {
        flex-direction: column;
        align-items: center;
    }
    .product1, .product2, .product3, .product4, .product5 {
        width: 90vw;
        height: 300px; /* увеличена высота */
        margin: 15px 0;
        font-size: 14px;
        background-size: cover;
        background-position: center;
    }
    .product2 {
        width: 90vw;
        height: 300px; /* увеличена высота */
    }
    header {
        width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
        position: static;
    }
}

@media (max-width: 600px) {
    .product1, .product2, .product3, .product4, .product5 {
        width: 95vw;
        height: 220px; /* увеличена высота */
        font-size: 12px;
        background-size: cover;
        background-position: center;
    }
    .product2 {
        width: 95vw;
        height: 220px; /* увеличена высота */
    }
    header {
        position: static;
        width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    main {
        height: auto;
        min-height: 100vh;
        width: 100vw;
    }
    .product1::after, .product2::after, .product3::after, .product4::after, .product5::after {
        font-size: 10px;
        left: 8px;
        bottom: 8px;
    }
}

@media (max-width: 300px) {
    .firstrow, .secondrow {
        flex-direction: column;
        align-items: center;
    }
    .product1, .product2, .product3, .product4, .product5 {
        width: 90vw;
        min-width: 0;
        max-width: 100vw;
        height: 140px; /* увеличена высота */
        margin: 6px 0;
        font-size: 10px;
        background-size: cover;
        background-position: center;
    }
    .product2 {
        width: 90vw;
        height: 140px; /* увеличена высота */
    }
    header {
        position: static;
        width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    main {
        height: auto;
        min-height: 100vh;
        width: 100vw;
    }
    .product1::after, .product2::after, .product3::after, .product4::after, .product5::after {
        font-size: 8px;
        left: 4px;
        bottom: 4px;
    }
}
