
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-color-values: 189, 26, 32;
    --primary-color: rgb(var(--primary-color-values));

    --secondary-color-values: 64, 173, 73;
    --secondary-color: rgb(var(--secondary-color-values));

    --header-font: "Kanit";
    --primary-text-font: "Poppins";
    --secondary-text-font: "Montserrat";
}

html, body {
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}


body {
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

#to-page-top {
    --margin: 20px;
    position: fixed;
    right: var(--margin); bottom: var(--margin);
    background-color: var(--primary-color);
    border-radius: 100%;
    height: 60px;
    aspect-ratio: 1;
    border-style: none;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 0 15px -5px #000;
    opacity: 0;
    pointer-events: none;
    transition: background-color .3s ease, color .3s ease, opacity .5s ease;
    z-index: 1001;
}

#to-page-top:hover {
    background-color: white;
    color: var(--primary-color);
}

#hero {
    position: relative;
    margin-top: calc( -1 * var( --nav-height ));
    height: calc(100vh - 100px);
    overflow: hidden;
    -webkit-mask-image: url("../svg/hero.svg");
    mask-image: url("../svg/hero.svg");
    mask-size: cover;
    mask-position: bottom;
    mask-repeat: no-repeat;
}

.hero-banner {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(40%);
}

.hero-content {
    position: absolute;
    width: 100%; height: 100%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.hero-title {
    margin: 0;
    font-size: clamp(1rem, 15vw, 5.5rem);
    font-family: var(--header-font);
    color: var(--primary-color);
    text-align: center;
}

.hero-subtitle {
    margin: 0;
    font-size: 1rem;
    font-family: var(--header-font);
    color: white;
    letter-spacing: 1px;
    font-weight: 500;
    text-align: center;
}

.section-header {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--secondary-text-font);
    margin: 0;
    color: var(--secondary-color);
}

.section-overline {
    font-family: var(--secondary-text-font);
    font-size: 1rem;
    color: #888;
    font-weight: 500;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    margin: 0;
}

.section-description {
    font-family: var(--primary-text-font);
    font-size: .9rem;
    color: gray;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.section-subheader {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--secondary-text-font);
    color: var(--primary-color);
}

/* Layout Classes */
.separator-container {
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 30px;
}

.separator-line {
    height: 1.5px;
    width: 150px;
    background-color: var(--primary-color);
}

.separator-icon {
    background-color: var(--primary-color);
    width: 40px;
    aspect-ratio: 1;
    border-radius: 100%;
    color: white;
    font-size: 1rem;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rainbow-lined-background {
    position: relative;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 0 15px -5px #000;
    border-radius: 20px;
    padding: 20px;
}

.rainbow-lined-background::after {
    content: "";
    position: absolute;
    height: 5px; width: 100%;
    top: 0; left: 0;
    background-image: linear-gradient(
        to right,
        var(--primary-color),
        var(--secondary-color)
    );
}

.section-vertical-padding {
    padding-top: 100px;
    padding-bottom: 100px;
}

.site-message {
    position: fixed;
    right: 20px; top: calc(var(--nav-height) + 20px);
    z-index: 500;
    border-radius: 10px;
    box-shadow: 0 0 15px -2px #000;
    overflow: hidden;
    transition: opacity 1s ease,
                transform .5s ease;
}

.site-message::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    height: 2.5px; width: 100%;
    background-color: white;
    animation: timeCount 10s linear forwards;
}

@keyframes timeCount {
    from {
        width: 100%;
    }
    to {
        width: 0px;
    }
}

.site-message--success {
    background-image: linear-gradient(135deg, var(--secondary-color) 60%, var(--primary-color));
}

.site-message--error {
    background-image: linear-gradient(135deg, var(--primary-color) 60%, var(--secondary-color));
}

.site-message__desc {
    margin: 0;
    font-weight: 500;
    color: white;
}

.site-message__icon {
    color: white;
    font-size: 1.5rem;
}
