@charset "utf-8";

/* CSS Document */
/* ===================================================== */
/* ROOT */
/* ===================================================== */
:root {
	--pink: #da108f;
	--pink2: #ff4fc3;
	--dark: #1d1d27;
	--text: #666673;
	--light: #faf7fb;
	--border: #eee7f2;
	--shadow:
		0 15px 40px rgba(20, 20, 30, .06);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Outfit', sans-serif;
	background: #f7f5f8;
	color: var(--dark);
	overflow-x: hidden;
}

/* ===================================================== */
/* HERO */
/* ===================================================== */
.hero {
	position: relative;
	overflow: hidden;
	padding: 160px 20px 80px;
	background: radial-gradient(circle at top left, #fff 0%, #fcf9ff 35%, #f5f3f7 100%);
}

.hero::before {
	content: "";
	position: absolute;
	right: -350px;
	top: -200px;
	width: 900px;
	height: 900px;
	background: radial-gradient(circle, var(--pink2) 0%, transparent 70%);
	opacity: .08;
	border-radius: 50%;
}

.hero-container {
	max-width: 1440px;
	margin: auto;
	position: relative;
	z-index: 2;
}

.hero-top {
	text-align: center;
	margin-bottom: 60px;
}

.hero-top small {
	color: var(--pink);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.hero-top h1 {
	font-size: 56px;
	line-height: 1.2;
	max-width: 830px;
	margin: 20px auto;
	font-weight: 800;
}

.hero-top h1 span {
	color: var(--pink);
}

.hero-top p {
	max-width: 760px;
	margin: auto;
	color: var(--text);
	font-size: 20px;
	line-height: 1.7;
}

/* ===================================================== */
/* SUBTITLE */
/* ===================================================== */
.section-title p {
	display: block;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #b8aebe;
	margin-top: 70px;
	margin-bottom: 8px;
	text-align: center;
}

.section-title h2 {
	font-size: 42px;
	line-height: 1.1;
	font-weight: 700;
	color: #1b1d3a;
	text-align: center;
	margin-bottom: 30px;
}

/* ===================================================== */
/* STATS */
/* ===================================================== */
.stats {
	margin-top: 60px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: #fff;
	border-radius: 30px;
	overflow: hidden;
	box-shadow: var(--shadow);
}

.stat {
	padding: 35px;
	display: flex;
	align-items: center;
	gap: 20px;
	border-right: 1px solid #f0edf3;
}

.stat:last-child {
	border-right: none;
}

.stat i {
	width: 75px;
	height: 75px;
	border-radius: 22px;
	background: #fff0fa;
	color: var(--pink);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
}

.stat h3 {
	font-size: 32px;
	font-weight: 800;
}

.stat span {
	display: block;
	margin-top: 4px;
	color: var(--text);
}

/* ===================================================== */
/* FILTER */
/* ===================================================== */
.filters {
	margin: 60px 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.filters button {
	border: none;
	padding: 14px 26px;
	border-radius: 50px;
	background: #fff;
	cursor: pointer;
	font-family: 'Outfit';
	font-weight: 600;
	transition: .35s;
	box-shadow:
		0 5px 18px rgba(0, 0, 0, .03);
}

.filters button:hover,
.filters button.active {
	background:
		linear-gradient(135deg, var(--pink), var(--pink2));
	color: #fff;
	transform: translateY(-2px);
}

/* ===================================================== */
/* GRID */
/* ===================================================== */
.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

/* ===================================================== */
/* CARD */
/* ===================================================== */
.card {
	background: #fff;
	border-radius: 30px;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow:
		0 10px 35px rgba(0, 0, 0, .03);
	transition: .4s;
}

.card:hover {
	transform: translateY(-10px);
	box-shadow:
		0 25px 70px rgba(233, 60, 172, .15);
}

.card-top {
	padding: 28px 28px 12px;
}

.client-logo {
	max-width: 180px;
	height: 60px;
	object-fit: contain;
}

/* ===================================================== */
/* IMAGE */
/* ===================================================== */
.card-image {
	position: relative;
	margin: 20px 20px 20px;
	overflow: hidden;
	border-radius: 20px;
	cursor: pointer;
}

.card-image img {
	width: 100%;
	display: block;
	transition: 1s;
}

.card:hover .card-image img {
	transform: scale(1.06);
}

.card-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top,
			rgba(233, 60, 172, .25),
			transparent);
	opacity: 0;
	transition: .4s;
}

.card:hover .card-image::after {
	opacity: 1;
}

/* ===================================================== */
/* OVERLAY */
/* ===================================================== */
.overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top,
			rgba(233, 60, 172, .92),
			rgba(233, 60, 172, 0));
	display: flex;
	align-items: flex-end;
	padding: 30px;
	opacity: 0;
	transition: .4s;
}

.card:hover .overlay {
	opacity: 1;
}

.overlay a {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* ===================================================== */
/* CONTENT */
/* ===================================================== */
.card-content {
	padding: 25px 28px 30px;
}

.badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.badges span {
	background: #fff1fa;
	color: var(--pink);
	padding: 8px 14px;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 600;
}

.project-title {
	font-size: 25px;
	font-weight: 700;
	margin-bottom: 10px;
}

.project-text {
	color: var(--text);
	line-height: 1.7;
	margin-bottom: 22px;
	min-height: 90px;
}

/* ===================================================== */
/* PROJECT TYPE */
/* ===================================================== */
.project-type {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-radius: 16px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 22px;
}

.project-type.freelance {
	background: #eef7ff;
	color: #1883df;
}

.project-type.agency {
	background: #fff4ec;
	color: #ff8c29;
}

.project-type.direct {
	background: #effcf5;
	color: #19a369;
}

/* ===================================================== */
/* TECH */
/* ===================================================== */
.tech {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tech span {
	background: #f5f5f7;
	padding: 8px 14px;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 600;
}

/* ========================================= */
/* BUTTON WRAPPER */
/* ========================================= */
.project-buttons {
	display: flex;
	gap: 12px;
	margin-top: 20px;
	flex-wrap: wrap;
}

/* ========================================= */
/* BUTTON BASIS */
/* ========================================= */
.project-buttons a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: 0.3s ease;
}

/* ========================================= */
/* PREVIEW BUTTON */
/* ========================================= */
.btn-preview {
	background: #f5f5f5;
	color: #222;
}

.btn-preview:hover {
	background: #ececec;
	transform: translateY(-2px);
}

/* ========================================= */
/* LIVE BUTTON */
/* ========================================= */
.btn-live {
	background: linear-gradient(90deg, #d946ef, #ec4899);
	color: #fff;
	box-shadow: 0 10px 25px rgba(217, 70, 239, 0.25);
}

.btn-live:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(217, 70, 239, 0.35);
}

.offline {
	color: #999;
}

/* ===================================================== */
/* CTA */
/* ===================================================== */
.cta {
	margin-top: 90px;
	background: #fff;
	border-radius: 35px;
	padding: 50px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
	box-shadow: var(--shadow);
}

.cta-left {
	display: flex;
	align-items: center;
	gap: 28px;
}

.cta-icon {
	width: 95px;
	height: 95px;
	border-radius: 30px;
	background:
		linear-gradient(135deg, var(--pink), var(--pink2));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 34px;
}

.cta h2 {
	font-size: 46px;
	margin-bottom: 10px;
}

.cta h2 span {
	color: var(--pink);
}

.cta p {
	color: var(--text);
	line-height: 1.7;
}

.cta-btn {
	background:
		linear-gradient(135deg, var(--pink), var(--pink2));
	color: #fff;
	text-decoration: none;
	padding: 20px 40px;
	border-radius: 18px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	transition: .3s;
}

.cta-btn:hover {
	transform: translateY(-3px);
}

/* ===================================================== */
/* MODAL */
/* ===================================================== */
.portfolio-modal {
	position: fixed;
	inset: 0;
	background:
		rgba(10, 10, 20, .92);
	backdrop-filter: blur(8px);
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: .4s;
	z-index: 99999;
	padding: 40px;
}

.portfolio-modal.active {
	opacity: 1;
	visibility: visible;
}

.portfolio-modal img {
	display: block;
	max-width: 92vw;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 28px;
}

.portfolio-modal.active img {
	transform: scale(1);
}

.close-modal {
	position: absolute;
	top: 30px;
	right: 30px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 24px;
	transition: .3s;
}

.close-modal:hover {
	transform: rotate(90deg);
	background: var(--pink);
	color: #fff;
}

.portfolio-modal {
	cursor: pointer;
}

.portfolio-modal img {
	cursor: auto;
}

.portfolio-modal {
	display: flex;
}

.overlay {
	z-index: 5;
}

.card-image img {
	position: relative;
	z-index: 1;
}

/* ===================================================== */
/* RESPONSIVE */
/* ===================================================== */
@media(max-width:1200px) {
	.portfolio-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero-top h1 {
		font-size: 58px;
	}
}

@media(max-width:900px) {
	nav {
		display: none;
	}

	.stats {
		grid-template-columns: 1fr 1fr;
	}

	.cta {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media(max-width:700px) {
	.portfolio-grid {
		grid-template-columns: 1fr;
	}

	.stats {
		grid-template-columns: 1fr;
	}

	.hero-top h1 {
		font-size: 42px;
	}

	.hero {
		padding-top: 90px;
	}

	.cta {
		padding: 35px;
	}

	.cta-left {
		flex-direction: column;
		align-items: flex-start;
	}

	.cta h2 {
		font-size: 34px;
	}

	.portfolio-modal {
		padding: 20px;
	}

	.close-modal {
		width: 50px;
		height: 50px;
		top: 15px;
		right: 15px;
	}
}