:root {
	--bg-0: #0a0f0a;
	--bg-1: #0f1a0f;
	--acc-1: #4ade80;
	--acc-2: #22c55e;
	--text: #e6f4e6;
	--muted: #9bb59b;
	--stroke: rgba(255,255,255,0.06);
	--ink-mute: #7a8d7a;
	--glass: rgba(15,24,15,.55);
	--shadow-sm: 0 2px 6px rgba(0,0,0,0.55);
	--shadow-md: 0 6px 18px rgba(0,0,0,0.6);
	--shadow-lg: 0 12px 32px rgba(0,0,0,0.7);
	--radius-lg: 24px;
	--radius-md: 16px;
	--radius-sm: 10px;
	--radius:14px;
	--t-fast: 180ms ease;
	--t-slow: 340ms ease;
}

body {
	background:
		radial-gradient(900px 600px at 80% -10%, #1a3a1a33 0%, transparent 70%),
		radial-gradient(900px 600px at -10% 90%, #1f442633 0%, transparent 70%),
		linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
	color: var(--text);
	font-family: 'Segoe UI', Arial, sans-serif;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	transition: background var(--t-slow), color var(--t-fast);
}

header {
	background: var(--bg-0);
	box-shadow: var(--shadow-md);
	padding: 36px 0 22px;
	text-align: center;
	border-bottom-left-radius: var(--radius-lg);
	border-bottom-right-radius: var(--radius-lg);
}
.site-title {
	color: var(--text);
	font-size: 2.6rem;
	font-weight: 800;
	margin: 0 0 8px;
	letter-spacing: 1px;
}
nav {
	display: flex;
	justify-content: center;
	gap: 14px;
}
nav a {
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	font-size: 1.05rem;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--stroke);
	box-shadow: var(--shadow-sm);
	transition: all var(--t-fast);
}
nav a:hover {
	background: linear-gradient(180deg, var(--acc-2), var(--acc-1));
	color: var(--bg-0);
	box-shadow: 0 8px 24px rgba(34,197,94,0.35);
}

main {
	max-width: 1200px;
	margin: 44px auto 0;
	padding: 0 24px;
}
.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 36px;
	margin-bottom: 64px;
}

.card {
	background: var(--bg-0);
	border: 1px solid var(--stroke);
	box-shadow: var(--shadow-sm);
	padding: 22px;
	cursor: pointer;
	transition: transform var(--t-fast), box-shadow var(--t-fast);
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}
.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}
.card-preview {
	width: 100%;
	height: 190px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 14px;
	background: var(--bg-1);
	box-shadow: var(--shadow-sm);
}
.card-main-img, .card-main-video {
	max-width: 100%;
	max-height: 190px;
	border-radius: 12px;
	transition: transform var(--t-slow);
}
.card:hover .card-main-img {
	transform: scale(1.03);
}
.card-title {
	color: var(--text);
	margin-top: 16px;
	font-size: 1.1rem;
	font-weight: 600;
	text-align: center;
}
.card-count {
	position: absolute;
	top: 12px;
	right: 12px;
	background: linear-gradient(180deg, var(--acc-2), var(--acc-1));
	color: var(--bg-0);
	font-size: 0.9rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 12px;
}

.modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(10,15,10,0.92);
	align-items: center;
	justify-content: center;
	flex-direction: column;
	transition: opacity var(--t-slow);
}
.modal.show {
	display: flex;
	animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
.modal .close {
	position: absolute;
	top: 32px;
	right: 44px;
	font-size: 2.2rem;
	color: var(--text);
	cursor: pointer;
	font-weight: 800;
}
.modal-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: var(--bg-1);
	border-radius: 50%;
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	padding: 10px;
}
.modal-arrow-left { left: 28px; }
.modal-arrow-right { right: 28px; }
.modal-main-video, .modal-content {
	background: var(--bg-0);
	max-width: 80vw;
	max-height: 70vh;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
}

.modal-thumbs {
	display: flex;
	gap: 12px;
	margin-top: 18px;
	justify-content: center;
}
.modal-thumb-img {
	width: 54px;
	height: 54px;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: border 0.2s, box-shadow 0.2s;
	background: var(--bg-soft);
	box-shadow: var(--shadow-sm);
}
.modal-thumb-img.active {
	border: 2px solid var(--acc-1);
	box-shadow: 0 2px 8px rgba(74,222,128,0.35);
}

.about-team,
.contact {
	background: var(--bg-1);
	border: 1px solid var(--stroke);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	padding: 32px 26px;
	margin-bottom: 36px;
}
.about-team h2,
.contact h2 {
	color: var(--text);
	font-size: 1.4rem;
	margin: 0 0 12px;
	font-weight: 700;
}
.about-text {
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.6;
}
.contact a {
	color: var(--text);
	text-decoration: none;
	border-bottom: 1px solid var(--text);
	transition: all var(--t-fast);
}
.contact a:hover {
	color: var(--bg-0);
	background: var(--text);
	padding: 2px 6px;
	border-radius: 6px;
}

footer {
	background: var(--bg-0);
	padding: 22px 0;
	text-align: center;
	border-top: 1px solid var(--stroke);
	border-top-left-radius: var(--radius-lg);
	border-top-right-radius: var(--radius-lg);
}
.credit {
	color: var(--ink-mute);
	font-size: 1rem;
}
.coder {
	color: var(--text);
	font-weight: 700;
}
