@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

@font-face {
    font-family: 'Harry P';
    src: url('HARRYP__.TTF');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #041219;
    font-family: 'Poppins', sans-serif;
}

header{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 2em;
    color: rgb(0, 0, 0);
    user-select: none;
}

.navigation a{
    font-size: 1.1em;
    position: relative;
    color: rgb(0, 0, 0);
    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;
}

.patronus{
      position: relative;
      display: flex;  
      justify-content: center;
      align-items: center;
      height: 100vh;
      background: url('./home_imgs/home.png') no-repeat;
      background-size: cover;
      background-position: center;
      background-attachment: fixed;
      overflow: hidden;
}

#text{
    font-family: 'Harry P', serif;
    position: absolute;
    font-size: 5em;
    color:#0f1c28;
    padding-bottom: 250px;
}

.patronus img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

video{
    mix-blend-mode: screen;    
}

#text span{
    opacity:0 ;
    display:inline-block ;
    animation:animate 1s linear forwards;

}
@keyframes animate {
    0%{
        opacity: 0;
        transform: rotateY(90deg);
        filter: blur(10px);
    }
    100%{
        opacity: 1;
        transform: rotateY(0deg);
        filter: blur(0);
    }
    
}
#text span:nth-child(1){
    animation-delay: 1s;
}
#text span:nth-child(2){
    animation-delay:1.5s ;
}
#text span:nth-child(3){
    animation-delay:2s ;
}
#text span:nth-child(4){
    animation-delay:2.5s;
}
#text span:nth-child(5){
    animation-delay: 3s ;
}
#text span:nth-child(6){
    animation-delay: 3.25s;
}
#text span:nth-child(7){
    animation-delay: 3.5s;
}
#text span:nth-child(8){
    animation-delay: 3.75s;
}
#text span:nth-child(9){
    animation-delay: 4s;
}

.sec_title {
    font-family: 'Harry P', serif;
    font-size: 3rem;
    color: #96cace;
    text-shadow: 0px 0px 3px #001a1a;
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(50px);
}

.sec_title.visible {
    opacity: 1;
    transform: translateY(0);
}

.cat{
    position:relative;
    margin-top: 8rem;  
    margin-bottom: 1.5rem;
    margin-left: 10rem;
    margin-right: 10rem;
    text-align: center;
}

.cat_title{
    font-family: 'Harry P', serif;
    font-size: 1.5rem;
}

.cat_desc{
    padding-top: 5px;
    font-size: 0.8rem;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.cat_contain{
    padding-top: 4rem;
    justify-content: center;
    margin: 3rem;
    margin-top: 1rem;
}

.cat_card{
    position: relative;
    background-color: #96cace;
    border-radius: 2rem;
    padding: 4.5rem 2.25rem 2rem;
    box-shadow: 0 4px 16px #96cace;
    text-align: center;
    width: 250px;
    height: 200px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(50px);
}

.cat_card.visible {
    opacity: 1;
    transform: translateY(0);
}

.cat_img{
    height: 100px;
    position: absolute;
    inset: 0;
    margin: 0 auto;
    top: -3.5rem; 
    filter: drop-shadow(0 0 7px #96cace);
}
.dem{
    height: 150px;
    top: -4.5rem; 
}
.brew{
    height: 200px; 
    top: -7rem;
}

.cat_card:hover .cat_img{
    transform: translateY(-.7rem);
    
}


a {
    all: initial;
    font-family: 'Poppins', sans-serif;
    display: inline;
    text-decoration: none; 
    color: inherit;
}


.content{
    font-family: 'Poppins', sans-serif;
    text-align: start;
    font-size: 1.05rem;
    font-weight: 100;
    color: #fbfbfb;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(50px);
}

.content.visible{
    opacity: 1;
    transform: translateY(0);
}


   .sec2 {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin-top: 2rem;
        margin-left: 5rem;
    }

   .about_img {
        width: 500px;
        height: 420px;
        margin-right: 200px;
        opacity: 0;
        transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
        transform: translateY(50px);
    }

    .about_img.visible{
        opacity: 1;
        transform: translateY(0);
    }

   .about_page {
        width: 400px;        
    }

   .content {
        margin-bottom: 20px;
    }

.about_title{
    padding-top: 20px;
    text-align: start;
}