@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;
}
:root{
    --bg-color: #000;
    --text-color: #fff;
    --main-color: rgb(120, 120, 204);
}



@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 */
}
/* Add this to your CSS */
body.home .text h2 {
    font-family: "Highwind", sans-serif; /* Highwind first, fallback to sans-serif */
    font-size: 120px; /* fixed size in px, won't change with html font-size */
    letter-spacing: 1.5rem; /* keep your spacing */
}

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

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

html{
    font-size: 75.5%;
    scroll-behavior: smooth;
    overflow: hidden;
}

.btn{
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    transition: 0.3s;
}

.btn:hover{
    background-color: rgba(255, 255, 255, 0.1);
}


::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;
}

.nav a:hover{
    color: #bfbfbf;
}

.about-image {
    width: 25vw; 
    border: 2px;
}

.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: "poppins", 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, .process-container, .projects-container {
    position: relative;
    z-index: 10;
    padding: 150px 5%;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
    font-family: "Poppins", sans-serif;
}

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

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

/* Text styling */
.contact-text, .process-container, .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: auto;
}
}


/* Only About page */
body.about-page {
    font-size: 0.95rem; /* smaller text */
    background-color: #000; /* solid black background */
    color: #fff;           /* default text color white */
}

/* Scrollable wrapper */
.about-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 150px 2rem;
    height: calc(100vh - 150px); /* adjust for header/padding */
    overflow-y: auto;
    background-color: transparent; /* let body background show */
}

/* Text container styling */
.about-container {
    max-width: 65%;
}

.about-container h1, .about-container h2, .about-container h3,
.about-container p, .about-text {
    color: #fff; /* ensure text stays white */
}

/* Image styling */
.about-image {
    flex: 0 0 25%;
    position: sticky;
    top: 50px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}
/* Music Player Styles */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 0.8rem;
}

.music-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

.music-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.music-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.music-title {
    font-weight: 400;
    font-size: 0.85rem;
}

.music-artist {
    font-weight: 300;
    font-size: 0.7rem;
    opacity: 0.7;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-icon {
    font-size: 0.9rem;
}

.volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Responsive design for smaller screens */
@media (max-width: 725px) {
    .music-player {
        bottom: 10px;
        right: 10px;
        padding: 10px;
        gap: 10px;
    }
    
    .music-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .music-info {
        display: none; /* Hide text info on mobile to save space */
    }
    
    .volume-slider {
        width: 50px;
    }
}