@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;800&display=swap");
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Highwind";
    src: url("./fonts/Highwind.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body.home{
    font-family: "Poppins", sans-serif;
    
    background: black;
    filter: blur(10px); /* start blurred */
  animation: clearBlur 1s ease-out forwards;
  animation-delay: 0.5s; /* wait 1s, then clear */
}

@keyframes clearBlur {
  to {
    filter: blur(0);
  }
} 

/* All other pages */
body {
  font-family: "Poppins", sans-serif;
  background: black;
}


::selection{
    background-color: rgba(140, 140, 140, 0.4);
}


.logo{
    width: 150px;
}

header{
    position: absolute;
    z-index: 9999;
    width: 100%;
    padding: 0.9rem 0;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header nav{
   
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header ul{
    display: flex;
    list-style: none;
    align-items: center;
}


header ul a{
    text-decoration: none;
    color: #fff;
    padding: 0 1.5rem;
    text-transform: uppercase;
    font-weight: 300;
    font-size: 0.83rem;
}
.hamburger{
    padding-left: 1.5rem;
}


.hamburger a{
    padding: 0;
    width: 37px;
    height: 37px;
    display: flex;
    border-radius: 50%;
    background-color: rgba(115, 115, 115, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}


.hamburger .bar{
    position: relative;
    width: 52%;
    height: 1.3px;
    background-color: #fff;
    border-radius: 2px;
}

.hamburger .bar::before, 
.hamburger .bar::after{
    content: "";
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    width: 60%;
    height: 100%;
    background-color: inherit;
    border-radius: 2px;
}

.hamburger .bar::before{
    top: -4.5px
}

.hamburger .bar::after{
    bottom: -4.5px
}


main{
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;

}


.parallax{
    pointer-events:none;
    transition: 0.45s cubic-bezier(.2,.49,.32,.99);

}

.sky-img{

    position: absolute;
    top: calc(50% );
    left: calc(50%);
    width:2000px; 
    
       /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky .8s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    
}

.castle-img{

    position: absolute;
    width: 1000px;
    top: calc(50% - 143px );
    left: calc(50% + 520px);

       /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky .8s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    

 
    
}


.fog1-img{

    position: absolute;
    width: 1800px;
    top: calc(50%  );
    left: calc(50% );
       /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky .8s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    

    
    
}

.bg-img{

    position: absolute;
    width: 1000px;
    top: calc(50% + 330px );
    left: calc(50% + 410px);

      /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky .8s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    

    
    
    
}

.fog2-img{
     position: absolute;
    width: 1900px;
    top: calc(50%);
    left: calc(50%);

      /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky .8s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    

    
    
    
}

.text{
    position: absolute;
    z-index: 1;
    top: 60%;
    left: 50%;
    text-align: center;
    text-transform: uppercase;
    pointer-events: auto;;
    color: #fff;

      /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky .8s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    

    
}

.text h2{
   font-family: "Highwind", sans-serif;
    font-size: 6.5rem;
    font-weight: 200;
    letter-spacing: 1.5rem;

      /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky .8s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    

    
}

.foreground1-img{

    position: absolute;
    width: 1890px;
    top: calc(50% + 102px );
    left: calc(50% - 1px);
    z-index: .1;
    

      /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky .8s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    

    
    
    
}

.foreground2-img{

    position: absolute;
    width: 1150px;
    top: calc(50% + 250px );
    left: calc(50% - 220px);
    z-index: .1;
    
      /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky .8s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    

    
   
    
}

.fog25-img{
    position: absolute;
    width: 2500px;
    top: calc(50% - 10px);
    left: calc(50%);
    z-index: .1;
      /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky .8s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    

    
    
    
}


.gravestone0-img{
    position: absolute;
    width: 100px;
    top: calc(50% + 370px );

    left: calc(50% + 150px);
    z-index: .1;

      /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky .8s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    

    
    
}

.gravestone1-img{
    position: absolute;
    width: 150px;
    top: calc(50% + 325px );
    left: calc(50% - 165px);
    z-index: .1;

      /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky .8s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    

    
    

}
.gravestone2-img{
    position: absolute;
    width: 300px;
    top: calc(50% + 305px );
    left: calc(50% + 600px);
    z-index: .1;

      /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky 1s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    

    
    
}

.fog3-img{
    position: absolute;
    width: 1800px;
    top: calc(50% + 350px);
    left: calc(50%);
    z-index: .1;

      /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky 1s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    

    
    
}

.gravestone4-img{
  position: absolute;
    width: 230px;
    top: calc(50% + 210px);
    left: calc(50% + -800px);
    z-index: .1;

      /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky 1s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    

    
    
}

.shadow-img{
    position: absolute;
    width: 2200px;
    top: calc(50% - 300px);
    left: calc(50% - 850px );
    z-index: .1;

    pointer-events: none;
      /* 👇 fade in */
    opacity: 0;
    animation: fadeInSky 1s ease 0.5s forwards; 
}

@keyframes fadeInSky {
    to {
        opacity: 1;
    }
    

    
    
}

.vignette{
    position: absolute;
    z-index:100;
    width: 100%;
    height: 100%;
    z-index: 0.1;

    top: 0;
    left: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 65%, rgba(0,0,0,0.7));
    pointer-events: none;
}


#snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
    z-index: .01;

  
  pointer-events: none;
  z-index: 50;   /* 👈 add this */
}

@media (max-width: 1100px){
    .text h2{
        font-size: 5.8rem;
    
    }
}


@media (max-width: 725px){

    .text h2{
        font-size: 5rem;
        line-height: 1.1;
    

    }

    header nav{
        padding:0 1rem;
    }

    .logo{
        width:75px;
    }

    header ul a{
        padding: 0 0.9rem;
        font-size: 0.733rem;
    }


    .search a{
        font-size: 0.85rem;
        padding:0 1.8rem;

    }
    .hamburger{
        padding-left: 0.9rem;
    }
    .hamburger a{
        width: 30px;
        height: 30px;



}

}




/* STYLES FOR OTHER PAGES*/
/* Header/Nav - keep same dark transparent style */
header nav ul li a {
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    transition: 0.3s;
}

header nav ul li a:hover {
    color: #bfbfbf;
}

/* Page containers */
.contact-container, .about-container, .projects-container {
    position: relative;
    z-index: 10;
    padding: 150px 5%;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
    font-family: "Highwind", sans-serif;
}

/* Section headings */
.contact-container h1,
.about-container h1,
.projects-container h1 {
    font-size: 4rem;
    letter-spacing: 0.5rem;
    margin-bottom: 2rem;
}

.contact-container h2,
.about-container h2 {
    font-size: 2.5rem;
    letter-spacing: 0.3rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

/* Text styling */
.contact-text, .about-text {
    font-size: 1.5rem;
    line-height: 2rem;
    margin-bottom: 1.5rem;
}

/* Contact list links */
.contact-list li {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-list li a {
    color: #fff;
    text-decoration: underline;
}

.contact-list li a:hover {
    color: #bfbfbf;
}

/* Projects list */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-item h2 {
    font-size: 2rem;
    letter-spacing: 0.25rem;
    margin-bottom: 0.5rem;
}

.project-item p {
    font-size: 1.2rem;
}


/* screen */
#screen {
    will-change: transform, filter;
    transform: translate3d(0,0,0);
    transform-origin: center;
    scale: 1.1;
    overflow : hidden;

    html, body {
        overflow-x: hidden;
    }
}


