/* MOBILE FIRST APPROACH */

/* Base styles - Mobile by default */
body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: #222222;
  overflow-x: hidden;
}

/* Canvas - Mobile first */
canvas {
  display: block;
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Typography Reset */
h1,
h4,
p {
  margin: 0;
}

p {
  font-family: "Montserrat", sans-serif;
  margin-bottom: 0.75em;
  line-height: 1.7;
  font-size: 0.9rem;
}

.mb {
  margin-bottom: 1.5em;
}

.mb-2 {
  margin-bottom: 1em;
}

/** MOBILE STYLES (Default) **/
.hero-banner {
  position: absolute;
  width: 100vw;
  height: 100vh;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  background: linear-gradient(
    to bottom,
    rgba(34, 34, 34, 0.95) 0%,
    rgba(34, 34, 34, 0.85) 50%,
    rgba(34, 34, 34, 0.7) 100%
  );
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow-y: auto;
  pointer-events: none;
}

.hero-banner .content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 1rem;
  margin-top: 2rem;
  pointer-events: auto;
}

.lead {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.lead h1 {
  font-size: 2rem;
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  font-style: normal;
  margin: 0 0 1rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.lead p {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Small Tablets (min-width: 481px) */
@media screen and (min-width: 481px) {
  .lead h1 {
    font-size: 2.5rem;
  }

  .lead p {
    font-size: 0.95rem;
  }

  .hero-banner .content {
    padding: 1.5rem;
  }
}

/* Tablets (min-width: 768px) */
@media screen and (min-width: 768px) {
  canvas {
    position: static;
  }

  .hero-banner {
    width: 70vw;
    right: 0;
    justify-content: end;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow-y: visible;
  }

  .hero-banner .content {
    align-items: center;
    margin-top: 0;
    padding: 2rem;
  }

  .lead {
    width: 90%;
    text-align: left;
  }

  .lead h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
  }

  .lead p {
    font-size: 1rem;
  }

  .mb {
    margin-bottom: 2em;
  }

  .mb-2 {
    margin-bottom: 1.5em;
  }
}

/* Desktop (min-width: 1024px) */
@media screen and (min-width: 1024px) {
  .hero-banner {
    width: 50vw;
  }

  .lead {
    width: 80%;
    max-width: 600px;
  }

  .lead h1 {
    font-size: 4.5rem;
  }

  .lead p {
    font-size: 1.05rem;
  }

  .mb {
    margin-bottom: 2.5em;
  }
}

/* Large Desktop (min-width: 1440px) */
@media screen and (min-width: 1440px) {
  .lead {
    width: 65%;
    max-width: 700px;
  }

  .lead h1 {
    font-size: 5.5rem;
  }
}

/* Extra Large Desktop (min-width: 1920px) */
@media screen and (min-width: 1920px) {
  .lead h1 {
    font-size: 6rem;
  }
}

/* Landscape orientation adjustments for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero-banner {
    overflow-y: scroll;
  }

  .hero-banner .content {
    margin-top: 1rem;
    min-height: 100vh;
  }

  .lead h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .lead p {
    font-size: 0.85rem;
  }

  .mb {
    margin-bottom: 1em;
  }
}

/* Touch device scrollbar styling */
@media (hover: none) and (pointer: coarse) {
  .hero-banner {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }

  .hero-banner::-webkit-scrollbar {
    width: 6px;
  }

  .hero-banner::-webkit-scrollbar-track {
    background: transparent;
  }

  .hero-banner::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }
}
