@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    --sectionbgcolor: #E0E0E0;
}

* {
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
    transition: 0.3s;
}

a {
    text-decoration: none;
    color: #000000;
}

h1 {
    color: #000000;
    margin-block: 32px;
}

button {
    color: #000000;
    padding-inline: 28px;
    font-size: 16px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 20px;
    border: 2px solid #000000;
    white-space: nowrap; /* ? */
}

button:hover {
    color: #805020;
    font-weight: bold;
    background-color: #cbda29;
    border: 2px solid #805020;
    cursor: pointer;
}

button:focus {
    background-color: #4880c1;
    border: 2px solid #000000;
    color: #000000;
    font-weight: bold;
}

.btn {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-block: 32px;
}

.btn-inside {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-block: 16px;
}

#about, #products, #services {
    height: 80px;
    margin-top: -80px;
    background-color: rgba(102, 51, 153, 0);
    z-index: -1;
    position: relative;
}

/* --------------------------------------------------------------------------------------------------------------------------------------- NAVBAR */

header {
    background-color: #f3f7fb;
    max-width: 1920px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding-inline: 156px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background-color: #f3f7fb;
    margin: 0 auto;
    max-width: 1608px;
}

nav img {
    height: 64px;
    width: auto;
}

.nav-right {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.web {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 16px;
}

.nav-right ul li a {
    border-radius: 20px;
    padding-block: 4px;
    padding-inline: 8px;
}

.lang {
    border: 2px solid #000000;
    height: 32px;
    width: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    color: #000000;
}

.lang:hover {
    background-color: #805020;
    color: #f8fae4;
}

.nav-right ul li a:hover {
    background-color: #805020;
    color: #f8fae4;
}

.hamburger-icon {
    margin: auto 0;
    display: none;
    cursor: pointer;
}

.hamburger-icon div {
    width: 35px;
    height: 3px;
    background-color: #111111;
    margin: 6px 0px;
    transition: 0.4s;
}

.open .bar1 {
    -webkit-transform: rotate(-45deg) translate(-6px, 6px);
    transform: rotate(-45deg) translate(-6px, 6px);
}

.open .bar2 {
    opacity: 0;
}

.open .bar3 {
    -webkit-transform: rotate(45deg) translate(-6px, -8px);
    transform: rotate(45deg) translate(-6px, -8px);
}

.open .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    list-style-type: none;
    gap: 32px;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    font-size: 20px;
    padding-block: 32px;
    background-color: #f3f7fb;
    z-index: 2;
}


/* ------------------------------------------------------------------------------------------------------------------------------------  REPEAT*/

main, .our-works, .products-parent, .services-parent, .about-parent, .news-parent, footer, .library-parent {
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    
}

.news-parent, .products-parent, .our-works {
    background-color: var(--sectionbgcolor);
}

.child {
    margin-inline: 156px;
    margin-block: 32px;
}


/* --------------------------------------------------------------------------------------------------------------------------------------- HERO */
main img {
    width: 100%;
    aspect-ratio: 10/3;
    margin-top: 80px;
    position: relative;
}

.main-text {
    position: absolute;
    right: 0;
    bottom: 32px;
    background-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0px 0px 20px;
    animation: FromRight 1s;
    border-top-left-radius: 32px;
    border-bottom-left-radius: 32px;
    padding: 32px;
    width: 450px;
    display: flex;
    flex-direction: column;
}

@keyframes FromRight {
    0% {transform: translateX(750px);}
    100% {transform: translateX(0);}
}

.hero-text {
    color: rgb(255, 255, 255);
    padding: 0;
    margin: 0;
}

.main-text h1 {
    max-width: 330px;
    font-size: 48px;
}

.main-text a {
    height: 50px;
    /* background-color: #cbda29; */
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 25px;
    font-size: 20px;
    font-weight: bold;
    width: 220px;
    color: black;
    margin-top: 24px;
    margin-bottom: 8px;
    transition: 0.3s;
    border: 2px solid white;
}

.main-text a:hover {
    background-color: #cbda29;  
    color: #805020;
    transition: 0.3s;
    scale: 110%;
    border: 2px solid #805020;
}

.main-text p {
    max-width: 220px;
}

/* -------------------------------------------------------------------------------------------------------------------------------------- ABOUT */

.about-child {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding: 16px;
    background-color: #f3f7fb;
    border-radius: 32px;
}

.about-text p {
    margin-bottom: 32px;
}

.about-child img {
    width: 360px;
    height: 448px;
    border-radius: 16px;
}

/* -------------------------------------------------------------------------------------------------------------------------------------PRODUCTS */

.products-child {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.product {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 328px;
    padding: 16px;
    background-color: #f3f7fb;
    border-radius: 32px;
    gap: 16px;
}

.product img {
    width: 328px;
    height: 328px;
    border-radius: 16px;
}

.product:hover {
    transform: scale(102%);
}

/* --------------------------------------------------------------------------------------------------------------------------------------- SERVİCES */

.services-child {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.service {
    width: 170px;
    height: 170px;
    background-color: #f3f7fb;
    border-radius: 32px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    padding: 16px;
    gap: 24px;
}

.service:hover {
    transform: scale(102%);
}

.service img{
    width: 88px;
    height: 88px;
}

.service p {
    font-weight: bold;
    text-align: center;
}

/* --------------------------------------------------------------------------------------------------------------------------------------- WORKS */

.works {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.work {
    position: relative;
    width: 153px;
    height: 248px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3f7fb;
    padding: 8px;
    border-radius: 32px;
}

.work img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.work-text {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.75);
    bottom: 8px;
    left: 8px;
    padding: 8px;
    border-top-right-radius: 24px;
    border-bottom-left-radius: 24px;
    max-width: 125px;
}

.work-text-hidden {
    display: none;
}

.work:hover {
    width: 344px;
} 

.work:hover .work-text-hidden {
    display: block;
}

.work:hover .work-text {
    max-width: fit-content;
}

/* --------------------------------------------------------------------------------------------------------------------------------------- NEWS */

.news-child {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.news {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    width: 328px;
    padding: 16px;
    background-color: #f3f7fb;
    border-radius: 32px;
    gap: 16px;
}

.news img {
    width: 328px;
    height: 196px;
    border-radius: 16px;
}

.date-more {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.date-more p {
    font-weight: bold;
    font-style: italic;
}

.news:hover {
    transform: scale(102%);
}

/* --------------------------------------------------------------------------------------------------------------------------------------- CONTACT */

.footer-sections {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;

}

.footer-sections img {
    height: 120px;
    width: auto;
}

.contact {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 16px;
}

.contact a {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.contact a:hover {
    transform: scale(102%);
}

.contact a img {
    width: 24px;
    height: auto;
}

.social-mail {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 32px;
}

.social {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 176px;
}

.social a {
    background-color: #f3f7fb;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social a:hover {
    background-color: #cbda29;
    transform: scale(110%);
}

.social a img {
    width: 48px;
    height: 48px;    
}

.mail-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
}

.mail-list p {
    font-size: 20px;
    font-weight: bold;
}

input {
    height: 45px;
    width: 300px;
    border-radius: 8px;
    padding: 8px;
    font-size: 16px;
    border: 2px solid #000000;
    outline: none;
}

input:focus {
    border: 2px solid #cbda29;
    outline: none;
}

.links {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

.links p {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

.links a:hover {
    color: #805020;
    transform: scale(110%);
}

.copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--sectionbgcolor);
}

.copyright p, .copyright a{
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright a{
    font-weight: bold;
}


/* --------------------------------------------------------------------------------------------------------------------------------------- PRODUCTS ID PAGE*/



.products-product { 
    max-width: 1920px;
    margin: 0 auto;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.product-information {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.product-text {
    padding: 16px;
    gap: 8px;
    display: flex;
    flex-direction: column;
}

.product-img {
    background-color: #F3F7FB;
    padding: 16px;
    border-radius: 24px;
    gap: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.product-img img {
    width: 328px;
    height: 438px;
    border-radius: 8px;
}

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

.thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid white;
    border-radius: 8px;
    cursor: pointer;
}


.lib-full-img {
    max-width: 1920px;
    margin: 0 auto;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.lib-full-img-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    font-weight: bold;
    gap: 16px;
}

.lib-full-img-text a {
    color: red;
}

.lib-full-img-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px;
}


@media only screen and (max-width: 1300px) {
    .hamburger-icon {
        display: block;
    }

    .web{
        display: none;
    }

    .product-information {
        flex-direction: column;
    }

    .main-text {
        width: 350px;
    }
}

@media only screen and (max-width: 1083px) {
    .footer-sections {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
    }

    .links {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    nav {
        padding-inline: 32px;
    }
    
    .child {
        margin-inline: 32px;
    }

    main img {
        height: 350px;
        width: auto;
        object-fit: cover;
        aspect-ratio: unset;
        transform: translateX(-300px);
    }

    .about-child {
        flex-direction: column;
    }

    .about-child img {
        width: 100%;
        height: auto;
        border-radius: 16px;
    }
}

@media only screen and (max-width: 450px) {
    .main-text {
        width: 250px;
    }

    .main-text h1 {
        font-size: 32px;
    }
}