:root {
  --primary: #0072CE;
  --dark: #111;
  --light: #f4f4f4;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--dark);
  margin: 0;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/dumbell-art.png");
  background-size: 200px;
  background-repeat: repeat;
  opacity: 0.08;
  z-index: -1;
}

body.dark {
  background: #121212;
  color: #f4f4f4;
}

body.dark::before {
  opacity: 0.04;
}

/* Overlay */
.overlay {
  background-color: rgba(0, 0, 0, 0.149);
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: white;
}

.header p {
  font-size: 1.2rem;
  font-weight: 300;
  color: white;
}

/* Content box */
.content {
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.06);
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  padding-bottom: 5px;
}

.content p {
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Social links */
.socials {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.socials a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.socials a:hover {
  color: white;
}

/* Responsive nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 1rem;
  }

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

/* ===== UNIVERSAL NAVBAR OVERRIDES (paste at the very end) ===== */

nav.navbar {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1.2rem;
  background: var(--primary, #0072CE);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* logo */
nav.navbar .nav-logo img { height: 50px; display:block; }

/* right side (profile pill + theme + burger) */
nav.navbar .nav-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

/* profile pill (Login / Name) */
nav.navbar .profile-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.85);
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
nav.navbar .profile-pill:hover { background: rgba(255,255,255,.12); }

/* theme toggle (if placed outside dropdown) */
nav.navbar .theme-toggle {
  border: 1px solid rgba(255,255,255,.85);
  background: transparent;
  color: #fff;
  padding: .45rem .6rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

/* hamburger */
nav.navbar .hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 28px;
  height: 22px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
nav.navbar .hamburger span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: #fff;
}

/* dropdown container (closed by default) */
nav.navbar .nav-links {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 12px;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: .6rem;
  flex-direction: column;
  gap: .6rem;
}
nav.navbar .nav-links.active { display: flex !important; } /* defeat old rules */

/* buttons inside dropdown (readable in light & dark) */
nav.navbar .nav-links .nav-button {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  color: #111;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: .5rem .75rem;
  text-decoration: none;
  font-weight: 600;
}
nav.navbar .nav-links .nav-button:hover {
  background: var(--primary, #0072CE);
  color: #fff;
  border-color: var(--primary, #0072CE);
}

/* theme toggle when it lives INSIDE the dropdown */
nav.navbar .nav-links .theme-toggle {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  color: #111;
  padding: .5rem .75rem;
}

/* Dark mode variants */
body.dark nav.navbar { color: var(--light, #f4f4f4); }
body.dark nav.navbar .profile-pill,
body.dark nav.navbar .theme-toggle { border-color: rgba(255,255,255,.6); }
body.dark nav.navbar .nav-links {
  background: #1b1b1b;
  border-color: #2a2a2a;
}
body.dark nav.navbar .nav-links .nav-button {
  background: #202020;
  color: var(--light, #f4f4f4);
  border-color: #2a2a2a;
}
body.dark nav.navbar .nav-links .nav-button:hover {
  background: #2c72cc;
  color: #fff;
  border-color: #2c72cc;
}
body.dark nav.navbar .nav-links .theme-toggle {
  background: #202020;
  color: var(--light, #f4f4f4);
  border-color: #2a2a2a;
}

/* Mobile: dropdown becomes a block under the bar */
@media (max-width: 767.98px) {
  nav.navbar .nav-links {
    position: static;
    right: auto;
    min-width: 0;
    width: 100%;
    margin-top: .6rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  body.dark nav.navbar .nav-links { background: transparent; }
  nav.navbar .nav-links .nav-button,
  nav.navbar .nav-links .theme-toggle { width: 100%; }
}
