/*
 * EVOLUX PORTFOLIO — RAW STUDIO (demo "studio de fitness / antrenor personal")
 * Temă vizuală: "kinetic energy" — tipografie condensata uriasa, glitch
 * text, linii de viteza animate, benzi diagonale, neon lime pe negru.
 * Complet independenta de celelalte 2 demo-uri (paleta, fonturi, tehnici).
 */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;700&display=swap');

:root {
	--rw-ink: #0A0A0A;
	--rw-charcoal: #17171A;
	--rw-neon: #D4FF3F;
	--rw-neon-dim: #9FCB2A;
	--rw-white: #F5F5F5;
	--rw-grey: #8A8A8E;
	--rw-font-display: 'Bebas Neue', sans-serif;
	--rw-font-body: 'Inter', sans-serif;
}

.raw * {
	box-sizing: border-box;
}

.raw {
	background-color: var(--rw-ink);
	color: var(--rw-white);
	font-family: var(--rw-font-body);
	line-height: 1.6;
	overflow-x: hidden;
}

.raw img {
	max-width: 100%;
	display: block;
}

.raw h1,
.raw h2,
.raw h3 {
	font-family: var(--rw-font-display);
	font-weight: 400;
	line-height: 0.9;
	letter-spacing: 0.01em;
	margin: 0;
	text-transform: uppercase;
}

.raw p {
	margin: 0;
}

.raw .container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 1.5rem;
}

.raw section {
	padding-block: clamp(3.5rem, 8vw, 7rem);
	position: relative;
}

.rw-accent {
	color: var(--rw-neon);
}

/* =========================================================
 * BUTON FLOATING
 * ========================================================= */
.rw-back {
	position: fixed;
	top: 1.5rem;
	left: 1.5rem;
	z-index: 100;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	background: rgba(10, 10, 10, 0.7);
	border: 1px solid var(--rw-neon);
	border-radius: 999px;
	color: var(--rw-white);
	font-family: var(--rw-font-body);
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.rw-back:hover,
.rw-back:focus-visible {
	background: var(--rw-neon);
	color: var(--rw-ink);
}

.rw-back svg {
	width: 16px;
	height: 16px;
}

.rw-brandmark {
	position: fixed;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 100;
	font-family: var(--rw-font-display);
	font-size: 1.5rem;
	letter-spacing: 0.03em;
	color: var(--rw-neon);
}

/* =========================================================
 * REVEAL
 * ========================================================= */
.raw [data-reveal] {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.raw [data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* =========================================================
 * LINII DE VITEZA — fundal animat
 * ========================================================= */
.rw-speedlines {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	opacity: 0.15;
	background-image: repeating-linear-gradient(115deg, var(--rw-neon) 0 2px, transparent 2px 60px);
	animation: rwSpeed 6s linear infinite;
	pointer-events: none;
}

@keyframes rwSpeed {
	from { background-position: 0 0; }
	to { background-position: -600px 0; }
}

/* =========================================================
 * HERO
 * ========================================================= */
.rw-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: var(--rw-ink);
}

.rw-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	filter: grayscale(0.3) contrast(1.1);
}

.rw-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.55) 45%, rgba(10, 10, 10, 0.96) 100%);
}

.rw-hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 50rem;
	padding-inline: 1.5rem;
}

.rw-hero__eyebrow {
	display: inline-block;
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--rw-neon);
	margin-bottom: 2rem;
}

/* Efect "glitch" pe titlu — straturi RGB decalate, animate */
.rw-hero__title {
	position: relative;
	color: var(--rw-white);
	font-size: clamp(3rem, 12vw, 8.5rem);
	line-height: 0.88;
}

.rw-hero__title span {
	position: relative;
	display: inline-block;
}

.rw-hero__title span::before,
.rw-hero__title span::after {
	content: attr(data-text);
	position: absolute;
	inset: 0;
	background: transparent;
}

.rw-hero__title span::before {
	color: #FF3B3B;
	animation: rwGlitch1 4s infinite linear alternate-reverse;
	z-index: -1;
}

.rw-hero__title span::after {
	color: var(--rw-neon);
	animation: rwGlitch2 4.5s infinite linear alternate-reverse;
	z-index: -2;
}

@keyframes rwGlitch1 {
	0%, 92%, 100% { transform: translate(0, 0); opacity: 0; }
	93% { transform: translate(-3px, 1px); opacity: 0.7; }
	95% { transform: translate(2px, -1px); opacity: 0.7; }
	97% { transform: translate(-1px, 2px); opacity: 0; }
}

@keyframes rwGlitch2 {
	0%, 90%, 100% { transform: translate(0, 0); opacity: 0; }
	91% { transform: translate(3px, -1px); opacity: 0.6; }
	94% { transform: translate(-2px, 1px); opacity: 0.6; }
	96% { transform: translate(1px, -2px); opacity: 0; }
}

.rw-hero__subtitle {
	text-align: center;
	font-family: var(--rw-font-body);
	text-transform: none;
	font-size: clamp(1rem, 1.2vw + 0.6rem, 1.25rem);
	font-weight: 500;
	color: var(--rw-grey);
	max-width: 28rem;
	margin: 1.75rem auto 2.5rem !important;
}

.rw-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 1.125rem 2.25rem;
	background: var(--rw-neon);
	color: var(--rw-ink);
	font-family: var(--rw-font-display);
	font-size: 1.25rem;
	letter-spacing: 0.03em;
	text-decoration: none;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	margin-top: 2.5rem;
	box-shadow: 0 0 0 0 rgba(212, 255, 63, 0.6);
	animation: rwPulse 2.4s ease-in-out infinite;
	transition: transform 0.2s ease;
}

.rw-btn:hover,
.rw-btn:focus-visible {
	transform: scale(1.05);
}

@keyframes rwPulse {
	0% { box-shadow: 0 0 0 0 rgba(212, 255, 63, 0.55); }
	70% { box-shadow: 0 0 0 18px rgba(212, 255, 63, 0); }
	100% { box-shadow: 0 0 0 0 rgba(212, 255, 63, 0); }
}

/* =========================================================
 * STATS
 * ========================================================= */
.rw-stats {
	background: var(--rw-charcoal);
	border-top: 1px solid rgba(212, 255, 63, 0.2);
	border-bottom: 1px solid rgba(212, 255, 63, 0.2);
}

.rw-stats__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	text-align: center;
}

.rw-stat__value {
	display: block;
	font-family: var(--rw-font-display);
	font-size: clamp(3.5rem, 7vw, 5.5rem);
	color: var(--rw-neon);
	line-height: 1;
}

.rw-stat__label {
	font-family: var(--rw-font-body);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rw-grey);
	font-size: 0.8125rem;
	margin-top: 0.5rem;
	font-weight: 700;
}

/* =========================================================
 * FEATURE + IMAGINE (echipamente)
 * ========================================================= */
.rw-feature__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
}

.rw-feature__image {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 2px solid var(--rw-neon);
}

.rw-feature__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(0.4);
	transition: filter 0.4s ease;
}

.rw-feature__image:hover img {
	filter: grayscale(0);
}

.rw-feature__eyebrow {
	color: var(--rw-neon);
	font-family: var(--rw-font-body);
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.rw-feature h2 {
	font-size: clamp(2.25rem, 4.5vw + 1rem, 3.75rem);
	margin-block: 0.5rem 1rem;
}

.rw-feature p {
	font-family: var(--rw-font-body);
	text-transform: none;
	color: var(--rw-grey);
	font-weight: 500;
	max-width: 28rem;
}

/* =========================================================
 * PROGRAME — carduri
 * ========================================================= */
.rw-programs__header {
	text-align: center;
	max-width: 36rem;
	margin: 0 auto 3rem;
}

.rw-programs__header .rw-feature__eyebrow {
	display: inline-block;
}

.rw-programs__header h2 {
	font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem);
	margin-block: 0.5rem 0.75rem;
}

.rw-programs__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.rw-program {
	background: var(--rw-charcoal);
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 2rem;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.rw-program:hover {
	border-color: var(--rw-neon);
	transform: translateY(-6px);
}

.rw-program__index {
	font-family: var(--rw-font-display);
	font-size: 1.5rem;
	color: var(--rw-neon);
}

.rw-program h3 {
	font-size: 1.75rem;
	margin-block: 0.5rem 0.75rem;
}

.rw-program p {
	font-family: var(--rw-font-body);
	text-transform: none;
	color: var(--rw-grey);
	font-size: 0.9375rem;
	font-weight: 500;
}

/* =========================================================
 * COMUNITATE — imagine full-bleed cu text suprapus
 * ========================================================= */
.rw-community {
	position: relative;
	min-height: 60vh;
	display: flex;
	align-items: center;
	padding-block: 0;
}

.rw-community__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.rw-community__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rw-community__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 55%, rgba(10, 10, 10, 0.3) 100%);
}

.rw-community__content {
	position: relative;
	z-index: 1;
	max-width: 28rem;
}

.rw-community__content h2 {
	font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
	margin-bottom: 1rem;
}

.rw-community__content p {
	font-family: var(--rw-font-body);
	text-transform: none;
	color: var(--rw-grey);
	font-weight: 500;
}

/* =========================================================
 * CTA FINAL
 * ========================================================= */
.rw-cta {
	text-align: center;
	background: var(--rw-charcoal);
}

.rw-cta h2 {
	font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
	margin-bottom: 1rem;
}

.rw-cta p {
	font-family: var(--rw-font-body);
	text-transform: none;
	color: var(--rw-grey);
	font-weight: 500;
	max-width: 26rem;
	margin: 0 auto 1rem;
}

/* =========================================================
 * FOOTER
 * ========================================================= */
.rw-footer {
	background: var(--rw-ink);
	color: var(--rw-grey);
	text-align: center;
	padding-block: 2.5rem;
	font-size: 0.8125rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rw-footer__brand {
	font-family: var(--rw-font-display);
	color: var(--rw-neon);
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.rw-footer__note {
	margin-top: 0.75rem;
	color: rgba(255, 255, 255, 0.25);
	font-size: 0.75rem;
}

/* =========================================================
 * PLACEHOLDER
 * ========================================================= */
.rw-ph {
	width: 100%;
	height: 100%;
	min-height: 260px;
	background:
		repeating-linear-gradient(115deg, rgba(212, 255, 63, 0.12) 0 14px, transparent 14px 28px),
		var(--rw-charcoal);
	display: flex;
	align-items: center;
	justify-content: center;
}

.rw-ph__label {
	background: rgba(10, 10, 10, 0.85);
	color: var(--rw-white);
	font-family: var(--rw-font-body);
	text-transform: none;
	font-size: 0.75rem;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	text-align: center;
}

/* =========================================================
 * RESPONSIVE
 * ========================================================= */
@media (min-width: 640px) {
	.rw-stats__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 860px) {
	.rw-feature__grid {
		grid-template-columns: 1fr 1fr;
	}

	.rw-programs__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.rw-speedlines,
	.rw-btn,
	.rw-hero__title span::before,
	.rw-hero__title span::after {
		animation: none;
	}

	.raw [data-reveal] {
		transition: none;
	}
}
