* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bardhe: #ffffff;
    --zi: #000000;
    --primare: #ff891b;
    --sekondare: #484848;
    --gri: #dddddd;
    --grierret: #777777;
}

body {
    font-family: Arial, sans-serif;
    width: 100%;
    overflow-x: hidden;
    color: var(--zi);
    background-color: #fff;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAV */

nav {
    background: var(--sekondare);
    width: 100%;
    min-height: 80px;
    color: var(--bardhe);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-wrap: wrap;
}

label.logo {
    color: white;
    font-size: 35px;
    line-height: 1.2;
    padding: 15px 0;
    font-weight: 500;
}

nav ul {
    color: white;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

nav ul li {
    display: flex;
    align-items: center;
}

nav ul li a {
    color: white;
    font-size: 17px;
    padding: 10px 14px;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
}

a.active,
a:hover {
    background: var(--grierret);
    transition: 0.4s;
}

#ora {
    color: white;
    font-size: 18px;
    padding: 10px 0;
    margin-left: 10px;
}

/* HERO */

.hero {
    min-height: 100vh;
    background: url("pexels-photo-7060815.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-elements {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.title {
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.1;
    color: white;
    font-weight: 200;
    margin-bottom: 30px;
    text-align: center;
}

.button-hero {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    padding: 14px 34px;
    background-color: var(--gri);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    color: black;
    cursor: pointer;
}

.button-hero:hover {
    background-color: var(--primare);
    transition: 0.4s;
}

/* CATEGORY */

.category {
    padding: 70px 0;
}

.category h1 {
    display: flex;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 25px;
}

.category-images {
    margin-top: 30px;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

#images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0 50px;
}

#images .image img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 12px;
}

/* FILTER */

.filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    padding: 10px 24px;
    background-color: var(--primare);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    color: var(--bardhe);
    margin: 0;
}

/* SERVICES */

.services {
    padding: 70px 0;
}

.services h1 {
    text-align: center;
    margin: 0 0 40px;
    font-size: 40px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    width: 100%;
}

.card {
    padding: 35px 25px;
    border: none;
    text-align: center;
    box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.18), 0 5px 20px 0 rgba(0, 0, 0, 0.12);
    width: 100%;
    min-height: 320px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    cursor: pointer;
    border-radius: 14px;
    background: white;
}

.front {
    backface-visibility: hidden;
}

.front img {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
}

.back {
    position: absolute;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    top: 50%;
    left: 20px;
    right: 20px;
    translate: 0 -50%;
}

.back p {
    font-size: 18px;
    color: var(--primare);
}

.card.flip {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.card h2 {
    font-size: 28px;
    font-weight: 500;
    color: var(--primare);
    padding-top: 25px;
}

/* PROJECTS */

.projects {
    background-color: var(--primare);
    width: 100%;
    min-height: 180px;
    margin: 70px 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
}

.projects-details {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.projects-details h1 {
    margin: 0;
}

.button-project {
    padding: 16px 34px;
    background-color: var(--grierret);
    color: white;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.button-project:hover {
    background-color: var(--sekondare);
    transition: 0.4s;
}

/* CALCULATOR */

.dimensions-calculation {
    display: flex;
    justify-content: center;
    margin: 70px 0;
    padding: 0 20px;
}

.dimensions-calculation h1 {
    margin-top: 10px;
    margin-bottom: 25px;
    font-size: 40px;
    text-align: center;
}

.calculator {
    display: grid;
    width: 100%;
    max-width: 700px;
}

.calculator label {
    font-size: 23px;
    padding: 10px 0;
}

.calculator input {
    padding: 10px;
    font-size: 20px;
    border: 2px solid var(--primare);
    border-radius: 10px;
    width: 100%;
}

.calculator img {
    max-width: 650px;
    width: 100%;
    margin: 40px auto;
}

/* ABOUT US */

.about-us {
    display: flex;
    justify-content: center;
    background-color: var(--gri);
    padding: 50px 0;
}

.about-us h1 {
    text-align: center;
    font-size: 40px;
    padding: 20px 0 30px;
}

.about-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-us-content img {
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
}

.about-us-content p {
    font-size: 18px;
    line-height: 1.7;
}

/* CONTACT */

.contact {
    display: flex;
    justify-content: center;
    text-align: center;
    background-color: rgba(220, 220, 220, 0.2);
    padding: 50px 0;
}

.contact h1 {
    font-size: 40px;
    padding: 20px 0 30px;
}

.contact-form {
    display: grid;
    width: 100%;
    max-width: 700px;
}

.contact-form input {
    width: 100%;
    height: 50px;
    padding: 20px;
    box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.2), 0 5px 20px 0 rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 2px solid var(--primare);
    margin: 10px 0;
}

.contact textarea {
    border: 2px solid var(--primare);
    box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.2), 0 5px 20px 0 rgba(0, 0, 0, 0.2);
    width: 100%;
    border-radius: 20px;
    padding: 20px;
    margin: 10px 0;
}

.contact-form label {
    font-size: 19px;
    display: flex;
    padding: 10px 0 5px;
}

#send-button {
    background-color: var(--primare);
    cursor: pointer;
    font-size: 19px;
    padding: 10px 0;
    width: 100%;
}

#send-button:hover {
    background-color: greenyellow;
    transition: 0.4s;
}

/* FOOTER */

.footer {
    background-color: var(--primare);
    padding: 40px 20px;
    text-align: center;
}

.footer h4 {
    font-size: 17px;
}

/* RESPONSIVE */

@media (max-width: 992px) {
    label.logo {
        font-size: 28px;
    }

    nav {
        justify-content: center;
        gap: 10px;
    }

    nav ul {
        justify-content: center;
    }

    .about-us-content {
        grid-template-columns: 1fr;
    }

    .projects-details {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px;
    }

    nav ul li a {
        font-size: 15px;
        padding: 8px 10px;
    }

    .services h1,
    .category h1,
    .about-us h1,
    .contact h1,
    .dimensions-calculation h1 {
        font-size: 32px;
    }

    .calculator label,
    .contact-form label {
        font-size: 17px;
    }

    .about-us-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    label.logo {
        font-size: 22px;
        text-align: center;
        width: 100%;
    }

    .title {
        font-size: 34px;
    }

    .button-hero,
    .button-project,
    .button {
        width: 100%;
    }

    nav ul {
        justify-content: center;
    }
}
