/* ==================== XINDUS DESIGN SYSTEM - BASE ==================== */
/* Reset, Typography, and Foundation Styles */

/* ========== CSS RESET ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 {
    font-family: var(--font-serif);
    font-size: var(--text-5xl);
    font-weight: var(--font-normal);
}

h2 {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    font-weight: var(--font-normal);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-md);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-blue-light);
}

/* ========== LISTS ========== */
ul, ol {
    list-style: none;
}

/* ========== IMAGES & MEDIA ========== */
img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== FORMS ========== */
button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

input, textarea {
    outline: none;
}

/* ========== FOCUS STATES ========== */
*:focus-visible {
    outline: 2px solid var(--primary-blue-light);
    outline-offset: 2px;
}

/* ========== SELECTION ========== */
::selection {
    background: var(--primary-blue-light);
    color: white;
}

/* ========== SKIP LINK (Accessibility) ========== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 9999;
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: top var(--transition-slow);
}

.skip-link:focus {
    top: 0;
}

/* ========== SCROLLBAR (Optional - WebKit) ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ========== TEXT UTILITIES ========== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-animated {
    background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 25%, #3b82f6 50%, #60a5fa 75%, #3b82f6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}
