@import url('https://fonts.googleapis.com/css?family=Kanit&display=swap');

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

html {
    scroll-behavior: smooth;
    font-family: 'Kanit', sans-serif;

}
body {
    line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

.loader {
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader > img {
    width: 10%;
}

.loader.hidden {
    animation: fadeOut 2s;
    animation-fill-mode: forwards;
}

@keyframes fadeOut {
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.container {
    max-width: 1173px;
    width: 98%;
    margin: 0 auto;
}

header {
    width: 100%;
    height: 950px;
    background: url('../img/mac-min.jpg') no-repeat;
    opacity: 0.9;
    clip-path: polygon(0 78%, 0 0, 100% 0, 100% 80%, 50% 100%);
    background-size: cover;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 109px;
}

nav ul.menu {
    display: flex;
}

nav ul.menu li {
    margin-left: 2em;
}

nav ul.menu li a {
    color: #fff;
    text-shadow: 2px 2px 4px #000000;
    text-decoration: none;
    transition: .2s;
}

nav ul.menu li a:hover {
    color: #ccc7c7;
}

.header_title {
    width: 725px;
    margin: 0 auto;
    height: 700px;
    display: flex;
    align-items: center;
    font-size: 2.5em;
    justify-content: center;
    flex-direction: column;
}

.header_title .text {
    width: 100%;
    height: 40vh;
}


.header_title a {
    width: 10em !important;
    height: 3em;
    background: #2d9cfc;
    border: none;
    text-align: center !important;
    line-height: 1em;
    text-decoration: none;
    padding: 10px 30px;
    font-size: large;
    border-radius: 3em;
    transition: .6s;
    color: white;
    font-weight: bold;
}

.header_title a:hover {
    background: #2dcffc;
}
/* Our Services */

.services {
    width: 100%;
    height: 422px;
}

.services_header {
    margin-top: 4em;
    text-shadow: 1x 1px 3px #000000;
}

.services_header h4 {
    text-align: center;
    font-size: 3em;
    position: relative;
}

.services_header h4:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    border-bottom: 2px solid #c8235d;
    bottom: -20px;
}
 
.service_items_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
    width: 100%;
    padding-top: 4em;
}

.services_items {
    display: flex;
    text-align: center;
}

.services_item_headers {
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: x-large;
}

.services_item_content {
    margin: 3px 20px;
}

/* Our Portfolio */

.ourportfolio {
    width: 100%;
    height: 950px;
    background: url('../img/working.jpg') no-repeat;
    clip-path: polygon(100% 80%, 51% 100%, 0 80%, 0 0, 51% 22%, 100% 0);
    background-size: cover;
}

.ourportfolio_header {
    padding-top: 5em;
    text-align: center;
    font-size: 3em;
    position: relative;
    color: white;
}

.ourportfolio_header p:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    border-bottom: 3px solid #c8235d;
    bottom: -20px;
}

.ourportfolio_content {
    width: 100%;
    padding-top: 4em;
}

/* Our Team */

.ourteam {
    width: 100%;
    height: 481px;
}

.ourteam_header {
    padding-top: 3em;
    text-align: center;
    font-size: 3em;
    position: relative;
}

.ourteam_header p:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    border-bottom: 3px solid #c8235d;
    bottom: -20px;
}

.ourteam_content {
    padding: 45px;
}

.ourteam_items {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}



/* Contact Us */

.contactus {
    width: 100%;
    height: 752px;
    background: url('../img/contactus.jpg') no-repeat;
    background-size: cover;
    clip-path: polygon(100% 100%, 47% 100%, 0 100%, 0 0, 50% 38%, 100% 0);
    white-space: normal;
}

.contactus_header {
    padding-top: 10em;
    text-align: center;
    font-size: 2em;
    position: relative;
    color: white;
}

.contactus_header p:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    border-bottom: 3px solid white;
    bottom: -20px;
}

address {
    width: 100%;
    margin: 0 auto; 
    display: flex;
    justify-content: center;
    margin-top: 54px;
    color: white;
}

.contactus_container {
    width: 100%;
    margin-top: 2em;
    display: flex;
    justify-content: space-around;;
}
.contactus_items {
    color: white;
    width: 11em;
}
.contactus_items .contactus_item_pic {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.contactus_item_content {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contactus_item_content span {
    font-weight: bold;
}

.copyright {
    width: 100%;
    margin-top: 6em;
    color: white;
    display: flex;
    justify-content: center;
}
/* typewrite */

.typewrite {
    color: white;
    text-align: center !important;
    font-size: 2em;
}

/* responsive */


@media only screen and (max-width: 768px) {
    .header_title {
        width: auto;
    }
    nav {
        flex-direction: column;
    }
    .logo {
        margin-top: 2em;
        margin-bottom: 2em;
    }
    .typewrite {
        font-size: 1em;
    }
    .services {
        height: 542px;
    }
    .services_items {
        margin-bottom: 29px;
    }

    .copyright {
        margin-top: 0em;
        padding: 2em 2px;
        margin-bottom: 0.01em;
    }
}

@media only screen and (max-width: 480px) {
    nav ul.menu {
        display: flex;
        flex-direction: column;
    }
    .header_title {
        width: 378px;
    }
    .typewrite {
        font-size: 1em;
    }

    .getstarted {
        margin-top: -81px;
        margin-left: -5px;
    }
    .services {
        margin-top: -250px;
    }
    header {
        clip-path: polygon(0 61%, 0 0, 100% 0, 122% 58%, 50% 74%);
    }

    .contactus_container {
        flex-direction: column;
        padding-top: 0vh;
    }
    .contactus_header {
        padding-top: 4em;
    }
    .services_header h4 {
        text-align: center;
        font-size: 2em;
        position: relative;
    }

    .services_item_headers {
        margin-top: 1em;
        margin-bottom: 0.4em;
        font-size: large;
    }

    .services_item_content {
        font-size: smaller;
    }

    .contactus {
        height: auto;
        clip-path: polygon(100% 100%, 47% 100%, 0 100%, 0 0, 50% 12%, 100% 0);
    }

    address {
        word-break: break-word;
        text-align: center;
    }
}

@media only screen and (max-width: 380px) {
    .typewrite {
        font-size: 0.7em;
    }

    .header_title .text {
        margin-right: 20px;
    }

    
    .services_item_headers {
        margin-top: 1em;
        margin-bottom: 0.6em;
        font-size: large;
    }

    .services_item_content {
        font-size: smaller;
    }

    .service_items_container {
        width: 98%;
        padding-top: 4em;
        display: flex;
        flex-direction: column;
    }

    .ourteam_items img {
        width: 100%;
        height: auto;
    }

    .contactus {
        height: auto;
    }

}
.contectadmin{
    align-items: center;
}