/* assets/css/global.css */

/* ── DESIGN SYSTEM & VARIABLES ── */
:root {
	--primary-navy: #002d62;  /* Deep McKinsey Blue (Navy) */
	--accent-blue: #0076c0;   /* Vibrant McKinsey Blue */
	--light-blue: #00a4e4;    /* Accent Light Blue */
	--white: #ffffff;
	--offwhite: #f0f4f8;     /* Clean Cool Slate Gray */
	--black: #050c18;        /* Very Dark Slate Navy */
	--error-red: #ff4d4d;
	--success-green: #2ecc71;
}

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

html,
body {
	min-height: 100%;
	background: var(--black);
	color: var(--white);
	font-family: 'DM Sans', sans-serif;
	overflow-x: hidden;
}

/* ── TOP BAR HEADER ── */
.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 40px;
}

.header__socials {
	display: flex;
	gap: 18px;
	align-items: center;
}

.header__socials a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: color 0.2s;
	display: flex;
	align-items: center;
}

.header__socials a:hover {
	color: var(--accent-blue);
}

.header__socials svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.header__logo {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-decoration: none;
}

.logo-wordmark {
	font-family: 'DM Sans', sans-serif;
	font-weight: 300;
	font-size: 20px;
	letter-spacing: 0.12em;
	color: var(--white);
	position: relative;
	transition: color 0.3s ease, letter-spacing 0.3s ease, text-shadow 0.3s ease;
}

.logo-wordmark::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: linear-gradient(to right, var(--primary-navy), var(--light-blue));
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.3s ease;
}

.header__logo:hover .logo-wordmark {
	color: var(--light-blue);
	letter-spacing: 0.16em;
	text-shadow: 0 0 10px rgba(0, 164, 228, 0.3);
}

.header__logo:hover .logo-wordmark::after {
	transform: scaleX(1);
}

/* ── NAVIGATION BAR ── */
nav {
	position: absolute;
	top: 90px;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	justify-content: center;
	gap: 44px;
}

nav a {
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color 0.2s;
	position: relative;
}

nav a::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--accent-blue);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

nav a:hover {
	color: var(--white);
}

nav a:hover::after {
	transform: scaleX(1);
}

nav a.active {
	color: var(--light-blue);
}

nav a.active::after {
	transform: scaleX(1);
	background: var(--light-blue);
}

/* ── CUSTOM CURSOR STYLES ── */
.cursor-dot {
	position: fixed;
	left: 0;
	top: 0;
	pointer-events: none;
	z-index: 99999;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
	transform: translate(-50%, -50%);
	transition: transform 160ms cubic-bezier(.2, .8, .2, 1), opacity 160ms;
}

.cursor-dot.cursor--hover {
	transform: translate(-50%, -50%) scale(0.7);
	opacity: 0.95;
}

.cursor-dot.cursor--active {
	transform: translate(-50%, -50%) scale(0.92);
}

/* Hide native cursor on precise pointer devices */
@media (hover: hover) and (pointer: fine) {
	body {
		cursor: none;
	}
}

/* Disable on touch */
@media (hover: none) and (pointer: coarse) {
	.cursor-dot {
		display: none;
	}
	body {
		cursor: auto;
	}
}
