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

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.6;
  font-size: 16px;
  transition: background-color 0.8s ease, color 0.8s ease;
}

body.preload {
  opacity: 0;
}

body.loaded {
  opacity: 1;
  transition: opacity 1.2s ease-in;
}

body.fade {
  opacity: 0.3;
  transition: opacity 0.6s ease;
}

body.sunset-theme {
  --header-bg: #ffffff;
  --nav-bg: #ffffff;
  --accent-color: #333333;
  background-color: var(--header-bg);
  color: black;
}

body.night-theme {
  --header-bg: #0e0e18;
  --nav-bg: #0e0e18;
  --accent-color: #ffcc66;
  background-color: var(--header-bg);
  color: #ffffff;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
}

/* 
  .sr-only — hides content visually but keeps it accessible to screen readers.
  Useful for providing additional context (e.g., “opens in a new tab”) 
  without displaying it on screen.
*/
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
