@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poetsen+One&family=Russo+One&family=Silkscreen:wght@400;700&display=swap');

/*Animation*/
@keyframes animate {
    from {
        text-shadow: 0 0 20px #ff0000;
    }

    to {
        text-shadow: 0 0 30px #00ccff, 0 0 10px #09ff00;
    }

}

@keyframes animate-gradient {
    to {
        background-position: 200%;
        background-position: 150%;
        background-position: 100%;
        background-position: 50%;
        background-position: 100%;
        background-position: 150%;
        background-position: 200%;
    }
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

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

/*Apply to All*/
* {
    text-decoration: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/*Navbar*/
.navbar {
    z-index: 5;
    background: rgba(0, 0, 0, 0.933);
    font-family: Bebas Neue;
    padding: 30px;
    padding-left: 15px;
    position: fixed;
    top: 0;
    width: 100%;
}

.navdiv {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 40px;
    color: white;
    margin-left: 30px;
    animation: animate 2.5s ease-in-out infinite alternate;
}

li {
    display: inline-block;
    margin-right: 1vh;
}

li a {
    position: relative;
    display: inline-block;
    padding: 10px 15px;
    color: white;
    font-size: 2.5vh;
    text-decoration: none;
    z-index: 2;
    overflow: hidden;
}


.slideanim {
    position: relative;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.slideanim li {
    position: relative;
    margin-right: 10px;
}

.slideanim li a {
    display: block;
    padding: 10px 15px;
    color: white;
    font-size: 2.5vh;
    text-decoration: none;
    position: relative;
    z-index: 2;
    user-select: none;
}

.slideanim .highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 1vh;
    background: linear-gradient(45deg, #4f1919, #ff3333);
    border-radius: 1.4vh;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    will-change: left, width, opacity;
}

.slideanim li:hover~.highlight,
.slideanim li:hover .highlight,
.slideanim:hover .highlight {
    opacity: 1;
}

.slideanim li:nth-child(1):hover~.highlight {
    left: 0;
    width: 38%;
}

.slideanim li:nth-child(2):hover~.highlight {
    left: 43%;
    width: 50%;
}

/*Background*/
.Container {
    width: 100%;
    height: 100vh;
    background-color: #00000097;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video {
    z-index: -1;
    position: absolute;
    right: 0;
    bottom: 0;
}

@media(min-aspect-ratio:16/9) {
    .video {
        width: 100%;
        height: auto;
    }
}

@media(max-aspect-ratio:16/9) {
    .video {
        width: auto;
        height: 100%;
    }
}

.card_container {
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

/*Scroll Function*/
.Content {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    font-family: Bebas Neue;
}

.slides {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    color: #fff;
    padding: 30%;
    scroll-snap-align: start;
}

.slides h1 {
    color: white;
    font-size: 50px;
    background: linear-gradient(to right, #ff003c, #ff005e, #ff6a00, #ff005e, #ff003c);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 4s linear infinite;
    text-shadow: 0px 0px 10px rgba(0, 255, 85, 0.144);
}

.slide1 pre {
    font-family: Bebas Neue;
}

.slide1 {
    background: linear-gradient(454deg, #5a5a5a1f, #000000d0);
}

.slide2 {
    background: linear-gradient(454deg, #5a5a5a, #000000);
}

.slide3 {
    background: linear-gradient(454deg, #5a5a5a, #000000);
}

.slide4 {
    background: linear-gradient(454deg, #5a5a5a, #000000);
}

.slide5 {
    background: linear-gradient(454deg, #5a5a5a, #000000);
}

/*BUTTONS*/
.button {
    padding: 11px;
    height: auto;
    width: 18.75rem;
    float: left;
    border: solid;
    border-radius: 45px;
    color: #ffffff;
    border-color: #7a0000;
    background-color: #00000069;
    text-decoration: none;
    text-align: center;
    margin-left: 15px;
    font-family: Bebas Neue;
    font-size: 20px;
}

.button:hover {
    transition: 1s;
    color: rgb(255, 255, 255);
    background-color: #920303;
    cursor: pointer;
}

.Buttons {
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 80%;
    z-index: 1;
}

/* Card CSS */
.card {
    position: relative;
    padding-block: 30px;
    width: 90vh;
    margin: 20px auto;
    justify-content: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: block;
    align-items: center;
}

.card_container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.card_article {
    position: relative;
    justify-content: center;
    width: 70vh;
    height: 60vh;
    border-radius: 20px;
    margin-top: 30vh;
    margin-bottom: 50vh;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    background-color: white;
}

.card_img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.4s;
}

.card_article:hover .card_img {
    transform: scale(1.02);
}

/* Clip indicators */
.cramer_clip {
    position: absolute;
    top: 3px;
    right: 21px;
    background: linear-gradient(to right, #06b6d4, #0ea5e9);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: black;
    cursor: pointer;
    transition: transform 0.4s;
}

.gauss_clip {
    position: absolute;
    top: 3px;
    right: 21px;
    background: linear-gradient(to right, #4f46e5, #6366f1);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: black;
    cursor: pointer;
    transition: transform 0.4s;
}

.LU_clip {
    position: absolute;
    top: 3px;
    right: 21px;
    background: linear-gradient(to right, #10b981, #22c55e);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: black;
    cursor: pointer;
    transition: transform 0.4s;
}

/* Info overlay with blur and clip-path */
.info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsla(0, 0%, 0%, 0.1);
    backdrop-filter: blur(1.5vh);
    padding: 3.75vh 1.9vh 1.9vh;
    color: white;
    clip-path: circle(1.125vh at 95% 2.5%);
    transition: clip-path 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.info_description {
    margin-top: 8%;
}

.info_name {
    font-size: 6vh;
    margin-bottom: 1vh;
    font-family: 'Impact', sans-serif;
    color: #ae0000;
}

.info_description {
    font-family: 'Arial', sans-serif;
    font-size: 3vh;
    margin-bottom: 5vh;
    color: #ffffff;
}

/* Card button */
.info_button_cramer,
.info_button_gauss,
.info_button_LU {
    padding: 2.5% 4.5%;
    background-color: #2b2b2b;
    color: white;
    border-radius: 1.2vh;
    font-size: 3vh;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: background 0.3s ease;
}

.info_button_cramer:hover,
.info_button_gauss:hover,
.info_button_LU:hover {
    background-color: #ff3333;
    cursor: pointer;
}

/* Expand info clip-path on hover */
.info:hover,
.card_article:hover .info {
    clip-path: circle(100%);
}