.neto-portfolio {
	--neto-cols: 4;
	--neto-bg: transparent;
	--neto-card: radial-gradient(circle at center, #1b4452 0%, #0e1c24 58%, #070b10 100%);
	--neto-card-border: #5ec8e0;
	--neto-text: #f4f1ea;
	--neto-muted: #b8c5cc;
	--neto-accent: #5ec8e0;
	--neto-radius: 22px;
	--neto-shadow: none;
	--neto-font: "Vazirmatn FD", Sans-serif;
	font-family: "Vazirmatn FD", Sans-serif;
	direction: rtl;
	color: var(--neto-text);
	box-sizing: border-box;
}

.neto-portfolio *,
.neto-portfolio *::before,
.neto-portfolio *::after {
	box-sizing: border-box;
	font-family: inherit;
}

.neto-portfolio--light {
	--neto-card: radial-gradient(circle at center, #1b4452 0%, #0e1c24 58%, #070b10 100%);
	--neto-card-border: #5ec8e0;
	--neto-text: #f4f1ea;
	--neto-muted: #b8c5cc;
	--neto-accent: #5ec8e0;
	--neto-shadow: none;
}

.neto-grid {
	display: grid;
	grid-template-columns: repeat(var(--neto-cols, 4), minmax(0, 1fr));
	gap: clamp(14px, 2vw, 28px);
}

.neto-filters {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 2px 14px;
	margin-bottom: 18px;
	-webkit-overflow-scrolling: touch;
}

.neto-filter {
	flex: 0 0 auto;
	padding: 9px 16px;
	border: 1px solid rgba(94, 200, 224, 0.35);
	border-radius: 999px;
	color: var(--neto-text);
	background: rgba(14, 28, 36, 0.7);
	cursor: pointer;
	font: inherit;
	white-space: nowrap;
}

.neto-filter:hover,
.neto-filter.is-active {
	border-color: var(--neto-accent);
	color: #071417;
	background: var(--neto-accent);
}

.neto-card[hidden] {
	display: none !important;
}

.neto-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
	min-height: 24px;
}

.neto-pagination[hidden] {
	display: none !important;
}

.neto-pagination__loading {
	display: block;
	color: var(--neto-muted);
	font-size: 14px;
	text-align: center;
}

.neto-pagination__loading::after {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border: 2px solid currentColor;
	border-left-color: transparent;
	border-radius: 50%;
	vertical-align: -1px;
	animation: neto-loading-spin 0.7s linear infinite;
}

@keyframes neto-loading-spin {
	to {
		transform: rotate(360deg);
	}
}

.neto-pagination__btn {
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid rgba(94, 200, 224, 0.35);
	border-radius: 12px;
	color: var(--neto-text);
	background: rgba(14, 28, 36, 0.7);
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.neto-pagination__btn:hover:not(:disabled):not(.is-active) {
	border-color: var(--neto-accent);
	color: var(--neto-accent);
}

.neto-pagination__btn.is-active {
	border-color: var(--neto-accent);
	color: #071417;
	background: var(--neto-accent);
}

.neto-pagination__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.neto-pagination__btn--prev,
.neto-pagination__btn--next {
	font-size: 22px;
	font-weight: 400;
}

.neto-card {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--neto-card);
	border: 1.5px solid var(--neto-card-border);
	border-radius: var(--neto-radius);
	overflow: hidden;
	box-shadow: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	min-width: 0;
	transition: border-color 0.25s ease;
}

.neto-card--cinematic,
.neto-card--photography {
	aspect-ratio: 2 / 3;
}

.neto-card:hover,
.neto-card:focus-visible {
	transform: none;
	box-shadow: none;
	border-color: #8edcf0;
	outline: none;
}

.neto-card__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: transparent;
	aspect-ratio: auto;
	height: 100%;
}

.neto-card--photography .neto-card__media,
.neto-card--webdesign .neto-card__media,
.neto-card--instagram .neto-card__media,
.neto-card--scroll .neto-card__media {
	aspect-ratio: auto;
}

.neto-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.neto-card:not(.neto-card--scroll):hover .neto-card__media img {
	transform: scale(1.06);
}

.neto-card--scroll .neto-card__media img {
	height: auto;
	min-height: 100%;
	object-fit: unset;
	object-position: top center;
	transform: translateY(0);
	transition: transform var(--neto-duration, 8s) linear;
	will-change: transform;
}

.neto-card--scroll:hover .neto-card__media img,
.neto-card--scroll:focus-visible .neto-card__media img {
	transform: translateY(var(--neto-scroll, 0px));
}

.neto-card__placeholder {
	width: 100%;
	height: 100%;
	background: transparent;
}

.neto-card__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(7, 14, 18, 0.62);
	border: 1.5px solid var(--neto-accent);
	backdrop-filter: blur(8px);
	pointer-events: none;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.neto-card__play::after {
	content: "";
	display: block;
	width: 0;
	height: 0;
	margin: 0;
	transform: translateX(2px);
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent var(--neto-accent);
}

.neto-card__hover-hint {
	position: absolute;
	left: 12px;
	right: 12px;
	top: 12px;
	bottom: auto;
	z-index: 3;
	text-align: center;
	font-size: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(10, 10, 12, 0.72);
	color: #f4f1ea;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.neto-card--scroll:hover .neto-card__hover-hint {
	opacity: 1;
}

.neto-card__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0.12) 38%,
		rgba(0, 0, 0, 0.55) 72%,
		rgba(0, 0, 0, 0.88) 100%
	);
}

.neto-card__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 18px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: none;
}

.neto-card__row {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.7;
	color: var(--neto-text);
}

.neto-card__row span {
	color: var(--neto-accent);
	font-weight: 600;
	margin-left: 4px;
}

.neto-card__row--goal {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.neto-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: stretch;
	justify-content: center;
	background: rgba(6, 7, 10, 0.82);
	backdrop-filter: blur(10px);
	padding: 0;
	font-family: "Vazirmatn FD", Sans-serif;
	color-scheme: dark;
}

.neto-modal,
.neto-modal button,
.neto-modal h2,
.neto-modal p,
.neto-modal span,
.neto-modal strong,
.neto-modal div {
	font-family: "Vazirmatn FD", Sans-serif;
}

.neto-modal.is-open {
	display: flex;
}

.neto-modal__dialog {
	width: 100%;
	height: 100%;
	overflow: auto;
	color: #f4f1ea;
	font-family: "Vazirmatn FD", Sans-serif;
	direction: rtl;
	position: relative;
	scrollbar-width: thin;
	scrollbar-color: #3a424c #12141a;
}

.neto-modal__dialog::-webkit-scrollbar,
.neto-modal__web::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

.neto-modal__dialog::-webkit-scrollbar-track,
.neto-modal__web::-webkit-scrollbar-track {
	background: #12141a;
}

.neto-modal__dialog::-webkit-scrollbar-thumb,
.neto-modal__web::-webkit-scrollbar-thumb {
	background: #3a424c;
	border-radius: 10px;
	border: 2px solid #12141a;
}

.neto-modal__dialog::-webkit-scrollbar-thumb:hover,
.neto-modal__web::-webkit-scrollbar-thumb:hover {
	background: #4d5662;
}

.neto-modal__dialog::-webkit-scrollbar-corner,
.neto-modal__web::-webkit-scrollbar-corner {
	background: #12141a;
}

.neto-modal__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: clamp(16px, 3vw, 36px) 64px clamp(16px, 3vw, 36px) clamp(16px, 3vw, 36px);
	min-height: 100%;
	height: 100%;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 24px;
}

.neto-modal__close {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 5;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #49aac4;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.neto-modal__close:hover,
.neto-modal__close:focus-visible {
	background: #3d97b0;
	outline: none;
}

.neto-modal__media-col {
	flex: 1.25 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: calc(100vh - 48px);
	max-height: calc(100vh - 48px);
}

.neto-modal__media {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	width: auto;
	border-radius: 18px;
	overflow: hidden;
	background: #000;
	position: relative;
	align-self: stretch;
	display: flex;
	flex-direction: column;
}

.neto-modal__details {
	flex: 0.9 1 0;
	min-width: 260px;
	max-width: 440px;
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: rgba(18, 20, 26, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: clamp(16px, 2.4vw, 28px);
	scrollbar-width: thin;
	scrollbar-color: #3a424c #12141a;
}

.neto-modal__details::-webkit-scrollbar {
	width: 10px;
}

.neto-modal__details::-webkit-scrollbar-track {
	background: #12141a;
}

.neto-modal__details::-webkit-scrollbar-thumb {
	background: #3a424c;
	border-radius: 10px;
	border: 2px solid #12141a;
}

.neto-modal__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.neto-modal__frame iframe,
.neto-modal__frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.neto-modal__web img {
	width: 100%;
	height: auto;
	display: block;
}

.neto-modal__image {
	position: absolute;
	inset: 0;
	flex: none;
	min-height: 0;
	display: block;
}

.neto-modal__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.neto-modal--photography .neto-modal__media {
	background: #0a0c10;
}

.neto-modal--photography .neto-modal__image {
	display: flex;
	align-items: center;
	justify-content: center;
}

.neto-modal--photography .neto-modal__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.neto-modal--photography .neto-modal__media-col {
	gap: 0;
}

.neto-photo-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-top: 16px;
}

.neto-photo-grid__item {
	position: relative;
	aspect-ratio: 1;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	background: #0d0f14;
	cursor: pointer;
}

.neto-photo-grid__item.is-active {
	border-color: #5ec8e0;
}

.neto-photo-grid__item img,
.neto-photo-grid__item .neto-carousel__ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #12141a;
}

.neto-photo-grid__item .neto-carousel__play {
	width: 28px;
	height: 28px;
}

.neto-modal__web {
	flex: 1;
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: #12141a;
	color-scheme: dark;
	scrollbar-width: thin;
	scrollbar-color: #3a424c #12141a;
}

.neto-modal__gallery {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.neto-modal__gallery-stage {
	position: relative;
	background: #000;
}

.neto-modal__gallery-stage img {
	width: 100%;
	max-height: calc(100vh - 140px);
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.neto-modal__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 22px;
	cursor: pointer;
}

.neto-modal__nav--prev {
	right: 12px;
}

.neto-modal__nav--next {
	left: 12px;
}

.neto-modal__thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 10px;
	background: #0d0f14;
}

.neto-modal__thumbs img {
	width: 64px;
	height: 48px;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
	opacity: 0.65;
	flex: 0 0 auto;
}

.neto-modal__thumbs img.is-active,
.neto-modal__thumbs img:hover {
	opacity: 1;
}

.neto-modal__title {
	margin: 0 0 14px;
	font-size: clamp(1.3rem, 2.4vw, 2rem);
	line-height: 1.4;
}

.neto-modal__meta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-bottom: 16px;
}

.neto-modal__order {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 4px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #49aac4;
	color: #fff !important;
	font-family: "Vazirmatn FD", Sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
	transition: background 0.2s ease;
}

.neto-modal__order:hover,
.neto-modal__order:focus-visible {
	background: #3d97b0;
	color: #fff !important;
	outline: none;
}

.neto-modal__meta-item {
	background: rgba(255, 255, 255, 0.04);
	border-radius: 12px;
	padding: 12px 14px;
}

.neto-modal__meta-item span {
	display: block;
	font-size: 12px;
	color: #b4aea4;
	margin-bottom: 4px;
}

.neto-modal__meta-item strong {
	font-size: 14px;
	font-weight: 600;
	color: #f4f1ea;
}

.neto-modal__desc {
	font-size: 14px;
	font-weight: 600;
	line-height: 2;
	color: #f4f1ea;
}

.neto-modal__meta-item--desc .neto-modal__desc p:last-child,
.neto-modal__meta-item--desc .neto-modal__desc ul:last-child,
.neto-modal__meta-item--desc .neto-modal__desc ol:last-child {
	margin-bottom: 0;
}

.neto-modal__desc p,
.neto-modal__desc ul,
.neto-modal__desc ol {
	margin: 0 0 12px;
}

.neto-modal__desc h1,
.neto-modal__desc h2,
.neto-modal__desc h3,
.neto-modal__desc h4 {
	margin: 0 0 10px;
	color: #f4f1ea;
	line-height: 1.5;
}

.neto-modal__desc ul,
.neto-modal__desc ol {
	padding-right: 1.4em;
}

.neto-modal__desc a {
	color: var(--neto-accent);
}

.neto-modal__desc img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.neto-modal__desc blockquote {
	margin: 0 0 12px;
	padding: 8px 14px;
	border-right: 3px solid var(--neto-accent);
	color: #cfc8bc;
}

.neto-carousel {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	direction: ltr;
}

.neto-carousel__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	border-radius: 12px;
}

.neto-carousel__track {
	display: flex;
	gap: 8px;
	transition: transform 0.3s ease;
	will-change: transform;
}

.neto-carousel__slide {
	position: relative;
	flex: 0 0 calc((100% - 16px) / 3);
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	background: #0d0f14;
	cursor: pointer;
}

.neto-carousel__slide.is-active {
	border-color: #5ec8e0;
}

.neto-carousel__slide img,
.neto-carousel__ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #12141a;
}

.neto-carousel__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(7, 14, 18, 0.62);
	border: 1.5px solid #5ec8e0;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.neto-carousel__play::after {
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent #5ec8e0;
	transform: translateX(2px);
}

.neto-carousel__nav {
	flex: 0 0 auto;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #49aac4;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.neto-carousel__nav[hidden] {
	display: none;
}

.neto-carousel__nav--prev {
	order: -1;
}

.neto-carousel__nav--next {
	order: 1;
}

@media (max-width: 1024px) {
	.neto-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.neto-modal__inner {
		flex-direction: column;
		height: auto;
		min-height: 100%;
		padding: 64px 16px 24px;
	}

	.neto-modal__media-col,
	.neto-modal__media,
	.neto-modal__details {
		flex: none;
		max-width: none;
		max-height: none;
		width: 100%;
		height: auto;
	}

	.neto-modal__media {
		min-height: min(62vh, 560px);
	}

	.neto-carousel__slide {
		flex-basis: calc((100% - 8px) / 2);
	}

	.neto-photo-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.neto-modal__web {
		max-height: min(70vh, 640px);
	}
}

@media (max-width: 767px) {
	.neto-grid {
		grid-template-columns: 1fr;
	}

	.neto-portfolio--photography .neto-grid,
	.neto-portfolio--video .neto-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.neto-modal__inner {
		padding: 60px 12px 28px;
	}

	.neto-card__play {
		width: 54px;
		height: 54px;
	}

	.neto-carousel__slide {
		flex-basis: 100%;
	}

	.neto-photo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
