/*
 * EVOLUX PORTFOLIO — NEXORA (demo "brand de tehnologie / gadgeturi")
 * Temă vizuală: "sci-fi tech" — dark mode, glow neon albastru/violet,
 * grid animat, glassmorphism, rotatie 3D continua. Al cincilea stil
 * distinct din portofoliu. Brand fictiv "NEXORA".
 */

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

:root {
	--nx-ink: #05060A;
	--nx-charcoal: #0D0F1A;
	--nx-panel: #12142280;
	--nx-blue: #4F7CFF;
	--nx-purple: #9B5CFF;
	--nx-cyan: #4FE3FF;
	--nx-white: #EDEFFA;
	--nx-grey: #8890B0;
	--nx-font-heading: 'Orbitron', sans-serif;
	--nx-font-body: 'Inter', sans-serif;
}

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

.nexora {
	background-color: var(--nx-ink);
	color: var(--nx-white);
	font-family: var(--nx-font-body);
	line-height: 1.65;
	overflow-x: hidden;
}

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

.nexora h1,
.nexora h2,
.nexora h3 {
	font-family: var(--nx-font-heading);
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.nexora p {
	margin: 0;
}

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

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

.nx-glow-text {
	color: var(--nx-cyan);
	text-shadow: 0 0 12px rgba(79, 227, 255, 0.7), 0 0 32px rgba(155, 92, 255, 0.4);
}

/* =========================================================
 * GRID ANIMAT — fundal decorativ
 * ========================================================= */
.nx-grid-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(79, 124, 255, 0.12) 1px, transparent 1px),
		linear-gradient(90deg, rgba(79, 124, 255, 0.12) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 90%);
	animation: nxGridDrift 14s linear infinite;
}

@keyframes nxGridDrift {
	from { background-position: 0 0, 0 0; }
	to { background-position: 46px 46px, 46px 46px; }
}

.nx-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.4;
	animation: nxFloat 18s ease-in-out infinite;
	pointer-events: none;
}

.nx-orb--blue {
	width: 380px;
	height: 380px;
	background: var(--nx-blue);
	top: -8%;
	left: -6%;
}

.nx-orb--purple {
	width: 320px;
	height: 320px;
	background: var(--nx-purple);
	bottom: -10%;
	right: -6%;
	animation-delay: 4s;
}

@keyframes nxFloat {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(40px, -30px); }
}

/* =========================================================
 * BUTON FLOATING
 * ========================================================= */
.nx-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(13, 15, 26, 0.7);
	border: 1px solid rgba(79, 227, 255, 0.4);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-radius: 8px;
	color: var(--nx-white);
	font-family: var(--nx-font-body);
	font-weight: 500;
	font-size: 0.8125rem;
	text-decoration: none;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nx-back:hover,
.nx-back:focus-visible {
	border-color: var(--nx-cyan);
	box-shadow: 0 0 20px rgba(79, 227, 255, 0.35);
}

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

.nx-brandmark {
	position: fixed;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 100;
	font-family: var(--nx-font-heading);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.15em;
	color: var(--nx-cyan);
	text-shadow: 0 0 12px rgba(79, 227, 255, 0.6);
}

/* =========================================================
 * REVEAL
 * ========================================================= */
.nexora [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* =========================================================
 * HERO
 * ========================================================= */
.nx-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.nx-hero__grid {
	grid-template-columns: 1fr;
	display: grid;
	gap: 2.5rem;
	align-items: center;
	position: relative;
	z-index: 2;
	width: 100%;
}

.nx-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--nx-font-body);
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--nx-cyan);
	margin-bottom: 1rem;
}

.nx-hero__eyebrow::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--nx-cyan);
	box-shadow: 0 0 10px var(--nx-cyan);
}

.nx-hero__title {
	font-size: clamp(2.5rem, 6.5vw + 1rem, 5rem);
	color: var(--nx-white);
}

.nx-hero__subtitle {
	font-family: var(--nx-font-body);
	text-transform: none;
	font-weight: 400;
	font-size: clamp(1rem, 1.1vw + 0.6rem, 1.125rem);
	color: var(--nx-grey);
	max-width: 30rem;
	margin-top: 1.5rem;
}

.nx-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 1rem 2rem;
	background: linear-gradient(120deg, var(--nx-blue), var(--nx-purple));
	color: var(--nx-white);
	font-family: var(--nx-font-heading);
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	margin-top: 2.25rem;
	box-shadow: 0 0 24px rgba(79, 124, 255, 0.4);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nx-btn:hover,
.nx-btn:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 0 32px rgba(155, 92, 255, 0.55);
}

/* Produs cu rotatie 3D lenta si continua */
.nx-hero__product {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	perspective: 1200px;
}

.nx-hero__product-frame {
	width: min(80%, 340px);
	aspect-ratio: 3 / 4;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid rgba(79, 227, 255, 0.35);
	box-shadow: 0 0 60px rgba(79, 124, 255, 0.35), 0 0 120px rgba(155, 92, 255, 0.2);
	animation: nxRotate3d 9s ease-in-out infinite;
	transform-style: preserve-3d;
}

.nx-hero__product-frame img,
.nx-hero__product-frame video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@keyframes nxRotate3d {
	0%, 100% { transform: rotateY(-6deg) rotateX(2deg); }
	50% { transform: rotateY(6deg) rotateX(-2deg); }
}

/* =========================================================
 * STATS
 * ========================================================= */
.nx-stats {
	border-top: 1px solid rgba(79, 124, 255, 0.2);
	border-bottom: 1px solid rgba(79, 124, 255, 0.2);
}

.nx-stats__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	text-align: center;
	position: relative;
	z-index: 1;
}

.nx-stat__value {
	display: block;
	font-family: var(--nx-font-heading);
	font-size: clamp(2.5rem, 5vw + 1rem, 3.5rem);
	color: var(--nx-cyan);
	text-shadow: 0 0 16px rgba(79, 227, 255, 0.5);
}

.nx-stat__label {
	font-family: var(--nx-font-body);
	text-transform: none;
	color: var(--nx-grey);
	font-size: 0.875rem;
	margin-top: 0.5rem;
}

/* =========================================================
 * PRODUSE — carduri glass cu glow border pe hover + tilt
 * ========================================================= */
.nx-products__header {
	text-align: center;
	max-width: 34rem;
	margin: 0 auto 3rem;
}

.nx-products__eyebrow {
	color: var(--nx-purple);
	font-family: var(--nx-font-body);
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.nx-products__header h2 {
	font-size: clamp(2rem, 3.5vw + 1rem, 2.75rem);
	margin-block: 0.5rem 0.75rem;
}

.nx-products__header p {
	font-family: var(--nx-font-body);
	text-transform: none;
	color: var(--nx-grey);
	font-size: 0.9375rem;
}

.nx-products__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.nx-product {
	perspective: 900px;
}

.nx-product__inner {
	background: rgba(18, 20, 34, 0.6);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	overflow: hidden;
	transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
	transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nx-product:hover .nx-product__inner {
	border-color: var(--nx-cyan);
	box-shadow: 0 0 40px rgba(79, 227, 255, 0.25);
}

.nx-product__image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--nx-charcoal);
}

.nx-product__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nx-product__body {
	padding: 1.5rem;
}

.nx-product h3 {
	font-size: 1.0625rem;
	margin-bottom: 0.5rem;
}

.nx-product p {
	font-family: var(--nx-font-body);
	text-transform: none;
	color: var(--nx-grey);
	font-size: 0.875rem;
}

/* =========================================================
 * MANIFEST
 * ========================================================= */
.nx-quote {
	text-align: center;
}

.nx-quote p {
	font-family: var(--nx-font-heading);
	text-transform: none;
	font-weight: 700;
	font-size: clamp(1.375rem, 2.6vw + 0.6rem, 2.125rem);
	max-width: 42rem;
	margin-inline: auto;
	line-height: 1.4;
	color: var(--nx-white);
}

.nx-quote span {
	color: var(--nx-cyan);
}

/* =========================================================
 * CTA FINAL
 * ========================================================= */
.nx-cta {
	text-align: center;
}

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

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

/* =========================================================
 * FOOTER
 * ========================================================= */
.nx-footer {
	background: var(--nx-charcoal);
	color: var(--nx-grey);
	text-align: center;
	padding-block: 2.5rem;
	font-size: 0.8125rem;
	border-top: 1px solid rgba(79, 124, 255, 0.15);
	position: relative;
	z-index: 1;
}

.nx-footer__brand {
	font-family: var(--nx-font-heading);
	color: var(--nx-cyan);
	font-size: 1.25rem;
	letter-spacing: 0.1em;
	margin-bottom: 0.5rem;
}

.nx-footer__note {
	margin-top: 0.75rem;
	color: rgba(237, 239, 250, 0.25);
	font-size: 0.75rem;
}

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

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

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

@media (min-width: 860px) {
	.nx-hero__grid {
		grid-template-columns: 1.1fr 0.9fr;
	}

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

@media (prefers-reduced-motion: reduce) {
	.nx-grid-bg,
	.nx-orb,
	.nx-hero__product-frame {
		animation: none;
	}

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