/**
 * ============================================================
 * PLATON SOLUTIONS - CSS Reset
 * Modern CSS Reset / Normalize
 * ============================================================
 */

/* ─── Box Sizing ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ─── Remove Default Margins & Paddings ────────────────────── */
* {
  margin: 0;
  padding: 0;
}

/* ─── HTML & Body ──────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Media Elements ───────────────────────────────────────── */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ─── Form Elements ────────────────────────────────────────── */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  border: none;
  outline: none;
  background: none;
}

/* ─── Links ────────────────────────────────────────────────── */
a {
  text-decoration: none;
  color: inherit;
}

/* ─── Lists ────────────────────────────────────────────────── */
ul,
ol {
  list-style: none;
}

/* ─── Tables ───────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ─── Headings ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
}

/* ─── Blockquote & Address ─────────────────────────────────── */
blockquote,
address {
  font-style: normal;
}

/* ─── Horizontal Rule ──────────────────────────────────────── */
hr {
  border: none;
  height: 1px;
  background: currentColor;
  opacity: 0.2;
}

/* ─── Interactive Elements ─────────────────────────────────── */
summary {
  cursor: pointer;
}

details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

/* ─── Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Selection Styling ────────────────────────────────────── */
::selection {
  background-color: var(--accent);
  color: var(--bg-dark);
}

::-moz-selection {
  background-color: var(--accent);
  color: var(--bg-dark);
}

/* ─── Focus Visible ────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ─── Scrollbar Styling ────────────────────────────────────── */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) var(--bg-dark);
}
