/* Remove browser default spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


/* Make sure page fills screen and no scrollbars cause offsets */
html, body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: Arial, sans-serif;
  color: white;
  line-height: 1.6;
}

/* Background image */
#bg-image {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

/* Dark overlay */
#image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

/* Content on top */
body, header, section, footer {
  position: relative;
  z-index: 1;
}

/* Transparent glass header */
header {
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  color: white;
  padding: 1rem 2vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
}

/* Logo + text */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo {
  height: 10vh;
  width: auto;
}

/* Navigation bar */
nav {
  display: flex;
  align-items: center;
  gap: 2vw;
  margin-right: 4vw;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #feda4a;
}

.fade {
  position: relative;
  width: 100%;
  min-height: 60vh;
  top: -2vh;
  background-image: linear-gradient(0deg, transparent, black 99%);
  z-index: 1;
}

/* Audio player */
#audio-player {
  position: fixed;
  top: 50%;
  right: 2vw;
  transform: translateY(-50%);
  z-index: 50;
  background-color: rgba(0,0,0,0.7);
  padding: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, transform 0.3s ease;
  opacity: 0.7;
}

#audio-player:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

#audio-player audio {
  display: none;
}

#audio-player button {
  background-color: #343128;
  color: white;
  border: 0.05rem solid gold;
  border-radius: 50%;
  width: 8vh;
  height: 8vh;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0.1rem rgba(254, 218, 74, 0.6);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

#audio-player button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0.2rem rgba(254, 218, 74, 0.8);
}

/* Skip button */
#skip-button {
  position: fixed;
  background-color: #343128;
  color: white;
  border: 0.05rem solid gold;
  border-radius: 50%;
  top: 34%;
  right: 3vw;
  width: 8vh;
  height: 8vh;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0.1rem rgba(254, 218, 74, 0.6);
  transition: opacity 0.5s ease, transform 0.3s ease;
  z-index: 50;
  opacity: 0.7;
}

#skip-button:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 0.2rem rgba(254, 218, 74, 0.8);
}

/* Crawl section */
.about {
  display: flex;
  justify-content: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  height: 100vh;
  width: 100vw;
  perspective: 400px;
  color: #feda4a;
  font-family: 'Pathway Gothic One', sans-serif;
  font-size: 4vw;
  font-weight: 600;
  letter-spacing: 0.5vw;
  line-height: 150%;
  text-align: justify;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word; /* fallback for very long words */
  hyphens: auto; /* optional, adds nice hyphenation when needed */}

.about p {
  margin-top: 5em;
}

/* Animation */
@keyframes crawl {
  0% {
    top: 0;
    transform: rotateX(25deg) translateZ(0);
  }
  100% { 
    top: -6000px;
    transform: rotateX(25deg) translateZ(-2000px);
    opacity: 0;
  }
}

.crawl {
  position: relative;
  top: 9999px;
  transform-origin: 50% 100%;
  animation: crawl 40s linear forwards;
  transition: opacity 2s ease-in-out;
  opacity: 1;
}

.crawl > .title {
  font-size: 90%;
  text-align: center;
}

.crawl > .title h1 {
  margin: 0 0 10vh;
  text-transform: uppercase;
}

/* Intro Section */
.intro-section {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  animation: fadeInContainer 2s ease forwards;
  animation-delay: 24s;
  z-index: 5;
}

.intro-photo {
  width: 30vw;
  height: 30vw;
  max-width: 300px;
  max-height: 300px;
  border-radius: 50%;
  border: 0.2rem solid #b39935;
  object-fit: cover;
  margin-bottom: 2vh;
  opacity: 0;
  animation: fadeInPhoto 2s ease forwards;
  animation-delay: 24s;
}

.intro-text {
  color: #feda4a;
  font-family: 'Pathway Gothic One', sans-serif;
  font-size: 2rem;
  line-height: 1.5;
  opacity: 0;
  animation: fadeInText 2s ease forwards;
  animation-delay: 26s;
}

/* Fade-in animations */
@keyframes fadeInContainer {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInPhoto {
  from { opacity: 0; transform: translateY(3vh); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(2vh); }
  to { opacity: 1; transform: translateY(0); }
}

/* Heading styles */
h2, h3 {
  display: inline-block;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

h2 {
  font-size: 2.5rem;
  color: #feda4a;
  font-weight: 1000;
  margin-right: 1vw;
}

h3 {
  font-size: 2.5rem;
  font-weight: 200;
  color: #feda4a;
}

#tagline {
  font-family: monospace;
  font-size: 1.5rem;
  margin-top: 1rem;
  color: white;
  font-weight: 200;
}

#tagline2 {
  font-family: monospace;
  font-size: 1rem;
  margin-top: 0.8rem;
  color: rgb(124, 124, 124);
  font-weight: 200;
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  color: white;
  text-align: center;
  margin: 0;
  padding: 1vh 0;
}





/* ================================================
   📱 MOBILE OPTIMIZATION
   For screens up to 768px wide
   ================================================ */
@media (max-width: 768px) {

  /* General text scaling */
  body {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Header adjustments */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .logo {
    height: 50px;
  }

  nav {
    gap: 15px;
    margin-right: 0;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.9rem;
  }

  /* Crawl text smaller */
  .about {
    font-size: 160%;   /* smaller crawl text for mobile */
    letter-spacing: 2px;
    line-height: 140%;
    padding: 0 10px;   /* small side padding */
    width: 140%;        /* reduce width to fit better */
    margin-left: -20%; /* center the 140% width (half of the extra 40%) */
    text-align: justify;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word; /* fallback for very long words */
    hyphens: auto; /* optional, adds nice hyphenation when needed */}
  }

  /* Skip + audio buttons smaller and closer in */
  #skip-button,
  #audio-player button {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  #skip-button {
    top: 28%;
    right: 15px;
  }

  #audio-player {
    right: 15px;
  }

  /* Intro section adjustments */
  .intro-section {
    width: 90%;
  }

  .intro-photo {
    width: 180px;
    height: 180px;
  }

  .intro-text {
    font-size: 1.3rem;
  }

  h2, h3 {
    font-size: 1.8rem;
  }

  #tagline {
    font-size: 1rem;
  }

  #tagline2 {
    font-size: 0.8rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 8px 0;
  }
}

/* ================================================
   📱 EXTRA SMALL DEVICES (phones ≤ 480px)
   ================================================ */
@media (max-width: 480px) {

  .about {
    font-size: 140%;   /* even smaller crawl for very small screens */
    letter-spacing: 1.5px;
    line-height: 130%;
  }

  .intro-photo {
    width: 140px;
    height: 140px;
  }

  .intro-text {
    font-size: 1.1rem;
  }

  h2, h3 {
    font-size: 1.5rem;
  }

  #skip-button {
    top: 25%;
    right: 10px;
  }
}
