*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    overflow-x: clip;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: var(--font);
    overflow-x: hidden !important;
    overflow-x: clip !important;
    background-color: var(--black);
}

body.no_scroll {
    overflow: hidden !important;
}
 
html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

.spacing {
    padding: 0 30px;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}
.full-width {
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    position: relative;
    right: 50%;
    width: 100vw;
}

.maxgridrow {
    width: min(100%, 1860px);
    margin-inline: auto !important;
    padding-inline: 30px;
    box-sizing: border-box;
}

/* SCROLLING DOWN ARROW/BTN */
#scrolling_btn {
    position: fixed;
    z-index: 1000000;
    bottom: 50px;
    right: 30px;
    width: 100px;
    height: 100px;
    animation: pulse 3s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 500%;
    padding: 15px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#scrolling_btn .arrow {
    transform: rotate(90deg);
    position: relative;
    z-index: 2;
}
#scrolling_btn .circle_text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    animation: spin 8s linear infinite;
    transition: animation-duration 0.3s ease;
}
#scrolling_btn .circle_text text {
    font-size: 10px;
    letter-spacing: 1px;
    fill: var(--white);
    text-transform: uppercase;
}
#scrolling_btn:hover .circle_text {
    animation-duration: 3s;
}
#scrolling_btn:hover {
    animation-play-state: paused;
}
#scrolling_btn.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#scrolling_btn.white svg path {
    stroke: var(--white);
}
#scrolling_btn.white span,
#scrolling_btn.white .circle_text text {
    fill: var(--white);
    color: var(--white);
}

@keyframes spin {
    from { 
        transform: rotate(0deg); 
    }
    to   { 
        transform: rotate(360deg); 
    }
}

@keyframes pulse {
    0% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(30px); 
    }
    100% { 
        transform: translateY(0); 
    }
}


/* 404 PAGE */
.error404 #scrolling_btn,
.error404 .menu,
.error404 #contactID,
.error404 .links ,
.error404 .form_map,
.error404 .footer_bottom {
    display: none;
}
.error404 .main_header .logo {
    margin: auto;
}
.page_404 {
    height: 100vh;
    position: relative;
    width: 100%;
}
.page_404 h1 {
    color: var(--white);
    font-family: var(--font);
    font-size: var(--size-96);
    font-style: normal;
    font-weight: 200;
    line-height: 104%;
    letter-spacing: 4.8px;
}
.page_404 p {
    color: var(--white);
    font-family: var(--font-second);
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}
.page_404_inner {
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.page_404 a {
    text-decoration: none;
}
.go_home {
    border: 2px solid var(--green);
    border-radius: 35px;
    padding: 20px 25px;
    color: var(--green);
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}
.matrix_bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--black);
}
.matrix_column {
    position: absolute;
    top: -100%;
    font-family: monospace;
    font-size: 16px;
    line-height: 1.2;
    color: var(--green);
    white-space: pre;
    animation: matrix_fall linear infinite;
}

@keyframes matrix_fall {
    0%   { transform: translateY(0); }
    100% { transform: translateY(200vh); }
}



@media (max-width: 1000px) {
    h2.italic,
    h2.normal,
    p.italic,
    p.normal,
    p.build_title {
        letter-spacing: 0 !important;
    }
}

@media (max-width: 992px) {
    .maxgridrow {
        padding-inline: 25px;
    }
    #scrolling_btn {
        display: none;
    }
}


