/**
 * Stylesheet for NewWeb Modern Portfolio and Case Studies.
 */

:root {
	--project-color: #09a8ad;
	--project-color-rgb: 9, 168, 173;
}

/* ==========================================================================
   PORTFOLIO OVERVIEW PAGE (GRID)
   ========================================================================== */

.portfolio-header-section {
	padding: clamp(6rem, 10vw, 9rem) 0 4rem 0;
	background: radial-gradient(circle at 10% 20%, rgba(25, 211, 197, 0.08), transparent 25rem),
	            radial-gradient(circle at 90% 80%, rgba(215, 255, 77, 0.08), transparent 25rem),
	            #f8fbfc;
	text-align: center;
	border-bottom: 1px solid rgba(6, 17, 63, 0.04);
}

.portfolio-header-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px;
}

.portfolio-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: clamp(2.4rem, 6vw, 3.8rem);
	font-weight: 900;
	color: #06113f;
	line-height: 1.1;
	letter-spacing: -1.5px;
	margin-bottom: 16px;
}

.portfolio-subtitle {
	font-size: clamp(1rem, 2vw, 1.2rem);
	color: rgba(6, 17, 63, 0.68);
	line-height: 1.6;
	font-weight: 500;
}

/* Portfolio grid container */
.portfolio-grid-section {
	padding: 80px 0;
	background: #ffffff;
}

.portfolio-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 40px;
}

/* Asymmetric feel on larger screens */
@media (min-width: 992px) {
	.portfolio-grid {
		grid-template-columns: repeat(12, 1fr);
	}
	
	.portfolio-card:nth-child(3n+1) {
		grid-column: span 7;
	}
	.portfolio-card:nth-child(3n+2) {
		grid-column: span 5;
	}
	.portfolio-card:nth-child(3n+3) {
		grid-column: span 12;
	}
	
	/* Adjust height of image container based on width span */
	.portfolio-card:nth-child(3n+1) .portfolio-card-thumbnail-wrap {
		height: 380px;
	}
	.portfolio-card:nth-child(3n+2) .portfolio-card-thumbnail-wrap {
		height: 380px;
	}
	.portfolio-card:nth-child(3n+3) .portfolio-card-thumbnail-wrap {
		height: 480px;
	}
}

/* Portfolio Card */
.portfolio-card {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 252, 0.9));
	border: 1px solid rgba(6, 17, 63, 0.06);
	border-radius: 32px;
	box-shadow: 0 12px 36px rgba(6, 17, 63, 0.02),
	            inset 0 0 0 1px rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	color: inherit;
}

.portfolio-card-thumbnail-wrap {
	margin: 14px;
	border-radius: 22px;
	overflow: hidden;
	height: 250px;
	position: relative;
	background: #f1f5f9;
	box-shadow: 0 8px 20px rgba(6, 17, 63, 0.03);
}

.portfolio-card-thumbnail {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card-content {
	padding: 16px 28px 32px 28px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.portfolio-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.portfolio-card-tag {
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	color: #09a8ad;
	background: rgba(25, 211, 197, 0.08);
	padding: 4px 10px;
	border-radius: 999px;
	letter-spacing: 0.5px;
}

.portfolio-card-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 1.5rem;
	font-weight: 900;
	color: #06113f;
	margin: 0 0 10px 0;
	line-height: 1.2;
	transition: color 0.3s ease;
}

.portfolio-card-excerpt {
	font-size: 0.95rem;
	color: rgba(6, 17, 63, 0.65);
	line-height: 1.5;
	margin: 0 0 20px 0;
	flex-grow: 1;
}

.portfolio-card-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.88rem;
	font-weight: 900;
	color: #06113f;
	transition: gap 0.25s ease, color 0.25s ease;
	margin-top: auto;
}

.portfolio-card-link-btn svg {
	width: 16px;
	height: 16px;
	transition: transform 0.25s ease;
}

/* Hover effects */
.portfolio-card:hover {
	transform: translateY(-8px);
	border-color: rgba(25, 211, 197, 0.28);
	box-shadow: 0 24px 60px rgba(9, 168, 173, 0.09),
	            inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.portfolio-card:hover .portfolio-card-thumbnail {
	transform: scale(1.04);
}

.portfolio-card:hover .portfolio-card-title {
	color: #09a8ad;
}

.portfolio-card:hover .portfolio-card-link-btn {
	color: #09a8ad;
	gap: 10px;
}

.portfolio-card:hover .portfolio-card-link-btn svg {
	transform: translateX(3px);
}

/* ==========================================================================
   CASE STUDY DETAIL PAGE (SINGLE)
   ========================================================================== */

.project-hero {
	position: relative;
	min-height: 60vh;
	padding: clamp(6rem, 12vw, 10rem) 0 6rem 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: #040c2e;
	border-bottom: 1px solid rgba(6, 17, 63, 0.05);
	text-align: center;
}

.project-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--project-screenshot);
	background-size: cover;
	background-position: top center;
	opacity: 0.4;
	z-index: 1;
}

.project-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(4, 12, 46, 0.72) 0%, rgba(4, 12, 46, 0.45) 50%, rgba(4, 12, 46, 0.82) 100%),
	            radial-gradient(circle at 80% 20%, rgba(var(--project-color-rgb), 0.35), transparent 45rem);
	z-index: 2;
}

.project-hero-content {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px;
	position: relative;
	z-index: 3;
}

.project-hero-tag {
	display: inline-flex;
	align-items: center;
	background: #ffffff;
	color: var(--project-color);
	font-size: 0.78rem;
	font-weight: 900;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
	letter-spacing: 0.8px;
	box-shadow: 0 4px 14px rgba(6, 17, 63, 0.04),
	            inset 0 0 0 1px rgba(var(--project-color-rgb), 0.12);
	margin-bottom: 24px;
}

.project-hero-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: clamp(2.4rem, 6.5vw, 4.2rem);
	font-weight: 900;
	color: #ffffff;
	line-height: 1.1;
	letter-spacing: -1.8px;
	margin-bottom: 20px;
	text-shadow: 0 2px 12px rgba(4, 12, 46, 0.8), 0 1px 3px rgba(4, 12, 46, 0.9);
}

.project-hero-client {
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.95);
	font-weight: 500;
	line-height: 1.5;
	text-shadow: 0 1px 8px rgba(4, 12, 46, 0.85);
}

/* Metadata Panel overlap */
.project-meta-section {
	position: relative;
	margin-top: -50px;
	z-index: 10;
	padding: 0 20px;
}

.project-meta-card {
	max-width: 1060px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 28px;
	box-shadow: 0 24px 64px rgba(6, 17, 63, 0.07),
	            inset 0 0 0 1px rgba(255, 255, 255, 0.5);
	padding: 35px 40px;
	display: grid;
	gap: 24px;
	align-items: start;
}

@media (min-width: 576px) {
	.project-meta-card {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.project-meta-card {
		grid-template-columns: 2.2fr 1fr 4.2fr 2fr;
	}
}

.project-meta-tags {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
	padding-top: 24px;
	border-top: 1px solid rgba(6, 17, 63, 0.08);
	justify-content: flex-start;
}

.project-meta-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.project-meta-label {
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	color: rgba(6, 17, 63, 0.45);
	letter-spacing: 0.8px;
}

.project-meta-value {
	font-size: 0.96rem;
	font-weight: 800;
	color: #06113f;
	line-height: 1.4;
}

.project-meta-value a {
	color: var(--project-color);
	text-decoration: none;
	border-bottom: 1px dashed rgba(var(--project-color-rgb), 0.3);
	transition: all 0.2s ease;
}

.project-meta-value a:hover {
	color: #06113f;
	border-bottom-color: #06113f;
}

/* Asymmetric breakdown Challenge vs Solution */
.project-content-section {
	padding: 80px 0 60px 0;
	background: #ffffff;
}

.project-section-grid {
	display: grid;
	gap: 48px;
	align-items: start;
}

@media (min-width: 992px) {
	.project-section-grid {
		grid-template-columns: 5fr 7fr;
		gap: 80px;
	}
}

.project-left-col,
.project-right-col {
	display: flex;
	flex-direction: column;
}

.project-section-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 1.85rem;
	font-weight: 900;
	color: #06113f;
	margin-bottom: 20px;
	letter-spacing: -0.5px;
	position: relative;
}

.project-section-title::after {
	content: "";
	display: block;
	width: 42px;
	height: 4px;
	background: var(--project-color);
	border-radius: 2px;
	margin-top: 10px;
}

.project-text-content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: rgba(6, 17, 63, 0.78);
}

.project-text-content p {
	margin: 0 0 20px 0;
}

.project-text-content p:last-child {
	margin: 0;
}

/* ==========================================================================
   MINIMALIST ABSTRACT BRAND CARDS & FEELING BLOCKS
   ========================================================================== */

.abstract-brand-bg {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #030825;
	background-image: 
		radial-gradient(circle at 50% 40%, rgba(var(--card-accent-rgb), 0.22) 0%, rgba(3, 8, 37, 0.92) 80%),
		var(--card-screenshot);
	background-size: cover;
	background-position: top center;
	position: relative;
	overflow: hidden;
	height: 100%;
	width: 100%;
	transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.abstract-brand-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
	background-size: 20px 20px;
	opacity: 0.3;
	pointer-events: none;
}

.brand-initial {
	font-size: clamp(3.5rem, 8vw, 6rem);
	font-weight: 900;
	color: #ffffff;
	font-family: 'Plus Jakarta Sans', sans-serif;
	letter-spacing: -2px;
	line-height: 1;
	z-index: 2;
	text-shadow: 0 0 40px rgba(var(--card-accent-rgb), 0.6);
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-domain {
	position: absolute;
	bottom: 20px;
	font-size: 0.8rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.5);
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-family: monospace;
	z-index: 2;
	background: rgba(255, 255, 255, 0.05);
	padding: 4px 12px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-card:hover .abstract-brand-bg {
	background-image: 
		radial-gradient(circle at 50% 40%, rgba(var(--card-accent-rgb), 0.35) 0%, rgba(3, 8, 37, 0.82) 80%),
		var(--card-screenshot);
}

.portfolio-card:hover .brand-initial {
	transform: scale(1.08) translateY(-4px);
}

/* feeling block styling on single project */
.project-feeling-card {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(var(--project-color-rgb), 0.03) 100%);
	border: 1px solid rgba(var(--project-color-rgb), 0.16);
	border-radius: 28px;
	padding: clamp(2rem, 5vw, 3rem);
	position: relative;
	overflow: hidden;
	box-shadow: 0 20px 48px rgba(6, 17, 63, 0.03),
	            inset 0 0 0 1px rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.project-feeling-card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(var(--project-color-rgb), 0.12) 0%, transparent 70%);
	pointer-events: none;
	z-index: 1;
}

.project-feeling-quote-icon {
	font-family: Georgia, serif;
	font-size: 8rem;
	line-height: 1;
	color: rgba(var(--project-color-rgb), 0.12);
	position: absolute;
	top: -10px;
	left: 20px;
	pointer-events: none;
	user-select: none;
}

.project-feeling-label {
	font-size: 0.76rem;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--project-color);
	letter-spacing: 1.5px;
	margin-bottom: 12px;
	position: relative;
	z-index: 2;
}

.project-feeling-text {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: clamp(1.15rem, 2.5vw, 1.45rem);
	font-weight: 600;
	line-height: 1.5;
	color: #06113f;
	margin: 0;
	position: relative;
	z-index: 2;
	letter-spacing: -0.3px;
}

/* ==========================================================================
   FOOTER NAVIGATION CARD
   ========================================================================== */

.project-nav-footer {
	padding: 80px 0 100px 0;
	background: #ffffff;
	border-top: 1px solid rgba(6, 17, 63, 0.04);
}

.project-nav-card {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 30px;
	border-radius: 28px;
	background: linear-gradient(135deg, rgba(6, 17, 63, 0.02) 0%, rgba(25, 211, 197, 0.06) 100%);
	border: 1px solid rgba(25, 211, 197, 0.14);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none !important;
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 8px 30px rgba(6, 17, 63, 0.01);
}

.project-nav-kicker {
	font-size: 0.76rem;
	font-weight: 800;
	text-transform: uppercase;
	color: #09a8ad;
	letter-spacing: 1.2px;
	margin-bottom: 10px;
}

.project-nav-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	font-weight: 900;
	color: #06113f;
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	transition: color 0.3s ease;
}

.project-nav-title svg {
	width: 28px;
	height: 28px;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover effects */
.project-nav-card:hover {
	transform: translateY(-4px);
	background: linear-gradient(135deg, rgba(6, 17, 63, 0.03) 0%, rgba(25, 211, 197, 0.09) 100%);
	border-color: rgba(25, 211, 197, 0.28);
	box-shadow: 0 16px 40px rgba(25, 211, 197, 0.06);
}

.project-nav-card:hover .project-nav-title {
	color: #09a8ad;
}

.project-nav-card:hover .project-nav-title svg {
	transform: translateX(6px);
}

/* ==========================================================================
   PORTFOLIO PAGINATION
   ========================================================================== */

.portfolio-pagination {
	margin-top: 60px;
	display: flex;
	justify-content: center;
}

.portfolio-pagination ul.page-numbers {
	display: inline-flex;
	list-style: none;
	padding: 0;
	margin: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 252, 0.9));
	border: 1px solid rgba(6, 17, 63, 0.06);
	border-radius: 999px;
	padding: 6px 12px;
	box-shadow: 0 8px 24px rgba(6, 17, 63, 0.02);
	gap: 6px;
	align-items: center;
}

.portfolio-pagination ul.page-numbers li {
	margin: 0;
	padding: 0;
}

.portfolio-pagination ul.page-numbers a,
.portfolio-pagination ul.page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 0.9rem;
	font-weight: 800;
	color: #06113f;
	text-decoration: none !important;
	transition: all 0.3s ease;
}

.portfolio-pagination ul.page-numbers span.current {
	background: #09a8ad;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(9, 168, 173, 0.28);
}

.portfolio-pagination ul.page-numbers a:hover {
	background: rgba(25, 211, 197, 0.08);
	color: #09a8ad;
}

.portfolio-pagination ul.page-numbers .prev,
.portfolio-pagination ul.page-numbers .next {
	font-weight: 900;
	color: #09a8ad;
}

.portfolio-pagination ul.page-numbers .prev:hover,
.portfolio-pagination ul.page-numbers .next:hover {
	background: transparent;
	color: #06113f;
}

.portfolio-pagination ul.page-numbers .prev:hover {
	transform: translateX(-2px);
}

.portfolio-pagination ul.page-numbers .next:hover {
	transform: translateX(2px);
}
