html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-size: 10px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: #000000;
}

.main-nav {
  background-color: black;
  width: 100%;
  position: sticky;
  top: 0px;
  z-index: 9999;
}

.nav-container {
  position: relative;
}
@keyframes boxshadow {
    to {box-shadow: 0 3px 8px white;}
    
}


.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  list-style: none;
  padding: 1.5rem 0;
  animation: boxshadow linear forwards;
  animation-timeline: scroll();
  animation-range: 10% 25%;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: crimson;
}

.menu-toggle {
  display: none;
  position: absolute;
  right: 1.5rem;
  top: .5rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 10000;
}
/*nav ends*/
header {
    width: 100%;
    height: 100vh;
    text-align: center;
}
@keyframes fadeAndScale {
    0% {opacity: 1; scale: 1;}
    60%, 100% {opacity: 0; scale: 2;}
}


header img {
    object-fit: cover;
    width: 100%;
    height: 105vh;
    position: absolute;
    inset: 0;
    z-index: -1;
    animation: fadeAndScale 0.1ms linear;
    animation-timeline: scroll();
    animation-range: 0% 30%;
}
@keyframes hideMe {
    0% {opacity: 1;}
    100% {opacity: 0;}
}
@keyframes scale {
    0% {font-size: 1rem;}
    100% { font-size: 4.5rem;}
}

h1 {
    font-family: "Cinzel", serif;
    font-weight: 600;
    font-size: 4.5rem;
    text-align: center;
    text-transform: uppercase;
    color: #8b0000;
    text-shadow: 1px 1px 10px white;
    padding-top: 20rem;
    position: fixed;
    width: 100%;
    animation: scale 4s ease, hideMe linear both;
    animation-timeline: auto, scroll();
    animation-range: 0% 20%;
}
h2 {
    font-size: 2.5rem;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: white;

}
.h2title {
    position: fixed;
    left: 50%;
    top: calc(50% + 80px);
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    text-transform: uppercase;
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 2px 2px 8px #8b0000,
                 -2px -2px 8px #8b0000;
    animation: hideMe linear both;
    animation-timeline: scroll();
    animation-range: 0% 9%;
}
.h2sec2 {
    text-shadow: 2px 2px 2px black,
                 -2px -2px 2px black;
}
h3 {
    font-size: 1.17rem;
}

section {
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    scroll-snap-align: start;
    scroll-margin-top: 60px;
    
}
section p {
    font-family: "Montserrat", sans-serif;
    color: azure;
    font-size: 1.5rem;
    padding: 2rem;
    line-height: 1.5;
    border-radius: 10px;
    width: 60%;
}
@keyframes slideIn {
    0% {opacity: 0; transform: translateX(-400px); scale: 0.9;}
    100% {opacity: 1; transform: translateX(0);}
}
.fright {
    display: block;
    max-width: 100%;
    border-radius: 10px;

    animation: slideIn linear both;
    animation-timeline: view();
    animation-range: cover 20% cover 45%;
}

#sec1 {
    background: linear-gradient(to bottom, #000000, #8b0000);
    background-size: cover;
    background-position: center;
}

#sec2 {
    background-image: url(../img/skulls.jpg);
    background-size: cover;
    background-position: center;
    height: 60vh;
    min-height: 50vh;
    scroll-snap-align: center;
    background-attachment: fixed;
}
#sec2 p {
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1rem;
}

#sec3 {
    background: linear-gradient(to bottom, #000000, #3b0000, #8b0000);
    background-size: cover;
    background-position: center;
    
}
@keyframes imgreveal {
    0% {opacity: 0; clip-path: inset(50% 50% 50% 50%);}
    100% {opacity: 1; clip-path: inset(0% 0% 0% 0%);}
}


.figure {
    display: block;
    max-width: 100%;
    animation: imgreveal linear both;
    animation-timeline: view();
    animation-range: cover 25% cover 40%;
    border-radius: 10px;
}
#sec4 {
    color: black;
    background: radial-gradient(circle, #8b0000 0%, #2b0000 40%, #000000 100%);
    background-size: cover;
    background-position: center;
}


@media (max-width: 500px) {

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    background-color: black;
    width: 100%;

    position: absolute;
    top: 100%;
    left: 0;

    max-height: 0;
    overflow: hidden;

    transition: max-height 0.4s ease;
  }

  .nav-menu.open {
    max-height: 400px;
  }

  .nav-menu li {
    text-align: center;
    padding: .2rem 0;
  }
  /*nav ends*/
@keyframes hideMe {
    0% {opacity: 1;}
    100% {opacity: 0;}
}
@keyframes scale {
    0% {font-size: 1rem;}
    100% { font-size: 2.5rem;}
}

h1 {
    font-size: 2.5rem;
    font-family: "Cinzel", serif;
    text-align: center;
    text-transform: uppercase;
    color: #8b0000;
    text-shadow: 1px 1px 10px white;
    padding-top: 20rem;
    position: fixed;
    width: 100%;
    animation: scale 4s ease, hideMe linear both;
    animation-timeline: auto, scroll();
    animation-range: 0% 5%;
}
h2 {
    font-size: 1.5rem;
    font-family: "Cormorant Garamond", serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .5rem;
    color: white;

}

 
 
  @keyframes fadeAndScale {
    0% {opacity: 1; scale: 1;}
    20%, 100% {opacity: 0; scale: 2;}
}
header img {
    object-fit: cover;
    width: 100%;
    height: 105vh;
    position: absolute;
    inset: 0;
    z-index: -1;
    animation: fadeAndScale 0.1ms linear;
    animation-timeline: scroll();
    animation-range: 0% 20%;
}
section p {
    color: azure;
    font-size: 1rem;
    padding: 2rem;
    line-height: 1.5;
    border-radius: 10px;
    width: 90%;
}
#sec2 {
    color: black;
    background-image: url(../img/skulls.jpg);
    background-size: cover;
    background-position: center;
    height: 100vh;
}


}
