:root {
    --light-text: #f3f4f5;
    --dark-text: #1a1b1c;
    --alt-dark-text: #333;
    --accent-text: #86c232;
    --dark-accent-text: #61892f;
    --muted-text: #a1a6a9;
    --gold-highlight: #D4AF37;

    --main-bg: linear-gradient(135deg,
            #383c40 0%,
            #1d241f 45%,
            #182016 75%,
            #383c40 100%);
    --alt-bg: linear-gradient(45deg,
            #222629 0%,
            #303539 45%,
            #474B4F 75%,
            #222629 100%);
    --nav-bg: #222629;
    --info-card-bg: #222629;
    --info-icon-bg: #3f5b1d;

    --main-button: #86c232;
    --dark-button: #09070e;
    --divider: #3a4046;
    --divider-light: #474b4f;
    --button-border: #86c232;

    --main-hover: #8fca3c;
    --dark-hover: #09070ef5;
    --info-icon-hover: #123746;
    --non-button-hover: #262b2f;

    --section-header-size: 45px;
    --section-par-size: 18px;
    --hero-text-size: 20px;
    --hero-footer-size: 13px;
    --nav-logo-size: 28px;
    --nav-link-size: 20px;
    --footer-text-size: 14px;
    --button-text-size: 17px;
    --card-header-size: 20px;
    --card-par-size: 14px;
    --card-small-size: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 92px;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    background: var(--main-bg);
}

.footer {
    min-height: 50px;
    width: 100%;
    font-size: var(--footer-text-size);
    color: var(--light-text);
    align-items: center;
    justify-content: center;
}

.footer p {
    font-size: var(--footer-text-size);
}

.footer p a {
    color: var(--accent-text);
}

.footer-section {
    min-height: 50px;
    width: 100%;
    color: var(--light-text);
    background: var(--nav-bg);

    text-align: center;
}

.single-section {
    min-height: 100vh;
    width: 100%;
    padding: 20px 8%;
    background: var(--main-bg);
    text-align: center;
}

.navbar-offset {
    height: 80px;
}

.service-content {
    width: 100%;
}

.service-info {
    max-width: 700px;
    margin: auto;

    font-size: var(--section-par-size);
    line-height: 1.8;
    color: var(--light-text);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 4%;

    z-index: 1000;

    background: transparent;

    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.navbar::after {
    content: "";

    position: absolute;

    left: -30%;
    bottom: 0;

    width: 30%;
    height: 2px;

    background: linear-gradient(90deg,
            transparent,
            var(--button-border),
            transparent);

    filter:
        drop-shadow(0 0 4px var(--button-border)) drop-shadow(0 0 8px var(--button-border));

    animation: navbar-glow 3s linear infinite;

    opacity: 1;

    pointer-events: none;

    transition: opacity 0.3s ease;
}


@keyframes navbar-glow {
    from {
        left: -30%;
    }

    to {
        left: 100%;
    }
}

.navbar.scrolled {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar.scrolled::after {
    opacity: 0;
    animation: none;
}

.section-divider {
    position: relative;
    width: 70%;
    height: 2px;
    margin: 0 auto;
    background: var(--divider-light);
    -webkit-mask-image: linear-gradient(90deg,
            transparent,
            black 10%,
            black 90%,
            transparent);

    mask-image: linear-gradient(90deg,
            transparent,
            black 10%,
            black 90%,
            transparent);
}

.section-divider::after {
    content: "";

    position: absolute;

    top: 0;
    left: -15%;

    width: 15%;
    height: 100%;

    background: linear-gradient(90deg,
            transparent,
            var(--button-border),
            transparent);

    filter:
        drop-shadow(0 0 4px var(--button-border)) drop-shadow(0 0 8px var(--button-border));

    animation: divider-glow 4s linear infinite;

    pointer-events: none;
}

@keyframes divider-glow {
    from {
        left: -15%;
    }

    to {
        left: 100%;
    }
}

.section-divider.static::after {
    background: none;
    filter: none;
    animation: none;

}

.navLogo {
    font-weight: bold;
    color: var(--light-text);
    list-style: none;

    transition: color 0.3s ease;
}

.navLogo a {
    color: var(--light-text);
    text-decoration: none;
    font-size: var(--nav-logo-size);
    font-weight: bold;

    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 55px;
    list-style: none;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-size: var(--nav-link-size);

    transition: color 0.3s ease;
}

.nav-links a span {
    color: var(--accent-text);
    text-decoration: none;
    font-size: var(--nav-link-size);

    transition: color 0.3s ease;
}

.perm-link {
    display: flex;
    font-size: var(--nav-link-size);
    color: var(--light-text);
    text-decoration: none;
    list-style: none;
}

.perm-link a {
    display: flex;
    font-size: var(--nav-link-size);
    color: var(--light-text);
    background: var(--dark-accent-text);
    padding: 10px;
    text-decoration: none;
    border-radius: 10px;
}

.navbar.scrolled .navLogo a {
    color: var(--dark-accent-text);
}

.navbar.scrolled .nav-links a {
    color: var(--dark-accent-text);
}

.navbar.scrolled .nav-links a span {
    color: var(--light-text);
}

.navbar.scrolled .perm-link a {
    color: var(--light-text);
}

.navbar.scrolled .hamburger span {
    background: var(--dark-accent-text);
}

.nav-links a:hover {
    opacity: 0.7;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
}

.logo img {
    display: block;

    max-width: min(300px, 60vw);
    max-height: 100%;
    width: auto;
    height: auto;
}

.subhero {
    position: absolute;

    top: 90px;
    margin-bottom: 50px;
    left: 0;

    width: 100%;
    height: calc(100% - 140px);

    display: grid;
    grid-template-rows: 2fr 1fr;

    z-index: 2;

    text-align: center;

    box-sizing: border-box;
}

.hero {
    position: relative;

    width: 100%;
    height: 100vh;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.hero-footer {
    position: absolute;
    bottom: 10px;

    width: 100%;

    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-evenly;

    padding: 10px 20px;
    box-sizing: border-box;

    color: var(--light-text);
}

.hero-footer-button {
    border-radius: 10px;
    background: #1d1d1d;

    width: auto;

    padding: 3px 10px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    text-align: center;

    font-size: var(--hero-footer-size);
}

.hero-background {
    position: absolute;

    top: -5%;

    width: 100%;
    height: 105%;

    background-image:
        linear-gradient(rgba(0, 0, 0, 0.72),
            rgba(0, 0, 0, 0.72)),
        url("../images/hero.webp");

    background-size: cover;
    background-position: center;

    z-index: 0;

    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}

.hero-subtitle {
    font-size: var(--hero-text-size);
    font-weight: 300;

    width: 100%;

    padding-left: 5%;
    padding-right: 5%;

    transform: none;
}

.hero-description {
    position: relative;
    font-size: clamp(17px, 1.5vw, 23px);
    font-weight: 300;

    opacity: 0.95;
    padding-bottom: 75px;
}

.content-section {
    min-height: 300px;

    padding: 20px 8%;

    background: var(--main-bg);

    text-align: center;
}

.content-section h2 {
    font-size: var(--section-header-size);
    color: var(--light-text);
    font-weight: 300;

    margin-bottom: 25px;
}

.content-section h2 span {
    color: var(--dark-accent-text);
}

.small-header {
    font-size: calc(var(--section-header-size) - 9px);
    color: var(--light-text);
    font-weight: 300;

    margin-bottom: 15px;
}

.small-header span {
    color: var(--dark-accent-text);
}

.Xsmall-header {
    font-size: calc(var(--section-header-size) - 15px);
    color: var(--light-text);
    font-weight: 200;

    margin-bottom: 10px;
}

.Xsmall-header span {
    color: var(--accent-text);
}

.content-section p {
    max-width: 700px;
    margin: auto;

    color: var(--light-text);
    font-size: var(--section-par-size);
    line-height: 1.8;
}

.altContent-section {
    min-height: 300px;

    padding: 20px 8%;


    background: var(--alt-bg);

    text-align: center;
}

.altContent-section h2 {
    font-size: var(--section-header-size);
    font-weight: 300;

    margin-bottom: 25px;
    color: var(--light-text);
}

.altContent-section h2 span {
    color: var(--dark-accent-text);
}

.altContent-section p {
    max-width: 700px;
    margin: auto;

    font-size: var(--section-par-size);
    line-height: 1.8;
    color: var(--light-text);
}

.P1text {
    max-width: 700px;
    margin: auto;

    font-size: var(--footer-text-size);
    line-height: 1.8;
    color: var(--light-text);
}

.spacing {
    padding: 5px;
}

.hamburger {
    display: none;

    width: 45px;
    height: 45px;

    background: transparent;
    border: none;

    cursor: pointer;

    padding: 8px;
}

.hamburger span {
    display: block;

    width: 100%;
    height: 3px;

    margin: 6px 0;

    background: white;

    transition: 0.3s;
}

.mobile-menu {
    display: none;

    position: absolute;

    top: 75px;
    left: 0;

    width: 100%;

    background: var(--nav-bg);

    padding: 20px 0;

    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.mobile-menu a {
    display: block;

    padding: 15px 25px;

    color: var(--dark-accent-text);

    text-decoration: none;

    font-size: 18px;
}

.mobile-menu a:hover {
    background: var(--dark-button);
}

.mobile-menu.active {
    display: block;
}

@media (max-width: 768px) {
    :root {
        --section-header-size: 35px;
        --section-par-size: 15px;
        --footer-text-size: 12px;
        --hero-text-size: 15px;
    }

    .subhero {
        bottom: 100px;
        height: calc(100% - 190px);
    }

    .hero {
        grid-template-rows: repeat(3, minmax(0, 1fr));
    }

    .logo img {
        max-width: min(200px, 50vw);
        max-height: 100%;
    }

    .hero-subtitle {
        max-width: 90%;

        margin-top: 5px;
    }

    .hero-footer {
        align-items: flex-end;

        padding: 5px 5px;

        bottom: 50px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 650px) {
    :root {
        --footer-text-size: 10px;
    }

    .logo img {
        max-width: min(150px, 50vw);
        max-height: 100%;
    }
}

@media (max-width: 550px) {
    :root {
        --section-header-size: 30px;
        --section-par-size: 12px;
        --footer-text-size: 8px;
        --hero-footer-size: 11px;
        --hero-text-size: 13px;
    }
}

@media (max-width: 475px) {
    :root {
        --card-header-size: 16px;
        --card-par-size: 12px;
        --card-small-size: 10px;
    }

    .hero-background {
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.48),
                rgba(0, 0, 0, 0.48)),
            url("../images/hero1.webp");
    }

    .hero-footer {
        bottom: 65px;
    }
}

@media (max-width: 450px) {
    :root {
        --button-text-size: 13px;
        --section-header-size: 28px;
    }
}

@media (max-width: 400px) {
    :root {
        --hero-footer-size: 8px;
        --card-header-size: 14px;
        --button-text-size: 11px;
    }


}

@media (max-width: 335px) {
    :root {
        --nav-link-size: 12px;
        --nav-logo-size: 20px;
        --hero-text-size: 12px;
        --card-header-size: 12px;
        --card-small-size: 9px;
        --button-text-size: 10px;
    }
}