﻿body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    transition: color 0.3s ease;
}
h2{
    color: var(--heading-color);
    transition: color 0.3s ease;
    text-align: center;
}
h3{
    margin-left: 10%;
    
}

section {
    background-color: var(--section-bg);
    transition: background-color 0.3s ease;
    margin-top: 80px; /* Increased to accommodate 80px fixed navbar */
}

/* Accessibility: Visible Focus Outline */
:focus-visible {
    outline: 3px solid #2e7d32;
    outline-offset: 2px;
}

[data-theme="dark"] :focus-visible {
    outline: 3px solid #4ade80;
}
/* ================================
   THEME TOGGLE BUTTON (VISIBLE)
================================ */

.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;

  width: 52px;
  height: 52px;
  border-radius: 50%;

  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);

  border: none;
  outline: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 9999;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.theme-toggle i {
  pointer-events: none;
}
