/* ═══════════════════════════════════════════════════════════════════════════
   GKFM ULTIMATE - Main CSS
   Variables, Reset, Base Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════════════
   CSS VARIABLES
   ════════════════════════════════════════════════════════════════════════════ */
:root {
    /* ═══════════════ Brand Colors ═══════════════ */
    --gkfm-navy: #1a3a5c;
    --gkfm-navy-light: #2a4f7a;
    --gkfm-navy-dark: #0f2440;

    --gkfm-cyan: #3eb8d4;
    --gkfm-cyan-light: #5fd4ef;
    --gkfm-cyan-dark: #2a9ab5;

    --gkfm-gold: #d4af37;
    --gkfm-gold-light: #e5c44d;
    --gkfm-gold-dark: #b8942e;

    /* ═══════════════ Backgrounds ═══════════════ */
    --bg-dark: #0a1628;
    --bg-darker: #050d18;
    --bg-surface: #0f1e32;
    --bg-surface-light: #162742;
    --bg-card: #12223a;
    --bg-footer: #050d18;

    /* ═══════════════ Text Colors ═══════════════ */
    --text-primary: #e8eaf0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dark: #475569;

    /* ═══════════════ Semantic Colors ═══════════════ */
    --color-success: #10b981;
    --color-success-light: rgba(16, 185, 129, 0.15);
    --color-error: #ef4444;
    --color-error-light: rgba(239, 68, 68, 0.15);
    --color-warning: #f59e0b;

    /* ═══════════════ Gradients ═══════════════ */
    --gradient-primary: linear-gradient(135deg, var(--gkfm-cyan) 0%, var(--gkfm-navy) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--gkfm-cyan) 0%, var(--gkfm-gold) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gkfm-gold) 0%, var(--gkfm-gold-light) 50%, var(--gkfm-gold) 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    --gradient-radial: radial-gradient(ellipse at center, var(--gkfm-cyan) 0%, transparent 70%);
    --gradient-text: linear-gradient(135deg, var(--gkfm-gold) 0%, var(--gkfm-cyan) 100%);

    /* ═══════════════ Typography ═══════════════ */
    --font-heading: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Font Sizes (Fluid) */
    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
    --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --text-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-xl: clamp(1.15rem, 1.05rem + 0.5vw, 1.25rem);
    --text-2xl: clamp(1.4rem, 1.2rem + 1vw, 1.5rem);
    --text-3xl: clamp(1.7rem, 1.4rem + 1.5vw, 1.875rem);
    --text-4xl: clamp(2rem, 1.6rem + 2vw, 2.5rem);
    --text-5xl: clamp(2.5rem, 1.8rem + 3.5vw, 3.5rem);
    --text-6xl: clamp(3rem, 2rem + 5vw, 4.5rem);

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-black: 900;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* ═══════════════ Spacing ═══════════════ */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* ═══════════════ Border Radius ═══════════════ */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;

    /* ═══════════════ Transitions ═══════════════ */
    --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --duration-fast: 0.15s;
    --duration-base: 0.25s;
    --duration-slow: 0.4s;
    --duration-slower: 0.6s;

    --transition-fast: var(--duration-fast) var(--ease-default);
    --transition-base: var(--duration-base) var(--ease-default);
    --transition-slow: var(--duration-slow) var(--ease-default);
    --transition-spring: var(--duration-slow) var(--ease-spring);

    /* ═══════════════ Shadows ═══════════════ */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    --shadow-glow-cyan: 0 0 40px rgba(62, 184, 212, 0.3);
    --shadow-glow-gold: 0 0 40px rgba(212, 175, 55, 0.3);
    --shadow-glow-navy: 0 0 40px rgba(26, 58, 92, 0.5);

    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);

    /* ═══════════════ Z-Index Scale ═══════════════ */
    --z-behind: -1;
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-tooltip: 600;
    --z-cursor: 9000;
    --z-loader: 9999;

    /* ═══════════════ Layout ═══════════════ */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;

    --header-height: 80px;
    --header-height-scrolled: 70px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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: var(--gradient-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

body.nav-open {
    overflow: hidden;
}

/* ═══════════════ Typography Reset ═══════════════ */
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);
}

h1 { font-size: var(--text-6xl); }
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 {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

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

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

/* ═══════════════ Elements Reset ═══════════════ */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ═══════════════ Selection ═══════════════ */
::selection {
    background: var(--gkfm-cyan);
    color: var(--bg-darker);
}

::-moz-selection {
    background: var(--gkfm-cyan);
    color: var(--bg-darker);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--gkfm-navy);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gkfm-cyan);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gkfm-navy) var(--bg-dark);
}

/* ════════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════ Text Colors ═══════════════ */
.text--cyan {
    color: var(--gkfm-cyan);
}

.text--gold {
    color: var(--gkfm-gold);
}

.text--navy {
    color: var(--gkfm-navy-light);
}

.text--muted {
    color: var(--text-muted);
}

.text--gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════ Text Alignment ═══════════════ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ═══════════════ Display ═══════════════ */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* ═══════════════ Accessibility ═══════════════ */
.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;
}

/* ═══════════════ Focus States ═══════════════ */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--gkfm-cyan);
    outline-offset: 2px;
}

/* ═══════════════ Container ═══════════════ */
.container {
    width: 100%;
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ════════════════════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ════════════════════════════════════════════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-secondary);
    z-index: var(--z-fixed);
    transition: width 0.1s linear;
}

/* ════════════════════════════════════════════════════════════════════════════
   PARTICLES BACKGROUND
   ════════════════════════════════════════════════════════════════════════════ */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: var(--z-behind);
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ════════════════════════════════════════════════════════════════════════════ */
.cursor {
    position: fixed;
    pointer-events: none;
    z-index: var(--z-cursor);
    mix-blend-mode: difference;
}

.cursor__dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor__ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    transition: width 0.3s, height 0.3s, opacity 0.3s, border-color 0.3s;
}

.cursor.hover .cursor__dot {
    width: 12px;
    height: 12px;
    background: var(--gkfm-cyan);
}

.cursor.hover .cursor__ring {
    width: 60px;
    height: 60px;
    border-color: var(--gkfm-cyan);
    opacity: 0.8;
}

.cursor.clicking .cursor__dot {
    transform: translate(-50%, -50%) scale(0.8);
}

.cursor.clicking .cursor__ring {
    transform: translate(-50%, -50%) scale(0.9);
}

@media (max-width: 1024px), (hover: none) {
    .cursor {
        display: none !important;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION HEADER
   ════════════════════════════════════════════════════════════════════════════ */
.section-header {
    max-width: 700px;
    margin-bottom: var(--space-3xl);
}

.section-header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-header__tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--gkfm-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-md);
}

.section-header__tag svg {
    width: 18px;
    height: 18px;
}

.section-header__title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-md);
}

.section-header__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
}

.section-header--center .section-header__subtitle {
    margin: 0 auto;
}
