:root {
  --bg: #000108;
  --text: #e4e4e4;
  --accent: #f87171;
  --grid-color: rgba(255, 0, 0, 0.07);
}

[data-theme="light"] {
  --bg: #fafafa;
  --text: #222;
  --accent: #d32f2f;
  --grid-color: rgba(0, 0, 0, 0.05);
}

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

section ul li {
  margin-bottom: 0.7rem; 
}

.custom-link{
  font-size: 1rem;
  font-weight:bold;
}


body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  line-height: 1.7;
  padding: 2rem;
  transition: background 0.4s, color 0.4s;
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 24px 24px;
}

section a {
  font-size: 0.95rem;
  opacity: 0.85;
}

section a:hover {
  opacity: 1;
}


.top-nav {
  position: fixed;
  top: 0;
   height: 60px; 
  right: 0;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
  gap: 1rem;
}

.nav-links a.active {
  font-weight: 500;
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-size: 0.95rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}


.nav-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

#theme-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s;
}

#theme-toggle:hover {
  transform: rotate(15deg);
}

.content {
  max-width: 850px;
  margin: 5rem auto;
}

h1 {
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

h2 {
  color: var(--accent);
  font-size: 1.1rem;
  margin: 2rem 0 0.6rem;
}

p, li {
  font-size: 1rem;
}

ul {
  list-style: disc;
  margin-left: 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.8;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-in forwards;
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.social-links a:hover {
  opacity: 0.6;
}


form {
  max-width: 500px;
  margin-top: 1.5rem;
}

label {
  display: block;
  margin-bottom: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

button {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
}

section ul ul {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

section ul ul li {
  position: relative;
  margin-bottom: 0.4rem;
  padding-left: 0.75rem;
}

section ul ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  opacity: 0.6;
}


@keyframes fadeIn {
  to { opacity: 1; }
}

@media (max-width: 600px) {
  .top-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
}



