:root {
    --font-color-active: #233D4D;
    --overlay-height: 384px;
    --bg-color: #FCCA46;

    --theme-color: #233D4D;
    --font-color-normal: #FCCA46;
    --text-h1-primary: #233D4D;
    --text-p-primary: #233D4D;

    --theme-color-alt: #FCCA46;
    --font-color-normal-alt: #233D4D;
    --text-h1-alt: #FCCA46;
    --text-p-alt: #FCCA46;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Dongle', sans-serif;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Fixed Navigation Bar at the Top */
.nav-row {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    z-index: 1000;
    flex-wrap: wrap;
}

/* Base button styles using standard CSS variable */
.nav-btn {
    font-family: 'Dongle', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1;
    padding: 4px 28px;
    cursor: pointer;
    text-decoration: none;

    background-color: var(--theme-color);
    color: var(--font-color-normal);
    border: 5px solid var(--theme-color);
    border-radius: 10px;

    transition: all 0.2s ease-in-out;
}

.nav-btn:hover {
    transform: scale(1.1);
}

.nav-btn:active {
    border-color: #FFFFFF !important;
    transform: scale(1.0);
}

.nav-btn.active {
    background-color: var(--theme-color-alt);
    color: var(--theme-color);
    border: 5px solid var(--theme-color);
}

/* Alternate Theme when .button-row has the .alt-theme class */
.nav-row.alt-theme .nav-btn {
    background-color: var(--theme-color-alt);
    border-color: var(--theme-color-alt);
    color: var(--font-color-normal-alt);
}

.nav-row.alt-theme .nav-btn.active {
    background-color: var(--theme-color);
    color: var(--theme-color-alt);
    border-color: var(--theme-color-alt);
}

.contact-row {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.contact-btn {
    font-family: 'Dongle', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1;
    padding: 4px 28px;
    cursor: pointer;
    text-decoration: none;
    background-color: #FFFFFF00;
    color: var(--font-color-normal-alt);
    border: 5px solid var(--theme-color);
    border-radius: 10px;

    transition: all 0.1s ease-in-out;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.contact-btn:hover {
    transform: scale(1.1);
}

.contact-btn:active {
    border-color: #FFFFFF;
    transform: scale(1.0);
}


.blog-btn {
    font-family: 'Dongle', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1;
    padding: 4px 28px;
    cursor: pointer;
    text-decoration: none;
    background-color: var(--theme-color-alt);
    color: var(--font-color-normal-alt);
    border: 5px solid var(--theme-color);
    border-radius: 10px;

    transition: all 0.1s ease-in-out;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.blog-btn:hover {
    transform: scale(1.1);
}

.blog-btn:active {
    border-color: #FFFFFF;
    transform: scale(1.0);
}


/* Section Styling */
.section {
    position: relative;
    min-height: calc(100vh);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 192px 20px;
    scroll-margin-top: -192px;
    font-size: 42px;
}

.section > :first-child {
    margin-top: 48px;
}

.section > :last-child {
    margin-bottom: 48px;
}


.section:first-of-type {
    scroll-margin-top: 0px;
}

.section:nth-of-type(even) h1 {
    color: var(--text-h1-alt);
}

.section:nth-of-type(even) p {
    color: var(--text-p-alt);
}

.section.bg-image {
    background-image: url('./splash.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;

    min-height: calc(100vh + 192px);
    z-index: 2;
    position: relative;
    padding-bottom: 192px;
}

.section.bg-image:first-of-type {
    min-height: calc(100vh);
}

.section.bg-gradient {
    scroll-margin-top: 0px;
    background: linear-gradient(180deg, var(--theme-color) 0%, var(--theme-color) 100%);
    min-height: calc(100vh - 240px);
}


/* Background image layer receiving the SVG distortion */
.section.bg-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;

    background-image: url('./splash.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: url(#distortionFilter);
    z-index: -1;
}

.section::after {
    content: '';
    position: absolute;
    bottom: calc(var(--overlay-height) / -2);
    left: 0;
    width: 100%;
    height: var(--overlay-height);
    background-image: url('./transition.png');
    background-repeat: repeat-x;
    background-size: auto var(--overlay-height);
    background-position: center;
    z-index: 10;
    pointer-events: none;
}

.section:nth-of-type(even)::after {
    transform: scaleY(-1);
}

.section:last-of-type::after {
    display: none;
}

.section h1 {
    font-size: 96px;
    font-weight: 700;
    margin-top: 32px;
    color: var(--text-h1-primary);
}

.section p {
    font-size: 42px;
    line-height: 1.1;
    max-width: 800px;
    text-align: center;
    color: var(--text-p-primary);
}

.section.bg-image h1,
.section.bg-image p {
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
}

.logo-item {
    max-width: 100%;
    height: auto;
}

.logo_corner {
    position: fixed;
    bottom: 20px; /* Distance from the bottom edge */
    right: 20px;  /* Distance from the right edge */
    width: 80px;
    height: auto;
    overflow: hidden;
    z-index: -1;
}

.is-hidden {
  opacity: 0;
  visibility: hidden;
}


.formkit-submit {
    background-color: var(--theme-color-alt) !important;
    font-family: 'Dongle', sans-serif;
    font-weight: 700 !important;
    font-size: 32px !important;
    color: var(--theme-color) !important;
    line-height: 1;
    height: 47px;
}

.team {
    display: flex;
    gap: 32px;
    text-align: left;
    align-items: center;
}

.team p {
    text-align: left;
}

.team-photo {
    max-width: 100%;
    width: 280px;
    max-height: 280px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    border: 5px solid var(--theme-color);
    transition: all 0.2s ease-in-out;
}

.team-photo:hover {
    transform: scale(1.1);
}

video {
    border-radius: 10px;
    border: 5px solid var(--theme-color-alt);
    transition: all 0.2s ease-in-out;
    max-width: 100%;
    height: auto;
}

video:hover {
    transform: scale(1.25);
}

.float-1 {
    animation: float_1 4s ease-in-out infinite;
}

.float-2 {
    animation: float_2 4s ease-in-out infinite;
}

@keyframes float_1 {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes float_2 {
    0% {
        transform: translateY(0px) rotate(-2deg);
    }

    50% {
        transform: translateY(15px) rotate(0deg);
    }

    100% {
        transform: translateY(0px) rotate(-2deg);
    }
}

@media (max-width: 800px) {
    .logo-container {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .nav-btn {
        font-size: 32px;
        padding: 4px 8px;
    }

    .contact-btn {
        font-size: 32px;
    }

    .blog-btn {
        font-size: 32px;
    }

    .team {
        flex-direction: column;
    }

    .logo_corner {
        display: none;
    }

    .section h1 {
        font-size: 64px;
    }

    .section p {
        font-size: 32px;
    }
}