@font-face {
    font-family: 'Harry P';
    src: url('HARRYP__.TTF');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "poppins", sans-serif;
}


body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #041219;
    color: #fff;
}

header{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.navigation a{
    font-size: 1.1em;
    position: relative;
    color: rgb(207, 234, 227);
    font-weight: 600;
    text-decoration: none;
    margin-left: 20px;
    padding: 6px 15px;
    transition: .5s;
}

.navigation a:hover {
    color: #fff;
}

.navigation a span{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./home_imgs/bgp_nav.webp');
    border-radius: 30px;
    z-index: -1;
    transform: scale(0);
    opacity: 0;
    transition: .5s;
}

.navigation a:hover span{
    transform: scale(1);
    opacity: 1;
}

.navigation a.active span{
    transform: scale(1);
    opacity: 1;
}


.main_body{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-top: 4rem;
    margin-top: 5rem;
}

section .card {
    margin: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    position: relative;
    margin: 3rem;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease, transform 1s ease;
}
section .card.visible {
    opacity: 1;
    transform: translateY(0px);
}

section .card img {
    width: 300px;
    height:400px;
    border-radius: 15px;
}

 /* Flipping effect */
.card {
    width: 300px;
    height: 400px;
    perspective: 1000px;

}

.content {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.card:hover .content {
    transform: rotateY(180deg);
}

.front, .back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.front {
    background-color: #f9f9f9;
    transform: rotateY(0deg);
}

.back {
    transform: rotateY(180deg);
    background-color: #509ba0;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-align: center;
    padding: 10px;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.8s;
    opacity: 0; 
    pointer-events: none; 
}

.card:hover .back {
    opacity: 1;
}

.back{
    flex-direction: column;
}

.title {
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 10px;
    transform: translateZ(3rem);
    color: #041219;
    font-family: 'Harry P', serif;
  }
  
  .subtitle {
    font-size: 1.3rem;
    text-align: center;
    color: #041219;
  }