/* ============================================
   CreativeMC — Base Styles & Reset
   ============================================ */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
}

body {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-primary);
	background-color: var(--bg-primary);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
}

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

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

/* Section spacing */
.section {
	padding: var(--space-2xl) 0;
}

.section-label {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: var(--space-sm);
}

.section-title {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: var(--space-md);
}

.section-subtitle {
	font-size: 1.05rem;
	color: var(--text-muted);
	max-width: 560px;
	margin-bottom: var(--space-lg);
}

/* Fade-in animation (triggered by JS) */
.fade-in {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.fade-in {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 768px) {
	.fade-in {
		transform: translateY(24px);
		transition: opacity 520ms ease, transform 520ms ease;
	}
}

/* Selection */
::selection {
	background: var(--accent-glow);
	color: var(--text-primary);
}

/* Custom scrollbar — WebKit + Firefox */
html {
	scrollbar-width: thin;
	scrollbar-color: var(--accent-dark) var(--bg-glass);
}

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: var(--bg-glass);
	border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
	background: var(--accent-dark);
	border-radius: var(--radius-full);
	border: 2px solid transparent;
	background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--accent);
	background-clip: padding-box;
}