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

/* Animations */
@keyframes animate {
    from {
        text-shadow: 0 0 20px #ff0000;
    }
    to {
        text-shadow: 0 0 30px #00ccff, 0 0 10px #09ff00;
    }
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translate(0px);
    }
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    font-family: Bebas Neue;
    box-sizing: border-box;
    text-decoration: none;
}

/* Navbar */
.navbar {
    z-index: 5;
    background: rgba(0, 0, 0, 0.933);
    padding: 30px 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 {
    padding: 10px 15px;
    color: white;
    font-size: 2.5vh;
}

/* Highlight animation */
.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%;
}

/* Border */
.border {
    border: solid red;
    border-radius: 100px;
    background-color: #4f1919;
    min-height: 60vh;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 20px;
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
    overflow-x: hidden;
    overflow-y: hidden;
}

h1,
p,
pre {
    color: white;
    font-family: Arial;
}

h1 {
    font-size: 2rem;
}

p,
pre {
    font-size: 1.35rem;
}

/* Slides */
.container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.slide {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    color: white;
    scroll-snap-align: start;
}

.slide img {
    width: 350px;
}

.slide1 {
    background-image: url("../images/aboutbgg.jpg");
    background-size: cover;              
    background-repeat: no-repeat;        
    background-position: center center;    
    background-attachment: fixed;  
}


.slide2 {
  background-image: url("../images/aboutbgg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
}

.slide3{
    background-image: url("../images/aboutbgg.jpg");
    background-size: cover;              
    background-repeat: no-repeat;        
    background-position: center center;    
    background-attachment: fixed;  
}
.slide4{
    background-image: url("../images/aboutbgg.jpg");
    background-size: cover;              
    background-repeat: no-repeat;        
    background-position: center center;    
    background-attachment: fixed;  
}
.slide5 {
    background-image: url("../images/aboutbgg.jpg");
    background-size: cover;              
    background-repeat: no-repeat;        
    background-position: center center;    
    background-attachment: fixed;  
}

/* Buttons */
.button {
    padding: 11px;
    width: 3rem;
    border: solid;
    border-radius: 75%;
    color: #ffffff;
    border-color: #8f0303;
    background-color: #00000069;
    font-size: 20px;
    font-family: Bebas Neue;
    text-align: center;
}

.button:hover {
    transition: 1s;
    color: white;
    background-color: #920303;
    cursor: pointer;
}

.Buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    gap: 9vh;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    z-index: 1;
}

.card_container {
    position: absolute;
    perspective: 1000px; 
    top: 50%;  
    left: 50%; 
    width: 70vh;  
    height: 70vh;
    border-radius: 1.2vh;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) translateX(100%); 
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 1;
}

.card_container.active {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(0);
    z-index: 10;
}

.card_container.slide-out-left {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(-100%);
    z-index: 5;
}

.card_container.slide-out-right {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(100%);
    z-index: 5;
}

.card_container.slide-in-left {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(0);
    z-index: 10;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.card_container.slide-in-right {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(0);
    z-index: 10;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.card {
    position: relative;
    width: 50%;
    left: 25%;
    top: 10%;
    height: 65%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    border-radius: 1.2vh;
}

.front, .back {
    position: absolute;
    width: 100%;     
    height: 100%;  
    padding: 40px;
    border: solid red;
    border-radius: 7vh;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: antiquewhite;
    background-color: #4f1919;
}

.front {
    transform: rotateY(0deg);
}

.back {
    background-color: #353a3686;
    transform: rotateY(180deg);
}

.card_container:hover .card {
    transform: rotateY(180deg);
}

.slide2 .front h2{
    position: absolute;
    top: 92%;
    color: black;
}
.slide2 .back h2{
    position: absolute;
    top: 50%;
}

.card img{
    position: absolute;
    top: 5%;
}

.button-container {
    position: absolute;
    bottom: 3.5vh; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5em; 
    z-index: 100;
    }

#nextBtn,
#prevBtn {
    cursor: pointer;
    padding: 0.8em 1.2em;
    font-size: 1.2rem;
    background-color: #770a0a;
    border: none;
    border-radius: 0.5em;
    color: white;
    user-select: none;
    transition: background-color 0.3s ease;
    transition: all ease-in-out 0.14s;
}

#nextBtn:hover,
#prevBtn:hover {
    background-color: #9e2626;
    transform: scale(1.09);
}