/* ============================================================
   FYP Journey — CSS Reset (Modern)
   reset.css
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography reset */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
}

p {
    line-height: var(--leading-relaxed);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Lists */
ul,
ol {
    list-style: none;
}

/* Media */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

/* Form elements */
input,
button,
textarea,
select {
    font: inherit;
    border: none;
    outline: none;
    background: transparent;
}

button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

textarea {
    resize: vertical;
}

/* Table */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Selection */
::selection {
    background-color: var(--color-secondary);
    color: var(--color-text-white);
}

/* Scrollbar (webkit) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Hidden utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}