/* 
    Carbon: #282f38
    Charcoal Art: #38373e
    Pageant Blue: #1f2c43
    Gray Dawn: #bbc1cc
    Ultimate Gray: #939597
    Gray Shingles: #656e75
    Gray Whale: #4e5055
*/

* {
    box-sizing: border-box;
    /* outline: 1px solid blue; */
}

/* @font-face {
    font-family: 'Chiron GoRound TC';
    src: url('assets/fonts/Chiron_GoRound_TC/ChironGoRoundTC-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 900;
    font-style: normal;
} */

body,
html {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('assets/images/background.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    pointer-events: none;
}

body {
    position: relative;
    min-width: 100vw;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Chiron GoRound TC WS', Arial, sans-serif;
    color: #1f2c43;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li {
    margin: 0px;
}

hr {
    border-top: 1px solid #272f38;
    opacity: 1;
}

#main-nav {
    background-color: rgba(40, 47, 56, 0.9);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    font-size: 0.5rem;
}

#nav-bar {
    width: 90%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin: 0px auto;
    padding: 10px 0px;
}

#company-logo-full {
    height: 30px;
    width: auto;
}

#nav-menu {
    display: flex;
    gap: 0.2rem;
}

a {
    text-decoration: none;
    color: #1f2c43;
}

a:hover {
    text-decoration: underline !important;
    text-decoration-color: #ff7d00 !important;
    text-underline-offset: 0.3rem;
}


#content {
    flex: 1;
}

.section {
    width: 90%;
    margin: 20px auto;
    scroll-margin-top: 70px;
}

#about_us {
    margin-top: 70px;
}


#contact_us a:hover {
    color: #1f2c43;
}

.section {
    align-items: baseline;
}

ul {
    list-style-position: inside;
    padding-left: 0;
}

.card {
    background-color: rgba(255, 255, 255, 0.75);
}

.card a:hover {
    text-decoration: none !important;
    color: #1f2c43 !important;
}

#footer {
    background-color: rgba(40, 47, 56, 0.9);
    color: white;
}

#footer div {
    width: 90%;
    margin: auto;
    padding: 10px 0px;
    font-size: 0.5rem;
}

#goTopBtn {
    position: fixed;
    bottom: 40px;
    left: calc(50dvw - 15px);
    z-index: 100;
    display: none;
    background: #1f2c43;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    box-shadow: 0 2px 8px #0002;
    transition: opacity 0.2s;
    padding: 0px;
    text-align: center;
    vertical-align: middle;
}

#goTopBtn i {
    font-size: 0.75rem;
}

#goTopBtn.show {
    display: block;
    opacity: 0.5;
}

#goTopBtn:hover {
    opacity: 1;
}

/* Tablet */
@media (min-width: 600px) {
    #main-nav {
        font-size: 0.75rem;
    }

    #nav-bar {
        width: 80%;
        height: 50px;
        scroll-margin-top: 70px;
    }

    #nav-menu {
        gap: 0.5rem;
    }

    #company-logo-full {
        height: 35px;
    }

    .section {
        width: 80%;
    }

    #about_us {
        margin-top: 70px;
    }

    #portfolios img {
        max-width: 768px;
    }

    #footer div {
        width: 80%;
        font-size: 0.75rem;
    }


    #goTopBtn {
        bottom: 50px;
        left: calc(50dvw - 20px);
        width: 35px;
        height: 35px;
    }

    #goTopBtn i {
        font-size: 1rem;
    }
}

/* Desktop */
@media (min-width: 900px) {
    #main-nav {
        font-size: 1rem;
    }

    #nav-bar {
        height: 75px;
        max-width: 1536px;
        scroll-margin-top: 95px;
    }

    #nav-menu {
        gap: 1rem;
    }

    #company-logo-full {
        height: 50px;
    }

    .section {
        max-width: 1536px;
    }

    #about_us {
        margin-top: 95px;
    }

    #footer div {
        max-width: 1536px;
        font-size: 1rem;
    }
}