:root {
	--bg: #0a0a0a;
	--panel: #0000002e;
	--fg: #fff;
	--muted: #bbb;
	--glass: rgba(255, 255, 255, 0.03);
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Roboto, "Helvetica Neue", Arial;
}

header.topbar {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	backdrop-filter: blur(6px);
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	z-index: 40;
}

.brand {
	display: flex;
	gap: 12px;
	align-items: center;
}

.logo-placeholder {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: linear-gradient(180deg, #111 0, #222 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--fg);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

nav.topnav {
	display: flex;
	gap: 18px;
}

nav.topnav a {
	color: var(--fg);
	text-decoration: none;
	font-weight: 600;
	opacity: 0.95;
}

main {
	padding-top: 84px;
	max-width: 1200px;
	margin: 0 auto;
}

.hero {
	display: flex;
	gap: 30px;
	padding: 48px 20px 30px;
	align-items: center;
}

.hero .left {
	flex: 1;
}

.hero h1 {
	font-size: 38px;
	margin: 0 0 6px;
	background: linear-gradient(90deg, #802323, #ff9408, #ffc400, #ffffff, #bf0000, #9b59b6);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: pulseSweep 4s linear infinite;
}

.hero p {
	margin: 0;
	color: var(--muted);
}

.cta {
	margin-top: 16px;
	display: inline-block;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--panel);
	color: var(--fg);
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.04);
}

.cols {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 20px;
	padding: 0 20px 40px;
}

.card {
	background: var(--panel);
	padding: 18px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.04);
}

.profile h3 {
	margin: 0 0 6px;
}

.aliases {
	color: var(--muted);
	font-size: 13px;
	margin-bottom: 8px;
}

.skills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.skill {
	background: var(--glass);
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 13px;
	color: var(--fg);
	border: 1px solid rgba(255, 255, 255, 0.03);
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}

.project {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
	padding: 14px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.03);
}

.project h4 {
	margin: 0 0 8px;
}

.project p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

footer {
	padding: 12px 20px;
	text-align: center;
	color: var(--muted);
	border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.textInputWrapper {
	position: relative;
	width: 100%;
	margin-bottom: 10px;
	--accent-color: #8e44ad;
}

.textInputWrapper:before {
	transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
	border-bottom: 1px solid rgba(0, 0, 0, 0.42);
}

.textInputWrapper:before,
.textInputWrapper:after {
	content: "";
	left: 0;
	right: 0;
	position: absolute;
	pointer-events: none;
	bottom: -1px;
	z-index: 4;
	width: 100%;
}

.textInputWrapper:focus-within:before {
	border-bottom: 1px solid var(--accent-color);
}

.textInputWrapper:before {
	transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
	border-bottom: 1px solid rgba(0, 0, 0, 0.42);
}

.textInputWrapper:focus-within:before {
	border-bottom: 1px solid var(--accent-color);
	transform: scaleX(1);
}

.textInputWrapper:focus-within:after {
	border-bottom: 2px solid var(--accent-color);
	transform: scaleX(1);
}

.textInputWrapper:after {
	content: "";
	transform: scaleX(0);
	transition: transform 250ms cubic-bezier(0, 0, 0.2, 1) 0ms;
	will-change: transform;
	border-bottom: 2px solid var(--accent-color);
	border-bottom-color: var(--accent-color);
}

.textInput::placeholder {
	transition: opacity 250ms cubic-bezier(0, 0, 0.2, 1) 0ms;
	opacity: 1;
	user-select: none;
	color: rgba(255, 255, 255, 0.582);
}

.textInputWrapper .textInput {
	box-shadow: 0px 2px 5px rgb(35 35 35 / 30%);
	max-height: 36px;
	background-color: #141414;
	transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
	transition-duration: 200ms;
	transition-property: background-color;
	color: #e8e8e8;
	font-size: 14px;
	font-weight: 500;
	padding: 12px;
	width: 100%;
	border-left: none;
	border-bottom: none;
	border-right: none;
}

.textInputWrapper .textInput:focus,
.textInputWrapper .textInput:active {
	outline: none;
}

.textInputWrapper:focus-within .textInput::placeholder {
	opacity: 0;
}

.buttonse {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 12px;
	min-height: 36px;
	background-color: #141414;
	color: #e8e8e8;
	border: 1px solid rgba(255, 255, 255, 0.04);
	box-shadow: 0px 2px 5px rgba(35, 35, 35, 0.3);
	cursor: pointer;
	transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.text {
	width: 70%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgb(27, 27, 27);
	color: white;
}

.arrow path {
	fill: rgb(19, 19, 19);
}

@keyframes slide-in-left {
	0% {
		transform: translateX(-8px);
		opacity: 0;
	}

	100% {
		transform: translateX(0px);
		opacity: 1;
	}
}

.buttonse:hover {
	background-color: #1a1a1a;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.45);
}

.buttonse:active {
	transform: scale(0.98);
}

.buttonse:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(142, 68, 173, 0.08);
}

.cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 8px;
	background-color: #141414;
	color: #e8e8e8;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.04);
	box-shadow: 0px 2px 5px rgba(35, 35, 35, 0.3);
	transition: background 0.12s ease, transform 0.12s ease;
}

html,
body {
	overflow-x: hidden;
}

canvas {
	max-width: 100% !important;
	display: block;
}

.lil-gui {
	max-width: 0 !important;
	overflow: hidden !important;
	display: none !important;
}

.cta:hover {
	transform: scale(1.1);
}

.gradient-text {
	background: linear-gradient(90deg, #9b59b6, #8e44ad, #d298e0, #ffffff, #8e44ad, #9b59b6);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.dynamic-purple {
	background: linear-gradient(90deg, #9b59b6, #8e44ad, #d298e0, #ffffff, #8e44ad, #9b59b6);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: gradientShift 5s infinite;
}

@keyframes gradientShift {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

.get-in-touch {
	animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.card {
	animation: none;
	border: 1px solid rgba(255, 255, 255, 0.04);
}

.Vorosium-layers {
	margin-top: 20px;
	text-align: center;
}

.layers-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	margin-top: 20px;
}

.layer {
	padding: 10px 20px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	width: 80%;
	text-align: center;
	font-size: 16px;
	color: var(--fg);
}

.Vorosium-advertisement {
	text-align: center;
}

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.feature {
	padding: 10px 20px;
	background: rgb(8 8 8 / 0%);
	border: 1px solid #9764c7;
	border-radius: 8px;
	text-align: center;
	color: var(--fg);
}

.cta-container {
	margin-top: 20px;
	display: flex;
	justify-content: center;
	gap: 20px;
}

.cta {
	padding: 10px 20px;
	background-color: #141414;
	color: #e8e8e8;
	text-decoration: none;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.04);
	box-shadow: 0px 2px 5px rgba(35, 35, 35, 0.3);
	transition: background 0.12s ease, transform 0.12s ease;
}

.cta:hover {
	background-color: #1a1a1a;
	transform: translateY(-1px);
}

.card#contact::before,
.card#contact::after {
	display: none;
}

#particleCanvas {
	display: block;
	margin: 0 auto;
	background: rgba(0, 0, 0, 0.8);
	border-radius: 8px;
}

@keyframes fadeInSlide {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@media(max-width: 900px) {
	header.topbar .brand div:nth-child(2) {
		display: none;
	}

	nav.topnav {
		display: flex;
		gap: 12px;
	}

	nav.topnav a {
		display: none;
	}

	nav.topnav a[href="#logo"],
	nav.topnav a[href="#about"],
	nav.topnav a[href="#contact"] {
		display: inline;
	}

	.terminal-wrap {
		display: none;
	}
}

html,
body {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
	display: none;
}

.otm-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(2, 2, 2, 0.6);
	z-index: 99998;
}

#otmModal.otm-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
}

#otmModal.otm-modal.open {
	display: flex;
}

#otmModal.otm-modal .otm-backdrop {
	position: absolute;
	inset: 0;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	background: rgba(0, 0, 0, 0.45);
	z-index: 99990;
}

#otmModal.otm-modal .otm-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	position: relative;
	z-index: 99995;
}

#otmModal.otm-modal .otm-close {
	background: transparent;
	border: none;
	color: var(--fg);
	font-size: 18px;
	cursor: pointer;
	padding: 6px;
	border-radius: 6px;
}

#otmModal.otm-modal .otm-close:hover {
	background: rgba(255, 255, 255, 0.02);
}

#otmModal.otm-modal .otm-body {
	width: 100%;
	max-width: 920px;
	background: var(--panel, #0b0b0b);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
	border-radius: 14px;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.04);
	color: var(--fg);
	font-size: 16px;
	position: relative;
	z-index: 99995;
	max-height: 80vh;
	overflow: auto;
}

#otmModal.otm-modal .otm-controls {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 16px;
}

#otmModal.otm-modal .otm-control-row {
	margin-top: 12px;
}

#otmModal.otm-modal .textInput {
	width: 100%;
	padding: 14px;
	border-radius: 10px;
	background: #141414;
	color: #e8e8e8;
	box-shadow: 0 4px 12px rgba(25, 25, 25, 0.4);
	border: none;
}

#otmModal.otm-modal .otm-error {
	color: #f66;
	font-size: 13px;
	min-height: 18px;
}

#otmModal.otm-modal .otm-revealed {
	margin-top: 0px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--fg);
	white-space: pre-wrap;
}

#otmModal.otm-modal .buttonse {
	min-width: 160px;
	padding: 12px 16px;
}

.shine {
	position: relative;
	display: inline-block;
	color: inherit;
}

.shine::after {
	content: attr(data-text);
	position: absolute;
	inset: 0;

	color: transparent;
	-webkit-text-stroke: 0.5px transparent;

	background-image: linear-gradient(90deg,
			transparent 40%,
			rgba(255, 255, 255, 1) 50%,
			transparent 60%);
	background-size: 200% 100%;
	background-position: -150% 0;

	-webkit-background-clip: text;
	background-clip: text;

	pointer-events: none;
	animation: shine 5s infinite;
}

@keyframes shine {
	0% {
		background-position: -150% 0;
	}

	20% {
		background-position: 50% 0;
	}

	50% {
		background-position: 90% 0;
	}

	100% {
		background-position: 150% 0;
	}
}

#title {
	font-family: 'Arial Black', sans-serif;
	display: flex;
	font-size: 2rem;
	justify-content: center;
	align-items: center;
}

#title span,
.gear {
	display: inline-flex;
	transform-origin: center center;
	align-items: center;
	justify-content: center;
}

.gear svg {
	width: 1em;
	height: 1em;
	vertical-align: middle;
	fill: currentColor;
}

@keyframes fadeIn {
	0% {
		opacity: 0;
		transform: translateX(-10px);
	}

	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

ul li:hover {
	color: #ffd54f;
	transform: scale(1.05);
	transition: all 0.3s ease;
}

.gradient {
	background: linear-gradient(90deg, #20d9cd, #3c6fad, #156be4, #ffffff, #10367c, #5988b6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: bold;
}

@media (max-width: 900px) {
	.hero {
		flex-direction: column;
	}

	.cols {
		grid-template-columns: 1fr;
	}

	.cta-container {
		flex-direction: column;
	}
}

@media (max-width: 768px) {
	nav.topnav {
		flex-wrap: wrap;
	}

	.projects-grid {
		grid-template-columns: 1fr;
	}

	.features {
		grid-template-columns: 1fr;
	}

	.layers-container {
		width: 100%;
	}

	.layer {
		width: 100%;
	}
}

@media (max-width: 600px) {
	header.topbar {
		flex-wrap: wrap;
	}

	.hero h1 {
		font-size: 28px;
	}

	main {
		padding-top: 72px;
	}
}

@media (max-width: 480px) {
	.brand {
		gap: 8px;
	}

	.logo-placeholder {
		flex-shrink: 0;
	}

	canvas,
	#particleCanvas {
		width: 100%;
		height: auto;
	}
}
  .frame {
    width: min(90vw, 900px);
    aspect-ratio: 16 / 9;
    animation: breathe 6s ease-in-out infinite;
  }

  @keyframes breathe {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.015); }
    100% { transform: scale(1); }
  }

  .pixel-fade {
    scale: 0.9;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    image-rendering: pixelated;

    -webkit-mask-image: 
      linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%);
    -webkit-mask-composite: intersect;

    mask-image: 
      linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%);
    mask-composite: intersect;
  }