﻿/* App Fonts */

@font-face {
    font-family: "Yekan";
    src: url('../fonts/Yekan.eot');
    src: url('../fonts/Yekan.eot?#iefix') format('Yekan-opentype'), url('../fonts/Yekan.woff') format('woff'), url('../fonts/Yekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-size: small;
}

/* Normalize Css */

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    position: relative;
    min-height: 100%;
    box-sizing: border-box; /* Added */
}

*,
*:before,
*:after {
    box-sizing: border-box; /* Added */
}

body {
    margin: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

main {
    display: block;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre {
    font-family: Yekan, monospace;
    font-size: 1em;
}

a {
    background-color: transparent;
}

    a:hover {
        color: black !important;
    }

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: Yekan, monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

img {
    border-style: none;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

    button::-moz-focus-inner,
    [type="button"]::-moz-focus-inner,
    [type="reset"]::-moz-focus-inner,
    [type="submit"]::-moz-focus-inner {
        border-style: none;
        padding: 0;
    }

    button:-moz-focusring,
    [type="button"]:-moz-focusring,
    [type="reset"]:-moz-focusring,
    [type="submit"]:-moz-focusring {
        outline: 1px dotted ButtonText;
    }

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

    [type="search"]::-webkit-search-decoration {
        -webkit-appearance: none;
    }

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

details {
    display: block;
}

summary {
    display: list-item;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

/* Start Project */

body {
    font-family: "Yekan";
}

.container {
    max-width: 80rem;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

.header,
.footer {
    padding: 0;
    margin: 0;
    width: 100%;
    /* overflow: hidden; Prevent content from overflowing */
}

/* Header Top */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
}

header.sticky {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-logo {
    margin-right: 1rem;
}

.nav-logo__img {
    max-width: 12rem;
}

.menu {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    display: flex;
}

.menu__item {
}

.menu__link {
    text-decoration: none;
    color: #03A9F4;
    padding: 0 0.5rem;
}

    .menu__link:hover {
        font-size: 1.2em;
        color: #4CAF50 !important;
    }

.header__link {
    display: flex;
    align-items: center;
    background-color: #03A9F4;
    padding: 0.8rem 1.5em;
    color: #fff;
    border-radius: 0.3rem;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease-in-out; 
}

    .header__link svg {
        margin-right: 0.5rem;
        width: 16px; 
        height: 16px;
        transition: all 0.3s ease-in-out;
    }


.header__icon {
    font-size: 1.8rem;
    display: none;
    cursor: pointer;
}

.dropdown {
    position: relative;
}

.dropdown__btn {
    position: relative;
    z-index: 1;
    transition: all 120ms ease-in 80ms;
}

    .dropdown__btn svg {
        width: 22px;
        height: 22px;
        transition: all 120ms ease-in 80ms;
    }

.dropdown__content {
    position: absolute;
    display: none;
    top: 25px;
    width: 160px;
    padding: 16px;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    transition: all 120ms ease-in 80ms;
    text-align: center;
    visibility: hidden;
    opacity: 0;
}

    .dropdown__content a {
        text-decoration: none;
        color: #1b1b1b;
        display: block;
        margin-bottom: 6px;
    }

        .dropdown__content a:last-child {
            margin-bottom: 0;
        }

.dropdown__content__content:hover {
    font-size: 1.2em;
    color: #AED581 !important;
}

.dropdown:hover .dropdown__btn {
}

    .dropdown:hover .dropdown__btn svg {
        transform: rotate(180deg);
    }

.dropdown:hover .dropdown__content {
    background-color: #E1F5FE;
    visibility: visible;
    opacity: 1;
    transform: translateY(2px);
    display: block;
}

/* Header Bottom */

.header-bottom {
    margin-top: 5.5rem;
}

.header-content {
    display: flex;
    align-items: center;
}

.header-content__left {
    flex-basis: 50%;
}

.header-content__right {
    flex-basis: 50%;
}

.header-content__wrapper {
    max-width: 28rem;
}

.header-content__title {
    color: #081d43;
    font-family: "Yekan";
    font-weight: normal;
    line-height: 2.5rem;
    font-size: xx-large
}

.header-content__text {
    color: #6c7890;
    line-height: 2rem;
}

.header-content__links {
    display: flex;
    margin-top: 2rem;
}

.header-content__link {
    background-color: #03A9F4;
    padding: 0.8rem 1.5em;
    color: #fff;
    border-radius: 0.3rem;
    text-decoration: none;
    margin-right: 0.8rem;
    width: 10rem;
    text-align: center;
    display: flex;
    align-items: center;
}

    .header-content__link:nth-child(1) {
        background-color: #4CAF50;
    }

.header-content__img {
    width: 100%;
    border-radius: 2rem;
}


/* Start Main */

.services-section {
    text-align: center;
}

.services-section1 {
    text-align: center;
}

.service-box {
    background-color: #f5f5f5;
    line-height: 2em;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
}

.service-box-gif {
    line-height: 2em;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    text-align: center;
}

.services-h1 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.LaserCut-img {
    margin-top: 1rem;
    width: 100%;
    max-width: 600px;
    border-radius: 2rem;
}

.LaserCuttingElement__img {
    width: 50%;
    max-width: 60px;
}

.servise-metal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 3rem;
}

.LaserCuttingSample {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5rem;
    flex-wrap: wrap;
}

.LaserCuttingSample__img {
    width: 100%;
    border-radius: 1.5rem;
}

/* Works Section */

.main {
    padding-top: 3rem;
}

.works {
    text-align: center;
    padding: 5rem 0;
}

.works__text, .portfolio__text {
    color: #6C7890;
    margin-bottom: 0;
    text-transform: uppercase;
    margin-top: 0;
}

.works__title, .portfolio__title {
    color: #081D43;
    margin-top: 0.8rem;
    font-family: 'Yekan';
    font-weight: normal;
    font-size: 1.8rem;
}

.works-content {
    margin-top: 3rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.works-content__item {
    flex-basis: 16rem;
    flex-shrink: 0;
}

.works-content__title {
    color: #081D43;
    justify-content: center;
    justify-items: center;
    margin: 1rem;
}

.works-content__text {
    color: #6C7890;
    justify-content: center;
    justify-items: center;
    line-height: 2rem;
    max-width: 16rem;
    margin: 1rem;
    text-align: center;
}

.works-img {
    max-width: 31rem;
    margin: 0 auto;
}

.works-img__img {
    width: 100%;
    border-radius: 1.5rem;
}

/* Person-Comments Section */

.person-comments {
    background-color: #2F5BEA;
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}

.person-comments__title {
    font-family: "Yekan";
    font-weight: normal;
    margin-top: 0;
    font-size: 1.8rem;
}

.person-comments__text {
    font-family: "Yekan";
    max-width: 28rem;
    margin: 0 auto;
    line-height: 1.8rem;
}

.comments-container {
    max-width: 65rem;
    margin: 3.5rem auto 0 auto;
}

.comments {
    display: flex;
    justify-content: space-between;
}

.comment {
    background-color: #fff;
    margin: 1rem;
    border-radius: 0.3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 18rem;
    flex-basis: 20rem;
}

.comment__content {
    text-align: left;
    padding: 1.2rem;
}

.comment__body {
    font-family: 'Yekan';
    color: #7E8085;
    line-height: 1.5rem;
    margin: 0;
    justify-content: center;
    justify-items: center;
    text-align: center;
}

.comment__info {
    display: flex;
    border-top: 1px solid #E8EBEF;
    padding: 0.8rem 1.2rem;
    align-items: center;
    justify-content: space-between;
}

.comment__img {
    max-width: 5rem;
}

.comment__person {
    color: #000000;
    margin: 0 0 0 0.5rem;
}

.companies {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5rem;
    flex-wrap: wrap;
}

.companies__img {
    display: block;
    margin: 1rem;
    background-color: aliceblue;
    max-width: 7rem;
    border-radius: 0.5rem;
}


/* Portfolio */


.portfolio {
    text-align: center;
    padding: 5rem 0;
}

.portfolio__text {
}

.portfolio__title {
}

.portfolio-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 3rem;
}

.portfolio__item {
    flex-basis: 23rem;
    margin-bottom: 2rem;
    border-radius: 0.3rem;
    overflow: hidden;
}

.portfolio__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Start Footer */


.newsletter {
    background-color: #2C57E4;
    padding: 6.5rem 0;
    color: #fff;
}

.newsletter__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newsletter__text {
    font-size: 1.6rem;
    font-weight: normal;
    margin-left: 1rem; /* Add space below the text */
}

.newsletter__email {
    background: #fff;
    flex-basis: 22rem;
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0.3rem 0.3rem 1.5rem;
    border-radius: 0.3rem;
}

.newsletter__txt {
    border: none;
    outline: none;
}

.call__link {
    background: #4CAF50;
    border: none;
    outline: none;
    padding: 1rem 1rem;
    width: 100%; /* Ensure full width */
    max-width: 100%; /* Prevent overflow */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.3rem;
}

.call__btn {
    background-color: #03A9F4;
    padding: 0.8rem 1em;
    margin: 1rem;
    color: #fff;
    border-radius: 0.3rem;
    text-decoration: none;
    margin-right: 0.8rem;
    display: block;
    max-width: 300px; /* Adjust button width */
    font-size: 1rem; /* Default font size */
    text-align: center;
}

    .call__btn svg {
        margin-right: 0.5rem;
        width: 16px;
        height: 16px;
    }

    .call__btn:hover {
        color: #000;
        transform: scale(1.05);
    }

.copy-right {
    color: #6C7890;
    padding: 1rem 0;
}

.copy-right__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copy-right__text {
}

.copy-right__text {
}

#address {
    font-size: 0.9rem;
    margin-top: 1rem;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
}

.flex-item {
    flex-basis: calc(50% - 10px);
    margin-bottom: 20px;
    text-align: center;
    padding: 10px;
    background-color: #f0f0f0;
    transition: padding 0.3s;
    transition: font-size 0.3s;
    border-radius: 0.5rem;
}

.felex-item-tag {
    text-decoration: none;
    font-size: 2rem;
    line-height: 1.5;
    color: #333;
}

    .felex-item-tag:hover {
        color: #1976D2 !important;
        font-size: 2.5rem;
    }

.flex-item:hover {
    padding: 1.2rem;
    font-size: 1.2rem;
    color: #00C853;
}

    .flex-item:hover .felex-item-tag {
        font-size: 2.5rem;
        color: #00C853;
    }

.flex-item-description {
    font-size: 0.9rem;
    color: #777;
    margin: 1rem;
}


.content {
    position: relative;
    bottom: -75px;
    transition: bottom 0.7s ease;
}

/* Project Responsive */

@media only screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .portfolio__item {
        flex-basis: 28rem;
    }

    .newsletter__text {
        max-width: 28rem;
        margin-left: 1rem; /* Add space below the text */
    }

    .service-box {
        flex-basis: 22%;
    }
}

@media only screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .header-content {
        flex-direction: column-reverse;
    }

    .header-bottom {
        margin-top: 3rem;
    }

    .header-content__wrapper {
        max-width: 100%;
    }

    .header-content__right {
        margin-bottom: 2rem;
    }

    .header-content__links {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .header-content__link {
        margin-bottom: 1rem;
    }

    .comments {
        flex-wrap: wrap;
    }

    .comment {
        flex-basis: 19rem;
    }

    .companies {
        justify-content: center;
        margin-top: 2.5rem;
    }

    .portfolio__item {
        flex-basis: 20rem;
    }

    .newsletter__text {
        max-width: 20rem;
        margin-left: 1rem; /* Add space below the text */
    }

    .services-section {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-box {
        flex-basis: 28%;
    }

    .header__link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

        .header__link svg {
            width: 12px;
            height: 12px;
        }
}

@media only screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .header__icon {
        display: block;
    }

    .menu {
        position: fixed;
        top: 0;
        left: -256px;
        bottom: 0;
        background: #3f70e1;
        width: 16rem;
        flex-direction: column;
        padding: 2rem 1rem;
        transition: 0.3s all;
    }

    .menu__item {
        margin-bottom: 2rem;
        font-size: 1.2rem;
    }

    .menu__link {
        color: #fff;
    }

    .works-content__item {
        flex-basis: 14rem;
    }

    .works-content__item {
        margin-bottom: 1.5rem;
    }

    .comment {
        margin: 0 0 1.5rem 0;
        flex-basis: 15rem;
    }

    .portfolio__item {
        flex-basis: 100%;
    }

    .newsletter__wrapper {
        flex-direction: column;
    }

    .newsletter__email {
        flex-basis: auto;
        width: 100%;
    }

    .newsletter__text {
        max-width: 100%;
        margin-bottom: 2rem;
        margin-left: 1rem; /* Add space below the text */
    }

    .services-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-box {
        flex-basis: 45%;
    }

    .flex-item {
        flex-basis: calc(100% - 20px);
    }

    .header__link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

        .header__link svg {
            width: 12px;
            height: 12px;
        }
}

@media only screen and (max-width: 576px) {
    .container {
        max-width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .header,
    .footer {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        width: 100%;
    }

    .works-content__item {
        flex-basis: 100%;
    }

    .works-content__text {
        max-width: 100%;
    }

    .comment {
        flex-basis: 100%;
    }

    .services-section {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .flex-item {
        flex-basis: calc(100% - 20px);
    }

    .nav-logo__img {
        width: 75%; /* Reduce logo size to 75% of its original size */
    }

    .header__link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

        .header__link svg {
            width: 12px;
            height: 12px;
        }

    /* Adjust footer buttons and text */
    .call__link, .newsletter__text, .copy-right__text {
        text-align: center;
        margin: auto;
        margin-left: 1rem; /* Add space below the text */
    }

    .call__btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        max-width: 100%;
    }

    #address {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }

    .header-top, .copy-right__wrapper {
        flex-direction: row; /* Align items in a row */
        justify-content: space-around; /* Space them evenly */
        align-items: center;
    }
    .header__icon {
        font-size: 1.5rem; /* Adjust icon size if necessary */
    }

    .dropdown:checked .dropdown__btn svg {
        transform: rotate(180deg);
    }

    .dropdown:checked .dropdown__content {
        background-color: #E1F5FE;
        visibility: visible;
        opacity: 1;
        transform: translateY(2px);
        display: block;
    }
}
