/* --- 1. GLOBAL RESET & VARIABLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- 2. ALL SIZE HEADER  --- */

.site-header {
  display: block;
  width: 100%;
  background: rgb(0, 0, 0, 0.9);
  padding: 1.2rem;
  position: fixed; /* NOTE it works just not in inspect */
  top: 0;
  z-index: 1001;
}

/* --- 3. HOLDS ALL NAV OPTIONS (In Base) --- */

.nav-container {
    display: none; /* Hide buttons initially */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-left: 0;
    gap: 0.5rem;
}

.nav-container.active{
  display: flex;
}

/* --- 4. STYLES HAMBURGER (Base for Mobile) ---  */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    appearance: none;       /* Removes default button styling */
    outline: none;          /* Removes the focus ring */
    border: none;           /* Removes default gray border */
    list-style: none;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.menu-toggle:hover .bar{
      background-color: var(--color-accent);
    }

/* --- 5. BUTTON STYLING (In Base) --- */ 

.nav-btn {
    text-decoration: none;
    color: var(--color-primary);
    background: none;
    font-family: Helvetica, Arial, sans-serif;
    border-radius: 1rem;
    border: 2px solid var(--color-primary);
    transition: 0.3s ease;
    cursor: pointer;
    text-align: center;
    width: 60%;           /* Makes buttons wider on small screens */
    max-width: 300px;     /* Prevents them from getting TOO wide on tablets */
    padding: 0.8rem;        /* Larger tap area for fingers */
    font-size: 1.2rem;    /* Makes text easier to read on mobile */
}

.nav-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.nav-btn:active{
    opacity: .5;
}

/* --- LARGER THAN SINGLE PHONE STYLING --- */
@media (min-width: 520px) {
  .menu-toggle {
      display: none; 
  }

  .nav-container {
    display: flex; /* flex*/ 
    flex-direction: row;
    justify-content: flex-start;   
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    flex-wrap: wrap;        
  }

  .nav-btn {
    padding: clamp(0.35rem, 0.7vw, 0.6rem) clamp(1.3rem, 2.6vw, 2rem);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 300;
    width: auto;
  }
}
