@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* =====================================================
   RESET & BOX MODEL
===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: var(--leading-normal);
    overflow-x: hidden;
    min-height: 100vh;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    color: var(--text-main);
    line-height: var(--leading-tight);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p { line-height: var(--leading-relaxed); }

a {
    text-decoration: none;
    color: var(--text-link);
    transition: var(--transition-fast);
}

ul, ol { list-style: none; }

/* =====================================================
   FORM ELEMENT RESETS
===================================================== */
button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
    background: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* =====================================================
   CUSTOM SCROLLBAR
===================================================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* =====================================================
   SELECTION
===================================================== */
::selection {
    background: var(--primary-100);
    color: var(--primary-800);
}

/* =====================================================
   UTILITY CLASSES — Flex & Grid
===================================================== */
.flex       { display: flex; }
.inline-flex{ display: inline-flex; }
.grid       { display: grid; }
.block      { display: block; }
.hidden     { display: none; }

.flex-col   { flex-direction: column; }
.flex-row   { flex-direction: row; }
.flex-wrap  { flex-wrap: wrap; }
.flex-1     { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.items-start    { align-items: flex-start; }
.items-center   { align-items: center; }
.items-end      { align-items: flex-end; }
.items-stretch  { align-items: stretch; }

.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }

.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* =====================================================
   UTILITY CLASSES — Sizing
===================================================== */
.w-full  { width: 100%; }
.w-auto  { width: auto; }
.h-full  { height: 100%; }
.min-h-0 { min-height: 0; }

/* =====================================================
   UTILITY CLASSES — Spacing
===================================================== */
.p-0  { padding: 0; }
.p-4  { padding: var(--space-4); }
.p-6  { padding: var(--space-6); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }

.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-auto { margin-top: auto; }

/* =====================================================
   UTILITY CLASSES — Typography
===================================================== */
.text-2xs { font-size: var(--text-2xs); }
.text-xs  { font-size: var(--text-xs); }
.text-sm  { font-size: var(--text-sm); }
.text-base{ font-size: var(--text-base); }
.text-lg  { font-size: var(--text-lg); }
.text-xl  { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

.font-normal   { font-weight: var(--weight-regular); }
.font-medium   { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold     { font-weight: var(--weight-bold); }

.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.text-main    { color: var(--text-main); }
.text-muted   { color: var(--text-muted); }
.text-light   { color: var(--text-light); }
.text-white   { color: var(--text-white); }
.text-primary { color: var(--primary-blue); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error   { color: var(--error); }

.uppercase    { text-transform: uppercase; }
.capitalize   { text-transform: capitalize; }
.tracking-wide{ letter-spacing: 0.05em; }
.tracking-wider{ letter-spacing: 0.1em; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.leading-none   { line-height: 1; }
.leading-tight  { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }

/* =====================================================
   UTILITY CLASSES — Backgrounds & Borders
===================================================== */
.bg-white   { background-color: var(--bg-white); }
.bg-main    { background-color: var(--bg-main); }
.bg-primary { background: var(--primary-gradient); }

.border              { border: 1px solid var(--border-color); }
.border-light        { border: 1px solid var(--border-light); }
.border-t            { border-top: 1px solid var(--border-color); }
.border-b            { border-bottom: 1px solid var(--border-color); }
.rounded-sm          { border-radius: var(--radius-sm); }
.rounded-md          { border-radius: var(--radius-md); }
.rounded-lg          { border-radius: var(--radius-lg); }
.rounded-full        { border-radius: var(--radius-full); }

/* =====================================================
   UTILITY CLASSES — Shadows
===================================================== */
.shadow-xs  { box-shadow: var(--shadow-xs); }
.shadow-sm  { box-shadow: var(--shadow-sm); }
.shadow-md  { box-shadow: var(--shadow-md); }
.shadow-lg  { box-shadow: var(--shadow-lg); }

/* =====================================================
   UTILITY CLASSES — Overflow & Position
===================================================== */
.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }

.top-0  { top: 0; }
.left-0 { left: 0; }
.inset-0{ top: 0; right: 0; bottom: 0; left: 0; }

.z-10  { z-index: 10; }
.z-50  { z-index: 50; }
.z-100 { z-index: 100; }

/* =====================================================
   UTILITY CLASSES — Cursor & Interaction
===================================================== */
.cursor-pointer { cursor: pointer; }
.select-none    { user-select: none; }
.pointer-events-none { pointer-events: none; }
.transition     { transition: var(--transition-base); }

/* =====================================================
   ANIMATIONS
===================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

@keyframes floatUp {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

@keyframes ripple {
    0%   { transform: scale(0); opacity: 0.6; }
    100% { transform: scale(4); opacity: 0; }
}

.animate-fade-in    { animation: fadeIn 0.3s ease forwards; }
.animate-fade-up    { animation: fadeUp 0.4s ease forwards; }
.animate-slide-right{ animation: slideInRight 0.35s ease forwards; }
.animate-scale-in   { animation: scaleIn 0.3s var(--ease-bounce) forwards; }
.animate-pulse      { animation: pulse 2s ease infinite; }
.animate-spin       { animation: spin 1s linear infinite; }
.animate-float      { animation: floatUp 3s ease-in-out infinite; }
