/* ============================================
   CybTech — Base Styles
   Reset, Typography, Global Defaults
   ============================================ */

/* ── Modern Reset ──────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: var(--nav-height);
}

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

/* ── Selection ─────────────────────────────── */
::selection {
    background-color: var(--primary-600);
    color: #ffffff;
}

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-600);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-500);
}

/* ── Typography ────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    transition: color var(--transition-slow);
}

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

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
    transition: color var(--transition-slow);
}

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

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

strong, b {
    font-weight: var(--font-semibold);
}

/* ── Lists ─────────────────────────────────── */
ul, ol {
    list-style: none;
}

/* ── Images ────────────────────────────────── */
img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ── Buttons (reset) ──────────────────────── */
button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

/* ── Inputs (reset) ───────────────────────── */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

/* ── Gradient Text Utility ─────────────────── */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

/* ── Section Spacing ───────────────────────── */
.section {
    padding: var(--space-24) 0;
    position: relative;
}

/* ── Section Header ────────────────────────── */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--primary-400);
    margin-bottom: var(--space-4);
    backdrop-filter: blur(10px);
}

.section-title {
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Visually Hidden (SR only) ─────────────── */
.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;
}
