/* ===============================
   NiceGuy.gg — Design System
   =============================== */

:root {
	/* Brand Colors */
	--bg-main: #02040A;
	--bg-card: #101320;
	--accent-purple: #8A2BE2;
	--accent-pink: #FF00FF;
	--accent-blue: #00E5FF;
	--text-main: #FFFFFF;
	--text-muted: #9CA3AF;

	/* Surfaces and Effects */
	--surface-1: rgba(255, 255, 255, 0.04);
	--surface-2: rgba(255, 255, 255, 0.06);
	--border-soft: rgba(255, 255, 255, 0.08);
	--shadow-1: 0 10px 30px rgba(0, 0, 0, 0.35);
	--shadow-2: 0 20px 50px rgba(0, 0, 0, 0.45);

	/* Typography */
	--font-heading: "Orbitron", "Rajdhani", sans-serif;
	--font-body: "Poppins", "Inter", system-ui, sans-serif;

	/* Layout */
	--container: 1200px;
	--radius-lg: 16px;
	--radius-md: 12px;
	--radius-sm: 10px;
	--gap: 24px;
	--section-y: 96px;
	--section-y-mobile: 72px;

	/* Buttons */
	--btn-radius: 12px;
}

/* Resets */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }

html { scroll-behavior: smooth; }

body {
	background: radial-gradient(1200px 600px at 80% -10%, rgba(138, 43, 226, 0.15), transparent 60%),
	            radial-gradient(1200px 600px at 10% 110%, rgba(0, 229, 255, 0.15), transparent 60%),
	            var(--bg-main);
	color: var(--text-main);
	font-family: var(--font-body);
	line-height: 1.65;
	letter-spacing: 0.15px;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

.section {
	padding: var(--section-y) 0;
}

@media (max-width: 768px) {
	.section {
		padding: var(--section-y-mobile) 0;
	}
}

.section-header {
	text-align: center;
	max-width: 780px;
	margin: 0 auto 36px;
}

.section-header h2 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 28px;
	letter-spacing: 0.5px;
	margin: 0 0 12px;
	background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink) 50%, var(--accent-purple));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.section-header p {
	color: var(--text-muted);
	margin: 0;
}

.section-separator {
	height: 1px;
	margin-top: 64px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Sticky Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: saturate(120%) blur(10px);
	background: rgba(2, 4, 10, 0.6);
	border-bottom: 1px solid var(--border-soft);
	transition: box-shadow 220ms ease, background 220ms ease;
}

.site-header.scrolled {
	background: rgba(2, 4, 10, 0.75);
	box-shadow: var(--shadow-1);
}

.nav-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.logo-accent {
	width: 18px;
	height: 18px;
	border-radius: 6px;
	background: conic-gradient(from 180deg, var(--accent-blue), var(--accent-pink), var(--accent-purple), var(--accent-blue));
	box-shadow: 0 0 20px rgba(255, 0, 255, 0.35), 0 0 30px rgba(0, 229, 255, 0.25);
}

.logo-text {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 20px;
	color: var(--text-main);
}

.logo-text .dot {
	color: var(--accent-blue);
	text-shadow: 0 0 14px rgba(0, 229, 255, 0.65);
}

.nav {
	display: flex;
	align-items: center;
	gap: 18px;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--border-soft);
	background: var(--surface-1);
	color: var(--text-main);
	cursor: pointer;
}

.hamburger {
	display: inline-block;
	position: relative;
	width: 22px;
	height: 14px;
}
.hamburger span {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
	border-radius: 2px;
	transform-origin: center;
	transition: transform 200ms ease, opacity 200ms ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 6px; }
.hamburger span:nth-child(3) { bottom: 0; }

body.menu-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-list {
	display: flex;
	align-items: center;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-list a {
	color: var(--text-muted);
	text-decoration: none;
	font-weight: 500;
	padding: 8px 10px;
	border-radius: 8px;
	transition: color 160ms ease, background 160ms ease;
}

.nav-list a:hover {
	color: var(--text-main);
	background: var(--surface-1);
}

.nav-cta { white-space: nowrap; }

@media (max-width: 768px) {
	.nav-container {
		flex-wrap: wrap;
		gap: 10px;
		padding: 10px 0;
	}
	.logo-text { font-size: 18px; }
	.nav {
		order: 2;
		width: 100%;
		justify-content: space-between;
	}
	.nav-toggle { display: inline-flex; }
	.nav-list {
		gap: 8px;
		display: none;           /* hidden until toggled */
		flex-direction: column;
		width: 100%;
		background: rgba(16, 19, 32, 0.96);
		border: 1px solid var(--border-soft);
		border-radius: 12px;
		padding: 10px;
		margin-top: 8px;
	}
	body.menu-open .nav-list { display: flex; }
	.nav-list li { display: block; }
	.nav-list a { padding: 12px; display: block; }
	.nav-cta { display: none; } /* hide large CTA on small screens */
}

.btn-sm { padding: 10px 14px; font-size: 14px; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-weight: 600;
	text-decoration: none;
	color: var(--text-main);
	padding: 12px 18px;
	border-radius: var(--btn-radius);
	transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, background 160ms ease, border-color 160ms ease;
	border: 1px solid transparent;
	cursor: pointer;
	will-change: transform;
}

.btn-primary {
	background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink) 55%, var(--accent-blue));
	box-shadow:
		0 8px 22px rgba(138, 43, 226, 0.35),
		0 10px 24px rgba(255, 0, 255, 0.25),
		inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
	transform: translateY(-1px) scale(1.02);
	box-shadow:
		0 10px 26px rgba(138, 43, 226, 0.45),
		0 12px 28px rgba(255, 0, 255, 0.35),
		0 0 30px rgba(0, 229, 255, 0.35);
	filter: saturate(1.15);
}

.btn-outline {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.18);
}

.btn-outline:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.28);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
	background: var(--surface-1);
	border-color: rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
	background: var(--surface-2);
}

/* Hero */
.hero {
	padding-top: 140px;
	padding-bottom: 96px;
	background:
		radial-gradient(600px 220px at 30% -10%, rgba(138, 43, 226, 0.25), transparent 70%),
		radial-gradient(700px 240px at 90% 10%, rgba(0, 229, 255, 0.2), transparent 70%);
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	align-items: center;
}

@media (max-width: 980px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}
}

.hero-title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 36px;
	line-height: 1.2;
	margin: 0 0 14px;
	text-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
}

.hero-subtitle {
	color: var(--text-muted);
	margin: 0 0 20px;
}

.hero-highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}

.pill {
	padding: 8px 12px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 13px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
	border: 1px solid var(--border-soft);
	color: var(--text-main);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual .visual-card {
	background: linear-gradient(160deg, rgba(138, 43, 226, 0.16), rgba(0, 229, 255, 0.1));
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-lg);
	padding: 32px;
	box-shadow: var(--shadow-2);
	position: relative;
	min-height: 320px;
	display: grid;
	place-items: center;
}

.avatar-wrapper {
	position: relative;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.avatar-bg {
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: radial-gradient(circle at center,
		rgba(0, 229, 255, 0.4) 0%,
		rgba(138, 43, 226, 0.35) 45%,
		rgba(2, 4, 10, 1) 100%);
	box-shadow:
		0 0 26px rgba(0, 229, 255, 0.45),
		0 0 52px rgba(138, 43, 226, 0.35);
	z-index: 1;
}

.avatar-image {
	position: relative;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	object-fit: cover;
	z-index: 2;
	box-shadow:
		inset 0 0 40px rgba(0, 0, 0, 0.45),
		0 0 32px rgba(0, 229, 255, 0.3);
}

.status-badge {
	position: absolute;
	bottom: 16px;
	left: 16px;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(6px);
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 12px;
	border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Avatar Animations */
@keyframes avatarGlowPulse {
	0% {
		transform: scale(1);
		box-shadow:
			0 0 22px rgba(0, 229, 255, 0.35),
			0 0 44px rgba(138, 43, 226, 0.25);
		opacity: 0.9;
	}
	50% {
		transform: scale(1.04);
		box-shadow:
			0 0 34px rgba(0, 229, 255, 0.55),
			0 0 65px rgba(138, 43, 226, 0.4);
		opacity: 1;
	}
	100% {
		transform: scale(1);
		box-shadow:
			0 0 22px rgba(0, 229, 255, 0.35),
			0 0 44px rgba(138, 43, 226, 0.25);
		opacity: 0.9;
	}
}

@keyframes avatarRingSweep {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

.avatar-bg {
	background: radial-gradient(circle at center,
		rgba(0, 229, 255, 0.4) 0%,
		rgba(138, 43, 226, 0.35) 40%,
		rgba(2, 4, 10, 1) 100%);
	background-size: 160% 160%;
	animation:
		avatarGlowPulse 6s ease-in-out infinite,
		avatarRingSweep 14s linear infinite;
}

.avatar-image {
	animation: avatarGlowPulse 8s ease-in-out infinite;
}

/* Cards and Grids */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 980px) {
	.cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.cards-grid { grid-template-columns: 1fr; }
}

.card {
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-lg);
	padding: 18px;
	box-shadow: var(--shadow-1);
}

.card h3 {
	margin: 10px 0 8px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
}

.card p {
	color: var(--text-muted);
	margin: 0 0 10px;
}

.card-icon {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(138, 43, 226, 0.22), rgba(0, 229, 255, 0.18));
	border: 1px solid var(--border-soft);
}

.card-actions {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.feature-list {
	list-style: none;
	padding: 0;
	margin: 10px 0 0;
	display: grid;
	gap: 6px;
}

.feature-list li {
	position: relative;
	padding-left: 16px;
}

.feature-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
	box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.note {
	color: var(--text-muted);
	font-size: 14px;
	margin: 8px 0 12px;
}

/* Bots grid specific */
.bots-grid .card { min-height: 260px; }

/* GamersArena */
.gamersarena {
	background:
		radial-gradient(800px 300px at 25% 0%, rgba(255, 0, 255, 0.12), transparent 60%),
		radial-gradient(900px 340px at 80% 100%, rgba(0, 229, 255, 0.12), transparent 60%);
}

.ga-features {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 20px;
	list-style: none;
	padding: 0;
	margin: 22px 0 28px;
}

@media (max-width: 640px) {
	.ga-features { grid-template-columns: 1fr; }
}

.ga-features li {
	padding: 12px 14px;
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
}

.ga-highlight {
	text-align: center;
	padding: 22px;
	background: linear-gradient(160deg, rgba(138, 43, 226, 0.12), rgba(0, 229, 255, 0.12));
	border: 1px solid rgba(255, 255, 255, 0.14);
	margin-bottom: 18px;
}

.ga-highlight p {
	margin: 0 0 12px;
	font-weight: 600;
}

.ga-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

@media (max-width: 640px) {
	.ga-stats { grid-template-columns: 1fr; }
}

.stat {
	text-align: center;
	padding: 14px;
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	background: var(--surface-1);
}

.stat span {
	display: block;
	font-family: var(--font-heading);
	font-size: 22px;
	margin-bottom: 4px;
	color: var(--text-main);
	text-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}

/* About */
.about-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 22px;
}

@media (max-width: 980px) {
	.about-grid { grid-template-columns: 1fr; }
}

.about-list ul {
	list-style: none;
	padding: 0;
	margin: 0 0 14px;
	display: grid;
	gap: 8px;
}

.about-list li {
	position: relative;
	padding-left: 18px;
}

.about-list li::before {
	content: "•";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--accent-blue);
	text-shadow: 0 0 14px rgba(0, 229, 255, 0.7);
}

.tagline {
	font-weight: 600;
	background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.meta {
	color: var(--text-muted);
	font-size: 14px;
	margin: 6px 0 10px;
}

/* Services grid specific */
.services-grid .card { min-height: 280px; display: flex; flex-direction: column; }
.services-grid .btn { margin-top: auto; }

/* Portfolio */
.thumb {
	height: 140px;
	border-radius: var(--radius-md);
	margin-bottom: 12px;
	border: 1px solid var(--border-soft);
	background-size: cover;
	background-position: center;
}

.thumb-gradient {
	background: linear-gradient(135deg, rgba(138, 43, 226, 0.18), rgba(255, 0, 255, 0.18), rgba(0, 229, 255, 0.18));
}

.tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.tag {
	font-size: 12px;
	padding: 6px 8px;
	border-radius: 8px;
	border: 1px solid var(--border-soft);
	background: var(--surface-1);
	color: var(--text-muted);
}

/* Social Media */
.social-grid {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
	.social-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
	.social-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.social-grid { grid-template-columns: 1fr; }
}

.social-card {
	min-height: 220px;
	display: flex;
	flex-direction: column;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.social-card:hover {
	transform: translateY(-3px) scale(1.01);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 22px rgba(0, 229, 255, 0.15);
	border-color: rgba(0, 229, 255, 0.25);
}

.social-card .btn { margin-top: auto; }

.social-icon {
	width: 80px;
	height: 80px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	font-family: var(--font-heading);
	font-weight: 700;
	letter-spacing: 0.5px;
	background: linear-gradient(135deg, rgba(138, 43, 226, 0.22), rgba(0, 229, 255, 0.22));
	border: 1px solid var(--border-soft);
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3), 0 0 18px rgba(0, 229, 255, 0.15);
	margin-bottom: 12px;
}

.social-icon img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.25));
}

.social-card--empty p.muted {
	color: var(--text-muted);
	margin-top: auto;
}

.social-thumb {
	height: 140px;
	border-radius: var(--radius-md);
	margin-bottom: 12px;
	border: 1px solid var(--border-soft);
	background-size: cover;
	background-position: center;
}

/* Contact */
.contact-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.contact-form {
	margin: 0 auto;
	max-width: 860px;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-bottom: 12px;
}

@media (max-width: 768px) {
	.form-row { grid-template-columns: 1fr; }
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

label {
	font-weight: 600;
	font-size: 14px;
	color: var(--text-main);
}

input, textarea {
	background: rgba(255, 255, 255, 0.04);
	color: var(--text-main);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	padding: 12px 12px;
	font-family: var(--font-body);
	outline: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder, textarea::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

input:focus, textarea:focus {
	border-color: rgba(0, 229, 255, 0.55);
	box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18);
}

.form-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}

.form-status {
	color: var(--accent-blue);
	font-weight: 600;
	font-size: 14px;
	text-shadow: 0 0 14px rgba(0, 229, 255, 0.55);
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--border-soft);
	padding: 24px 0 40px;
	background: rgba(0, 0, 0, 0.2);
}

.footer-grid {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.footer-right {
	display: flex;
	gap: 14px;
}

.footer-right a {
	color: var(--text-muted);
	text-decoration: none;
}

.footer-right a:hover {
	color: var(--text-main);
}

/* Animations */
@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.reveal {
	opacity: 0;
	animation: fadeUp 680ms ease forwards;
}

.reveal:nth-child(1) { animation-delay: 0.05s; }
.reveal:nth-child(2) { animation-delay: 0.12s; }
.reveal:nth-child(3) { animation-delay: 0.18s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }
.reveal:nth-child(5) { animation-delay: 0.30s; }

/* Anchor offset for sticky header */
section[id] { scroll-margin-top: 84px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.avatar-bg,
	.avatar-image {
		animation: none !important;
	}
}

/* Site frame wrapper */
.site-frame {
	position: relative;
	width: 100%;
	margin: 0 auto;
	z-index: 0; /* create stacking context so frame lines can sit behind */
}

/* Vertical neon frame lines */
.site-frame::before,
.site-frame::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(
		to bottom,
		rgba(138, 43, 226, 0.18) 0%,
		rgba(138, 43, 226, 0.26) 35%,
		rgba(0, 229, 255, 0.26) 65%,
		rgba(0, 229, 255, 0.18) 100%
	);
	box-shadow:
		0 0 14px rgba(138, 43, 226, 0.08),
		0 0 14px rgba(0, 229, 255, 0.08);
	pointer-events: none;
	z-index: -1; /* ensure lines sit behind all site content */
}

/* Left line */
.site-frame::before {
	left: max(12px, calc((100vw - min(var(--container), 100vw - 40px)) / 2 - 24px));
}

/* Right line */
.site-frame::after {
	right: max(12px, calc((100vw - min(var(--container), 100vw - 40px)) / 2 - 24px));
}


