:root {
    --obsidian: #191919;
    --falu-red: #7B1818;
    --persian-red: #CC3333;
    --dark-red: #880808;
    --white: #F5F5F5;
  }

body {
  font-family: 'Questrial', sans-serif;
}

.whitehr {
  border-color: white;
}

.navbar {
  background-color: #191919;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-sizing: border-box;
  width: 100%;
  position: fixed;
  z-index: 5000;
}

.navbar .brand {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
}

.navbar .menu {
  position: relative;
}

.navbar .hamburger {
  color: white;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.navbar .dropdown {
  display: none;
  position: fixed;
  right: 0;
  background-color: #191919;
  border: 1px solid #333;
  min-width: 120px;
  z-index: 1;
}

.navbar .dropdown a {
  color: white;
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
}

.navbar .dropdown a:hover {
  background-color: #333;
}

  html, body {
    margin: 0; padding: 0;
    height: 100%;
    font-family: 'Questrial', sans-serif;
    background-color: var(--obsidian);
    color: var(--white);
    scroll-behavior: smooth;
  }

  #hero {
    background-color: var(--obsidian);
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    gap: 2rem;
  }

  #logo {
    max-width: 25vh;
    max-height: 200px;
    height: auto;
    opacity: 0;
    animation: fadeIn 2s ease forwards 0.3s;
  }

  #hero-text {
    line-height: 1.2;
    user-select: none;
  }

  #hero-text span {
    display: inline-block;
  }

  .letter {
    opacity: 0;
    display: inline-block;
    animation-name: letterFadeIn;
    animation-fill-mode: forwards;
    animation-timing-function: ease;
    animation-iteration-count: 1;
  }

  .space {
    display: inline-block;
    width: 0.35em; 
  }

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

  
  #line1 {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.05em;
  }

  #line2 {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 0.3rem 0;
    color: var(--persian-red);
  }

  #line3 {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.05em;
  }

  #about {
    background-color: var(--falu-red);
    color: var(--white);
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    box-sizing: border-box;
  }

  #about h2 {
    font-size: 2rem;
    max-width: 800px;
    margin-bottom: 1rem;
  }

  #about p {
    font-size: 1.2rem;
    max-width: 800px;
    line-height: 1.4;
  }

  #about a {
    color: var(--white);
    border-bottom: 1px solid var(--white);
    font-size: 1.2rem;
    text-decoration: none;
  }

  #textual {
    background-color: var(--falu-red);
    color: var(--white);
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: justify;
    padding: 6rem 2rem;
    box-sizing: border-box;
  }

  #textual h2 {
    font-size: 2rem;
    max-width: 800px;
    margin-bottom: 0.1rem;
  }
  #textual h3 {
    font-size: 2rem;
    max-width: 800px;
    margin-bottom: 0.1rem;
  }
  #textual h4 {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 0.1rem;
  }

  #textual p {
    font-size: 1.2rem;
    max-width: 800px;
    line-height: 1.4;
  }

  #textual ul {
    font-size: 1.2rem;
    max-width: 800px;
    line-height: 1.4;
  }

  #textual li {
    font-size: 1.2rem;
    max-width: 800px;
    line-height: 1.4;
  }

  #textual a {
    color: var(--white);
    border-bottom: 1px solid var(--white);
    font-size: 1.2rem;
    text-decoration: none;
  }

  #contact {
    background-color: var(--white);
    color: var(--dark-red);
    min-height: 50vh;
    text-align: center;
    padding: 3rem 1rem 4rem 1rem;
    font-size: 1rem;
    line-height: 1.3;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  #contact a {
    color: var(--dark-red);
    border-bottom: 1px solid var(--dark-red);
    font-size: 1.2rem;
    text-decoration: none;
  }

  #contact a:hover {
    opacity: 0.7;
  }

  #contact p {
    margin: 0.3rem 0;
  }

  hr {
    width: 60%;
    margin: 1rem auto;
    border: none;
    border-top: 1px solid var(--dark-red);
  }

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

@media (max-width: 820px) {
  #hero {
    padding: 1rem;
    height: 100vh; 
    gap: 1rem;
  }

  #hero-text {
    max-width: 90vw; 
    white-space: normal; 
    overflow-wrap: break-word; 
  }

  #line1, #line3 {
    font-size: 1.2rem;
    letter-spacing: 0.03em;
  }

  #line2 {
    font-size: 2.8rem;
    letter-spacing: 0.05em;
    margin: 0.2rem 0;
  }
  
  #logo {
    max-width: 25vh;
    max-height: 150px;
  }
}

@media (max-width: 480px) {
  #line2 {
    font-size: 2.2rem;
    white-space: nowrap;
    overflow-x: auto;
    letter-spacing: 0.03em;
  }

  #line2::-webkit-scrollbar {
    display: none;
  }
  #line2 {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
} 

@media (max-width: 860px) {
  #about {
    height: auto; /* 1. Let the content dictate the height */
    min-height: 50vh; /* 2. But ensure it's never smaller than 50% of the viewport height */
  }
}