body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #0e0e0e;
  color: #eee;
}

a {
  color: #00aaff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #121212;
  padding: 15px 30px;
  border-bottom: 1px solid #222;
  flex-wrap: wrap;
  position: relative;
}

header {
  position: relative;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-left a,
.nav-right a {
  margin-left: 35px;
  color: #bbb;
  font-weight: 500;
}

.nav-left a:hover,
.nav-right a:hover {
  color: #fff;
}

.center-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.center-nav a {
  position: relative;
  margin: 0 35px;
  color: #bbb;
  font-weight: 700;
  text-decoration: none;
}

.center-nav a:hover {
  color: #fff;
}

.center-nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #C1440E; /* Rust orange */
  transition: width 0.3s ease;
}

.center-nav a:hover::after {
  width: 100%;
}

.logo {
  height: 100px;
}

nav a {
  color: #bbb;
  font-weight: 500;
}

.hero {
  padding: 100px 20px;
  text-align: center;
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("../assets/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-in-out;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  text-align: center;
  padding: 30px;
  color: #666;
  border-top: 1px solid #222;
}

input#noteSearch {
  width: 100%;
  padding: 10px;
  margin: 20px 0;
  border: none;
  border-radius: 5px;
  background: #1a1a1a;
  color: #eee;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .center-nav {
    position: static;
    transform: none;
    margin-top: 10px;
  }

  .center-nav a,
  .nav-left a,
  .nav-right a {
    margin: 25px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}

/* === Button system for navs === */
.btn {
  --btn-bg: #1a1a1a;
  --btn-fg: #eaeaea;
  --btn-bd: #2a2a2a;
  --btn-bg-h: #212121;
  --btn-bd-h: #3a3a3a;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--btn-bd);
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
  outline-offset: 2px;
  font-size: 1rem;
}

.btn:hover { background: var(--btn-bg-h); border-color: var(--btn-bd-h); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(0,170,255,.35); }

/* Primary nav flavor */
.btn--nav {
  --btn-bg: #151515;
  --btn-bd: #2b2b2b;
}

/* Ghost buttons for bottom nav */
.btn--ghost {
  --btn-bg: transparent;
  --btn-bd: #3a3a3a;
  --btn-bg-h: rgba(255,255,255,0.06);
}

/* Top nav spacing + larger tap targets */
.top-nav {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.top-nav .btn { font-size: 1.05rem; padding: 12px 18px; }

/* Bottom nav centered */
.bottom-nav {
  display: flex; justify-content: center; gap: 12px;
  padding: 30px 20px;
}
.bottom-nav .btn { padding: 10px 14px; }

/* Brand logo keeps spacing consistent */
.brand { display: inline-flex; align-items: center; gap: 10px; }

/* Make sure header nav links inherit new color scheme */
header nav a { color: inherit; text-decoration: none; }
