:root {
  --bg-color: #0F172A;
  --card-bg: #1E293B;
  --text-main: #ffffff;
  --text-muted: #94A3B8;
  --text-dark: #333333; /* For specific elements that need contrast */
  --accent: #38BDF8;
  --accent-hover: #68d2ff;
  --shadow-color: rgba(0, 0, 0, 0.2);
  --shadow-hover: rgba(56, 189, 248, 0.3);
  --border-color: rgba(255, 255, 255, 0.1);
  --navbar-bg: #1E293B;
  --footer-bg: #1E293B;
}

html.light-mode {
  --bg-color: #f1f5f9;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dark: #0f172a;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(2, 132, 199, 0.15);
  --border-color: rgba(0, 0, 0, 0.1);
  --navbar-bg: #ffffff;
  --footer-bg: #f8fafc;
}

.topnav {
    display: flex;
    align-items: center;
    background-color: var(--navbar-bg);
    height: 60px;
    padding: 0 20px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.topnav a {
    color: var(--text-main);
    text-align: center;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 4px;
}

.topnav a:hover {
    background-color: rgba(56, 189, 248, 0.15);
    color: var(--accent);
}

.topnav a.active {
    background-color: var(--accent);
    color: #ffffff; 
}

/* Theme Toggle Button */
.theme-toggle {
    margin-left: auto;
    background-color: var(--accent);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 25px;
    min-width: unset; /* Zorgt ervoor dat hij niet uitrekt op de extra.html door de tag styling */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow-hover);
}

.theme-toggle:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-hover);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .topnav {
    flex-wrap: wrap;
    height: auto;
    padding: 10px;
    justify-content: center;
  }

  .topnav a {
    margin: 5px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .theme-toggle {
    margin: 10px auto 0;
  }
}