* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'RobotoMono';
  src: url('../fonts/RobotoMono-VariableFont_wght.ttf') format('truetype');
}

@font-face {
  font-family: 'RobotoMono';
  src: url('../fonts/RobotoMono-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

html {
    scrollbar-gutter: stable;
}

body{
  font-family: monospace;
  font-family: 'RobotoMono', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background-color: black;
  color: white;
  font-family: monospace;
  margin: 0;
  padding: 0;
}

.half{
  min-height: 100vh;
  width: 100%;
}

:root {
  --header-height: 90px; /* safe fallback until JS measures the real height */
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;          
  z-index: 1000;        
}

.maxWide{
  width: 100%;
  background-color: black;
}

.ZeroPos{
padding-top: 0.5rem;
padding-bottom: 0.1rem;
}

.main-content {
  padding-top: var(--header-height, 90px);
}

.header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.header-container {
  background-color: black;
  padding: 0.75rem 2rem;
  max-width: 90vw;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-radius: 4px; 
  margin: 0 auto;
  position: relative;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 2rem;
  min-width: 0;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-box a{
    text-decoration: none;
}

.logo {
  height: 38px;
}

.head-title {
  font-size: 1.8rem;
  color: white;
  font-weight: bold;
}

.nav-main{
  padding-left: 3%;
}

.nav-main, .nav-secondary {
  display: flex;
  gap: 1.5rem;
  font-size: 1rem;
}

.nav-main a, .nav-secondary a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-main a:hover, .nav-secondary a:hover {
  color: #eee;
}

.spacer {
  flex-grow: 1;
}

.first-half {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;   
  padding: 4rem 2rem;
  background-color: black;
  color: white;
  text-align: center;
}

.subtitle {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
  letter-spacing: 0.5px;
  margin-top: 15rem;
}

.about-us {
  max-width: 800px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #e0e0e0;
  padding: 0 1rem;
}


.footer {
  background-color: black;/*#3F3F3F;*/
  color: #fff;
  padding: 2rem 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-logo a{
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-logo a:hover{
  text-decoration: none;
  color: white;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: white;
}

.footer-icons {
  display: flex;
  gap: 1.2rem;
}

.footer-icons a {
  color: #ccc;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.footer-icons a:hover {
  color: #FFD700;
}

/* Optional responsive tweak */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav, .footer-icons {
    justify-content: center;
  }
}

/* === Dropdown menu for nav-main === */

.nav-main .dropdown {
  position: relative;
}

.nav-main .dropdown > a {
  text-decoration: none;
  color: white;
  padding: 10px 0;
  display: block;
}

.nav-main .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #111;
  min-width: 180px;
  z-index: 999;
}

.nav-main .dropdown-content a {
  display: block;
  color: #ccc;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.nav-main .dropdown-content a:hover {
  background-color: #222;
  color: white;
}

.nav-main .dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-toggle {
  display: none;
}

/* === Mobile hamburger toggle === */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* === Tablet & phone nav === */
@media (max-width: 900px) {
  .header-container {
    max-width: 95vw;
    flex-wrap: wrap;
    padding: 0.6rem 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background-color: black;
    border-top: 1px solid #222;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    z-index: 1;
  }

  .header-container.nav-open .nav-wrapper {
    max-height: 70vh;
    overflow-y: auto;
  }

  .nav-main {
    padding-left: 0;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-secondary {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .spacer {
    display: none;
  }

  .nav-main .dropdown,
  .nav-secondary a {
    width: 100%;
    border-top: 1px solid #222;
  }

  .nav-main .dropdown {
    position: relative;
  }

  .nav-main .dropdown > a,
  .nav-secondary a {
    padding: 0.9rem 0.25rem;
  }

  .nav-main .dropdown > a {
    padding-right: 3rem; /* leave room for the toggle button, if any */
  }

  .nav-main .dropdown:not(.has-submenu) > a {
    padding-right: 0.25rem;
  }

  .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 100%;
    min-height: 44px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.25s ease;
  }

  .nav-main .dropdown.active .dropdown-toggle {
    transform: rotate(180deg);
  }

  /* Disable hover-open on touch; use tap/click toggle instead */
  .nav-main .dropdown:hover .dropdown-content {
    display: none;
  }

  .nav-main .dropdown-content {
    position: static;
    display: none;
    background-color: #0a0a0a;
    min-width: 100%;
    border-radius: 0;
  }

  .nav-main .dropdown.active .dropdown-content {
    display: block;
  }

  .nav-main .dropdown-content a {
    padding-left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .head-title {
    font-size: 1.3rem;
  }

  .logo {
    height: 30px;
  }

  .header-container {
    padding: 0.5rem 1rem;
    gap: 1rem;
  }
}