@import url('colors.css');
@import url('fonts.css');
@import url('hamburger.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Jost;
    font-weight: 500;
}

html {
    background-color: var(--color-primary-black);
    height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

main {
    padding-bottom: 5rem;
}

p {
    font-size: 1.2rem;
    color: white;
}

h1 {
    margin: 2rem 0;
}

h2 {
    font-weight: 600;
    font-size: 2rem;
    color: white;
}

h3 {
    font-size: 1.5rem;
    color: white;
}

li {
    list-style: none;
}

a {
    font-size: 1.2rem;
}

.row-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.button-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.hamburger {
    display: none;
    opacity: 0;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
}

header .top-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: var(--color-primary-red);
    width: 100%;
    margin: 0px 50vw;
}

.logo img {
    /* margin-left: 5vw; */
    border-radius: .5rem;
    z-index: 2;
}

.menu {
    margin-right: 5vw;
}

header .top-header .logo {
    margin: 0.2rem 2rem;
    align-self: center;
    display: flex;
}

header .top-header .logo a {
    display: flex;
}

header .top-header .logo img {
    width: 70px;
    height: auto;
    aspect-ratio: 1/1;
    /* margin: 1rem 2rem; */
}

header .top-header .menu ul {
    display: flex;
    flex-direction: row;
    color: white;
    padding: inherit;
    height: 100%;
}

header .top-header .menu ul li {
    height: 100%;
    list-style: none;
    /* padding: 1rem 0rem; */
    display: flex;
    flex-direction: row;
    align-items: center;
}

header .top-header .menu ul li a {
    position: relative;
    color: var(--color-primary-black);
    text-decoration: none;
    height: 100%;
    padding: 2rem;
    background: linear-gradient(to bottom, var(--color-primary-dark-blue), var(--color-primary-dark-blue)) no-repeat;
    background-size: 100% 0%;
    transition: all 0.2s ease;
}

header .top-header .menu ul li a:hover {
    color: white;
    background: linear-gradient(to bottom, var(--color-primary-dark-blue), var(--color-primary-dark-blue)) no-repeat;
    background-size: 100% 100%;
}

.bottom-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    background-color: var(--color-primary-black);

}

.bottom-header h1 {
    font-size: 4rem;
    text-align: center;
    color: white;
    color: var(--color-primary-red);
}

.text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: auto;
    padding: 2rem 0;
}

.text-block * {
    margin: 0.5rem 0;
}

/* Make the text stick to the left even with align-items: center on the parent */
.text-block :is(h2, p) {
    align-self: baseline;
}

.text-block-wide {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    width: 80%;
    max-width: 1500px;
    height: 100%;
    padding: 2rem 0;
}

.animated-text h1 {
    font-size: 6rem;
    font-weight: 900;
    text-align: center;

    --bg-size: 200%;
    background: linear-gradient(90deg,
            var(--color-primary-red),
            #6d0316,
            var(--color-primary-red)) 0 0 / var(--bg-size) 100%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.group-element {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem .5rem;

    background: linear-gradient(to bottom, var(--color-primary-red), var(--color-primary-red)) no-repeat;
    background-size: 100% 0%;
    background-color: var(--color-primary-dark-blue);
    width: 28vw;
    min-width: 300px;
    max-width: 560px;
    clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
    transition: all 0.2s;

}

.group-element:self:first-of-type {
    margin-top: none;
}

.group-element:hover {
    transform: translateY(-5px);
    /* background: linear-gradient(to bottom, var(--color-primary-red), var(--color-primary-red)) no-repeat; */
    background-size: 100% 100%;
}

.group-element * {
    margin: 0.5rem 0;
}

.group-element *:first-child {
    margin-top: 5%;
}

.group-element *:last-child {
    margin-bottom: 5%;
}

.left-bar {
    border-left: 5px solid var(--color-primary-red);
    padding-left: 1rem;
}

.full-area {
    display: flex;
    flex-direction:column;
    align-items: center;
    background-color: var(--color-primary-red);
    width: 100%;
}

.half-slash-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;

}

.half-slash-left div:first-of-type {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-left: 1rem;
    width: 50%;
    background-color: var(--color-primary-red);
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);

    * {
        width: 85%;
    }
}

.half-slash-left div:last-of-type {
    width: 50%;
    /* padding: 1rem 1rem 0 1rem; */
}

.button-primary {
    background: linear-gradient(to bottom, var(--color-primary-dark-blue), var(--color-primary-dark-blue)) no-repeat;
    background-size: 100% 0%;
    background-color: var(--color-primary-red);
    font-size: 1.5rem;
    color: white;
    width: 30%;
    min-width: 180px;
    height: 4rem;
    border: none;
    clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
    cursor: pointer;
    transition: all 0.2s;
    margin: auto;
}

.button-primary:hover {
    transform: translateY(-5px);
    /* background: linear-gradient(to bottom, var(--color-primary-dark-blue), var(--color-primary-dark-blue)) no-repeat; */
    background-size: 100% 100%;
}
.button-primary:disabled {
    filter: grayscale(50%) saturate(50%);
    
    cursor: not-allowed;
}

.button-primary:disabled:hover {
    transform: none;
    background-size: 100% 0%;
}
.button-primary-blue{
    background: linear-gradient(to bottom, var(--color-primary-black), var(--color-primary-black)) no-repeat;
    background-size: 100% 0%;
    background-color: var(--color-primary-dark-blue);
    font-size: 1.5rem;
    color: white;
    width: 30%;
    min-width: 180px;
    height: 4rem;
    border: none;
    clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
    cursor: pointer;
    transition: all 0.2s;
    margin: auto;
}
.button-primary-blue:hover {
    transform: translateY(-5px);
    /* background: linear-gradient(to bottom, var(--color-primary-dark-blue), var(--color-primary-dark-blue)) no-repeat; */
    background-size: 100% 100%;
}
.button-secondary {
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    background: linear-gradient(to bottom, var(--color-primary-dark-blue), var(--color-primary-dark-blue)) no-repeat;
    background-color: var(--color-primary-red);
    background-size: 100% 0%;
    font-size: 1.5rem;
    color: white;
    width: 30%;
    min-width: 180px;
    height: 4rem;
    border: none;
    clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1;
    /* Ensure the button is above the pseudo-element */

}

.button-secondary::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    /* Slightly bigger to make the border effect */
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background-color: var(--color-primary-black);
    clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
    z-index: -1;
    /* Place the border behind the button content */
}

.button-secondary:hover {
    transform: translateY(-5px);
    background: linear-gradient(to bottom, var(--color-primary-dark-blue), var(--color-primary-dark-blue)) no-repeat;
    background-size: 100% 100%;
}

@media(prefers-reduced-motion: no-preference) {
    .animated-text h1 {
        animation: text-gradient 5s linear infinite reverse;
    }

    @keyframes text-gradient {
        to {
            background-position: var(--bg-size) 0;
        }
    }
}


@media (max-width: 768px) {

    * {
        /* Prevent default browser usual effect when clicking on a link */
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }

    .half-slash-left div:first-of-type {
        width: 100vw;
        clip-path: none;
        padding: 0 1rem;
        *{ width: 100%; }
    }

    .half-slash-left div:last-of-type {
        width: 100%;
    }


    .row-flex>div {
        flex-direction: column;
    }

    .button-container {
        flex-direction: row;

    }

    .button-container a {
        width: 100%;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
        min-width: 150px;
    }

    /* Mobile-specific styles */
    .hamburger {
        display: flex;
        align-items: center;
        justify-self: center;
        opacity: 1;
        align-self: center;
        margin-right: 2rem;
        z-index: 11;
        /* size: 5rem; */
    }

    .hamburger * {
        color: black;
    }

    header .top-header {
        align-items: center;
        /* flex-direction: column; */
        margin: 0;
        /* height: 100vh; */
    }

    header .top-header .menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        height: 0;
        width: 100vw;
        background-color: var(--color-primary-red);
        z-index: 10;
        overflow: hidden;
        /* Initial hidden state */
        height: 0;
        opacity: 0;
        visibility: hidden;
        /* Transition for smooth opening/closing */
        transition: height 0.4s ease-out, opacity 0.3s ease-in, visibility 0s linear 0.4s;
    }

    header .top-header .menu.show {
        height: 100vh;
        opacity: 1;
        visibility: visible;
        /* Transition for opening */
        transition: height 0.4s ease-out, opacity 0.3s ease-in;
    }

    @keyframes menuBackgroundSlideDown {

        from {
            height: 0;
        }

        to {
            height: 100vh;
        }
    }

    @keyframes backgroundFadeIn {
        from {
            opacity: 0.5;
        }

        to {
            opacity: 1;
        }

    }

    header .top-header .menu.closing {
        animation: menuBackgroundSlideUp 0.4s ease-in forwards;
    }

    @keyframes menuBackgroundSlideUp {

        from {
            height: 100vh;
            opacity: 1;
        }

        to {
            height: 0;
            opacity: 0.5;
        }
    }

    header .top-header .menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        margin: auto;
        /* position: absolute; */
        /* transform: translate(-50%, -50%); */
        /* top: 75%;
        left: 90%; */
        /* top: 50%;
        left: 50%; */
    }

    header .top-header .menu ul li {
        width: 100%;
        height: auto;

    }

    header .top-header .menu ul li a {
        opacity: 0;
        width: 75%;
        text-align: center;
        margin: auto;
        font-size: 25px;
        font-weight: 700;
        background: none;

        /* Initial hidden state */
        opacity: 0;
        transform: translateY(-20px);

        /* Transition for both opening and closing */
        transition: opacity 0.4s ease, transform 0.4s ease;
        /* No delay when closing */
        transition-delay: 0s;

    }

    header .top-header .menu ul li a:hover {
        background: none
    }

    header .top-header .menu.show ul li a {
        /* Target state for links when menu is open */
        opacity: 1;
        transform: translateY(0px);
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0px);
        }
    }

    /* Stagger the animation for each link */
    header .top-header .menu.show ul li:nth-child(1) a {
        transition-delay: 0.2s;
    }

    header .top-header .menu.show ul li:nth-child(2) a {
        transition-delay: 0.3s;
    }

    header .top-header .menu.show ul li:nth-child(3) a {
        transition-delay: 0.4s;
    }

    header .top-header .menu.show ul li:nth-child(4) a {
        transition-delay: 0.5s;
    }

    header .top-header .menu.show ul li:nth-child(5) a {
        transition-delay: 0.6s;
    }

    header .top-header .menu.show ul li:nth-child(6) a {
        transition-delay: 0.7s;
    }

    header .top-header .menu.closing ul li a {
        animation: fadeOut 0.2s ease forwards;
    }

    @keyframes fadeOut {
        from {
            opacity: 1;
            transform: translateY(0px);
        }

        to {
            opacity: 0;
            transform: translateY(-20px);
        }
    }

    .group-element {
        width: 80%;
        min-width: unset;
    }

    .animated-text h1 {
        font-size: min(12vw, 6rem);
        ;
    }

}