/* =========================================================
   Techmate AI - Modern CSS Reset
   ========================================================= */

/* Box sizing */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin & padding */

* {
    margin: 0;
    padding: 0;
}

/* Smooth scrolling */

html {
    scroll-behavior: smooth;
}

/* Body defaults */

body {
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Better media defaults */

img,
picture,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

/* Forms */

input,
button,
textarea,
select {
    font: inherit;
    border: none;
    outline: none;
    background: none;
}

/* Buttons */

button {
    cursor: pointer;
    background: transparent;
}

/* Links */

a {
    color: inherit;
    text-decoration: none;
}

/* Lists */

ul,
ol {
    list-style: none;
}

/* Tables */

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Text overflow */

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* Textarea */

textarea {
    resize: vertical;
}

/* Focus styles */

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

/* Selection */

::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}