@import "icon v1.0.1.css";
@import "animation.css";
@import url("meshing.css") screen and (min-width: 768px);

@font-face {
    font-family: "ATR";
    src: url("../fonts/ATR.woff2") format("woff2"), url("fonts/ATR.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
    font-display: block;
}
@font-face {
    font-family: "ATR-B";
    src: url("../fonts/ATR-B.woff2") format("woff2"), url("fonts/ATR-B.ttf") format("truetype");
    font-style: normal;
    font-weight: 900;
    font-display: block;
}
:root {
    --color-bg1: #1e90ff;
    --color-bg2: #ffffff;
    --color-text1: #ffffff;
    --color-text2: #000000;
    --header-bg: #0A246A;
    --transition-default: all 0.5s ease;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-full: 50%;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-size: 14px;
}
@media (min-width: 1920px) {
    html {
        font-size: 16px;
    }
}
body {
    font-family: ATR, sans-serif;
    display: grid;
    grid-template-rows: auto 2fr auto;
    min-height: 100dvh;
    line-height: 1;
}
h1, h2, h3, h4 {
    font-family: ATR-B, sans-serif;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}
p {
    text-align: justify;
    line-height: 2;
    padding-top: clamp(0.25rem, 0.5vw, 0.5rem);
}
ol, ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
}
.rel {
    position: relative;
}
.ct {
    text-align: center;
}
.hide {
    display: none;
}
.bold {
    font-weight: bold;
}
.clearfix:after, .clearfix:before {
    content: ' ';
    display: table;
    height: 0;
    visibility: hidden;
}
.clearfix:after {
    clear: both;
}
.container {
    margin: auto;
    width: min(80vw, 1200px);
}
.separator1 {
    height: 1px;
    margin: clamp(0.25rem, 0.5vw, 0.5rem) 0;
    background: linear-gradient(to right, transparent, var(--color-bg2), transparent);
}
.separator-page {
    height: 1px;
    margin: clamp(0.25rem, 0.5vw, 0.5rem) 0;
    background: linear-gradient(to right, transparent, #ccc, transparent);
}
header {
    overflow: hidden;
}
#header-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    justify-content: center;
    padding: clamp(0.25rem, 0.5vw, 0.5rem) 0;
}
#main-menu {
    flex: 1;
}
#main-menu .menu-item-has-children:after {
    content: '\f053';
    font-family: icon;
    position: absolute;
}
#contact-box {
    flex: 1;
    display: flex;
    justify-content: end;
    gap: clamp(0.25rem, 1vw, 0.5rem);
}
#contact-box a {
    padding: clamp(0.5rem, 1vw, 1rem);
}
#header-menu-box.fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background-color: var(--header-bg);
    max-height: 0;
    transition: max-height 1s;
    overflow: hidden;
}
#header-menu-box.fixed.show {
    max-height: clamp(4rem, 5vw, 10rem);
    overflow: unset;
}
#main-menu-box>li:not(.menu-item-has-children)>a {
    padding: clamp(1rem, 1vw, 1.5rem);
}
#main-menu-box>li.menu-item-has-children>a {
    padding: clamp(1rem, 1vw, 1.5rem) clamp(1rem, 1vw, 1.5rem) clamp(1rem, 1vw, 1.5rem) clamp(2rem, 2vw, 4rem);
}
#menu-placeholder {
    height: clamp(2rem, 5vw, 4rem);
}
#header-mini-logo {
    background-color: var(--color-bg2);
    border-radius: var(--border-radius-full);
    width: 38px;
    height: 38px;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}
#header-mini-logo img {
    width: 30px;
    height: 27px;
    vertical-align: middle;
}
#header-mini-title {
    text-align: center;
    font-weight: bold;
    position: relative;
    z-index: 99;
    width: fit-content;
    justify-self: center;
    opacity: 0;
}
#header-menu-box.fixed #header-mini-title {
    animation: lensFade 1s ease-out forwards;
}
/* Navigation Sub-menus */
nav a {
    width: 100%;
    display: inline-block;
}
nav ul {
    display: flex;
}
nav li {
    position: relative;
}
nav .menu-item-has-children:hover:after {
    content: '\f078';
}
nav .main li>.sub-menu {
    right: 0;
    top: 100%;
}
nav .sub-menu .sub-menu {
    right: 100%;
    top: 0;
}
nav .sub-menu {
    width: max-content;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    max-height: 0;
    position: absolute;
    z-index: 0;
    perspective: 25vw;
}
nav .sub-menu li {
    border-right: 2px solid #ddd;
    border-top: 1px solid rgba(0, 0, 0, .3);
    opacity: 0;
    transform: rotateY(-90deg);
    transition: opacity .3s, transform .5s;
    background-color: var(--color-bg1);
    width: 100%;
    border-radius: var(--border-radius-md) 0 0 0;
}
nav .sub-menu li:hover {
    border-right-color: gold;
}
nav .sub-menu li a {
    width: 100%;
    padding: clamp(0.5rem, 1vw, 1rem);
}
nav ul>li:hover>ul, ul>li:focus>ul {
    z-index: 10;
}
nav ul>li:hover>ul>li, ul>li:focus>ul>li {
    opacity: 1;
    transform: none;
}
/* Sub-menu transition delays */

#page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    padding: clamp(0.5rem, 2vw, 1rem) 0;
}
#page header {
    color: var(--color-text1);
}
.wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    padding: clamp(0.25rem, 0.5vw, 0.5rem) 0;
    font-size: clamp(0.875rem, 1.5vw, 1.1rem);
    flex-wrap: wrap;
}
.wrapper .image-box {
    flex: 0 0 clamp(200px, 30%, 400px);
}
.wrapper .img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
#front header {
    height: 100vh;
    color: #fff;
}
#front #header-logo {
    width: clamp(60px, 8vw, 150px);
    height: clamp(60px, 8vw, 150px);
    background-color: var(--color-bg2);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: clamp(1rem, 5vw, 3rem) auto 0 auto;
    opacity: 0;
    animation: fadeScale 1s ease forwards 0.5s, glow 3s ease-in-out infinite;
}
#front #header-logo img {
    width: clamp(45px, 6vw, 110px);
}
#front #header-brand span {
    display: inline-block;
    animation: rotateReveal 0.5s linear forwards;
}
#front #header-brand span:nth-child(1) {
    opacity: 0;
    animation-delay: 1.5s;
}
#front #header-brand span:nth-child(2) {
    opacity: 0;
    animation-delay: 1.75s;
}
#front #header-brand span:nth-child(3) {
    opacity: 0;
    animation-delay: 2s;
}
#front #header-brand span:nth-child(4) {
    opacity: 0;
    animation-delay: 2.25s;
}
#front #header-brand {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-family: ATR-B;
    direction: ltr;
    text-shadow: 1px 1px 5px #000;
    margin-top: clamp(0.5rem, 2vw, 1rem);
}
#front #header-title {
    text-align: center;
    margin: clamp(0.5rem, 3vw, 2rem) auto 0 auto;
    width: min(90%, 800px);
    opacity: 0;
    transform: translateY(30vw);
    animation: slideUp 1s ease forwards 3s;
}
#front #header-title h1 {
    font-size: clamp(1.5rem, 6vw, 4rem);
}
#front #header-title span {
    font-size: clamp(1rem, 3vw, 2rem);
    color: gold;
    font-family: ATR-B;
    line-height: 4;
}
#front section h2 {
    position: relative;
    border-left: clamp(30px, 8vw, 150px) solid transparent;
    border-right: clamp(30px, 8vw, 150px) solid transparent;
    border-top: clamp(30px, 7vw, 120px) solid #0082C1;
    margin: 0 auto;
    width: 0;
    height: 0;
    z-index: 99;
    top: -0.5rem;
    line-height: 1;
}
#front section h2 span {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: bold;
    white-space: nowrap;
}
/* Social Media Box */
#sm-box {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: clamp(0.25rem, 0.25vw, 0.5rem);
    background-color: #ffffff0f;
    border-radius: 5vw;
    margin: clamp(0.5rem, 1vw, 1rem);
}
#sm-box .sm {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: white;
    margin: clamp(0.25rem, 0.5vw, 0.5rem) 0;
    text-align: center;
    width: clamp(30px, 4vw, 50px);
    height: clamp(30px, 4vw, 50px);
    line-height: clamp(30px, 4vw, 50px);
    border-radius: var(--border-radius-full);
}
#sm-box .sm.disabled {
    color: #888;
    cursor: not-allowed;
}
#sm-box .sm:hover {
    background-color: rgba(0, 170, 238, 0.3);
}
#scroll-to-content {
    position: absolute;
    text-align: center;
    width: clamp(24px, 4vw, 40px);
    height: clamp(40px, 6vw, 60px);
    top: 80vh;
    right: calc(50% - clamp(12px, 2vw, 20px));
    color: white;
    line-height: clamp(24px, 4vw, 40px);
    border-radius: var(--border-radius-lg);
    background-color: black;
    opacity: 0.5;
    cursor: pointer;
    animation: ;
}
#scroll-to-content::before {
    animation: scroll 1s ease-out infinite;
    position: absolute;
    width: clamp(12px, 2vw, 20px);
    margin-left: clamp(-10px, -1vw, -6px);
    left: 50%;
    top: 30%;
    padding: 0;
}
#scroll-to-content::after {
    content: '|';
    width: 0.5vw;
    margin-left: -0.25vw;
    top: 0.25vw;
    left: 50%;
    position: absolute;
    font-size: 1.5rem;
}
.scroll-indicator {
    text-align: center;
    font-size: 3rem;
    animation: scroll 1s ease-out infinite;
}
.scroll-indicator::before {}
article {
    opacity: 0;
    transform: translateY(100px);
    transition: var(--transition-default);
}
article.visible {
    opacity: 1;
    transform: translateY(0);
}
article ul {
    padding-right: 2rem;
    line-height: 1.5;
}
article li {
    padding-top: clamp(0.25rem, 0.5vw, 0.5rem);
    list-style: disc outside;
}
.service {
    border-radius: 12px;
    transition: transform 0.3s;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}
.service img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.service:hover img {
    transform: scale(1.08);
}
.service-img {
    overflow: hidden;
    min-width: 200px;
}
.service-text {
    padding-right: clamp(0.5rem, 2vw, 2rem);
    flex: 1;
    min-width: 200px;
}
.service-text ul {
    font-size: 0.9rem;
}
main {
    padding: clamp(0.5rem, 2vw, 1rem) 0;
}
#map {
    margin-top: 1rem;
}
#post article {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    padding: 1rem 2rem 2rem 2rem;
}
#post article p {
    line-height: 3;
}
#post article ul {
    padding-right: 2rem;
    line-height: 2;
}
#footer {
    background-color: var(--header-bg);
    padding: clamp(1rem, 3vw, 2rem) 0;
    color: #fff;
}
@media screen and (min-width: 768px) {
    #main-menu-box {
        display: flex;
        justify-content: start;
        gap: clamp(0.25rem, 1vw, 0.5rem);
    }
    #main-menu-box>li>a {
        transition: 0.5s background-color ease-out;
    }
    #main-menu-box>li:not(.menu-item-has-children)>a {
        border-radius: var(--border-radius-md);
    }
    #main-menu-box>li.menu-item-has-children>a {
        border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    }
    #contact-box a {
        border-radius: var(--border-radius-md);
        transition: 0.5s background-color ease-out;
    }
    #contact-box a:hover, #main-menu-box>li:has(a:hover)>a {
        background-color: var(--color-bg1);
    }
    #main-menu .menu-item-has-children:after {
        left: 1rem;
        top: 1rem;
    }
    #main-menu ul {
        justify-content: center;
        align-content: center;
        flex-direction: row;
    }
    #main-menu li {
        cursor: pointer;
    }
    #main-menu ul li:hover>ul>li:nth-child(1), #main-menu .sub-menu li:nth-child(1) {
        transition-delay: 0s;
    }
    #main-menu ul li:hover>ul>li:nth-child(2), #main-menu .sub-menu li:nth-child(2) {
        transition-delay: 50ms;
    }
    #main-menu ul li:hover>ul>li:nth-child(3), #main-menu .sub-menu li:nth-child(3) {
        transition-delay: 100ms;
    }
    #main-menu ul li:hover>ul>li:nth-child(4), #main-menu .sub-menu li:nth-child(4) {
        transition-delay: 150ms;
    }
    #main-menu ul li:hover>ul>li:nth-child(5), #main-menu .sub-menu li:nth-child(5) {
        transition-delay: 200ms;
    }
    #main-menu ul li:hover>ul>li:nth-child(6), #main-menu .sub-menu li:nth-child(6) {
        transition-delay: 250ms;
    }
    #main-menu ul li:hover>ul>li:nth-child(7), #main-menu .sub-menu li:nth-child(7) {
        transition-delay: 300ms;
    }
    #main-menu ul li:hover>ul>li:nth-child(8), #main-menu .sub-menu li:nth-child(8) {
        transition-delay: 350ms;
    }
    #header-menu-box.fixed {
        border-radius: 0 0 25% 25%;
        border-bottom: 5px solid #fff;
    }
    .service {
        border: 2px dashed #eee;
    }
    .mobile {
        display: none;
    }
}