/* style.css */

/*-------------------------------
  1. Variables & Base Resets
--------------------------------*/
:root {
  --bg: #111;
  --text: #eee;
  --accent: #5eead4;
  --muted: #999;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/*-------------------------------
  2. Header & Navigation
--------------------------------*/
header {
  background: #000;
  padding: 1rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--muted);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Site Title */
nav h1 {
  font-weight: 700;
  color: var(--accent);
}

/* Nav List (Desktop) */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

/* Language Toggle & Menu Toggle */
#lang-toggle {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
#lang-toggle:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Hide mobile-menu-button by default */
#menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  display: none;
}

/*-------------------------------
  3. Mobile Responsive Nav
--------------------------------*/
@media (max-width: 768px) {
  /* Show hamburger */
  #menu-toggle {
    display: block;
  }
  /* Hide menu by default */
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 2rem;
    background: #000;
    border: 1px solid var(--muted);
    padding: 1rem 2rem;
    border-radius: 4px;
    width: 200px;
    text-align: right;
  }
  /* When nav has .open, show menu */
  nav.open ul {
    display: flex;
  }
}

/*-------------------------------
  4. Main Content
--------------------------------*/
main {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

section {
  margin-bottom: 4rem;
}

#hero {
  text-align: center;
  padding: 4rem 0;
}

h2,
h3 {
  margin-bottom: 1rem;
}

/*-------------------------------
  5. Footer
--------------------------------*/
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--muted);
}
