/* ── Portfolio Custom Styles ────────────────────────── */
:root {
	--font-family-one: 'Inter', sans-serif;
	--font-weight-one-light: 300;
	--font-weight-one-bold: 700;

	--font-family-two: 'Inter', sans-serif;
	--font-weight-two-bold: 700;

	--font-family-three: 'Inter', sans-serif;
	--font-weight-three-regular: 400;
	--font-weight-three-medium: 500;
	--font-weight-three-bold: 700;

	--letter-spacing: -.01em;
	--ghost-accent-color: #4F46E5;
}

html { scroll-behavior: smooth; }

/* Hero */
.portfolio-hero {
	min-height: 85vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 40%, #302b63 100%);
}

.portfolio-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle at 30% 50%, rgba(79,70,229,0.15) 0%, transparent 50%),
	            radial-gradient(circle at 70% 30%, rgba(99,102,241,0.1) 0%, transparent 40%);
	animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	33% { transform: translate(2%, -1%) rotate(1deg); }
	66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

.portfolio-hero .hero-inner {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 900px;
	padding: 60px 5vw;
}

.portfolio-hero .hero-badge {
	display: inline-block;
	font-size: 1.4rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.7);
	border: 1px solid rgba(255,255,255,0.15);
	padding: 8px 20px;
	border-radius: 100px;
	margin-bottom: 30px;
	backdrop-filter: blur(4px);
	background: rgba(255,255,255,0.03);
}

.portfolio-hero h1 {
	font-size: clamp(3.6rem, 6vw, 7.2rem);
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
	margin: 0 0 24px;
	letter-spacing: -0.03em;
}

.portfolio-hero h1 span {
	background: linear-gradient(135deg, #818cf8, #6366f1, #a78bfa);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.portfolio-hero .hero-subtitle {
	font-size: clamp(1.8rem, 2.5vw, 2.4rem);
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255,255,255,0.7);
	max-width: 640px;
	margin: 0 auto 40px;
}

.portfolio-hero .hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 1.8rem;
	font-weight: 500;
	padding: 18px 36px;
	border-radius: 100px;
	background: linear-gradient(135deg, #6366f1, #4F46E5);
	color: #fff;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 24px rgba(79,70,229,0.35);
}

.portfolio-hero .hero-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(79,70,229,0.5);
	color: #fff;
}

.portfolio-hero .hero-cta svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	transition: transform 0.3s ease;
}

.portfolio-hero .hero-cta:hover svg {
	transform: translateX(4px);
}

/* Section shared */
.portfolio-section {
	padding: 10vh 5vw;
	max-width: 1200px;
	margin: 0 auto;
}

.portfolio-section .section-label {
	display: inline-block;
	font-size: 1.3rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ghost-accent-color);
	margin-bottom: 16px;
}

.portfolio-section .section-title {
	font-size: clamp(3.2rem, 4.5vw, 5.4rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 20px;
	letter-spacing: -0.02em;
}

.portfolio-section .section-desc {
	font-size: 1.9rem;
	line-height: 1.7;
	opacity: 0.85;
	max-width: 720px;
}

/* About */
.about-section {
	border-top: var(--border) var(--color-border-one);
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	margin-top: 40px;
	align-items: start;
}

.about-grid .about-text p {
	font-size: 1.9rem;
	line-height: 1.8;
	opacity: 0.85;
	margin: 0 0 20px;
}

.about-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 20px;
}

.about-stat {
	padding: 24px;
	background: var(--color-nine);
	border-radius: 16px;
	text-align: center;
}

.about-stat .stat-number {
	font-size: 3.6rem;
	font-weight: 700;
	line-height: 1;
	color: var(--ghost-accent-color);
	margin-bottom: 6px;
}

.about-stat .stat-label {
	font-size: 1.4rem;
	font-weight: 500;
	opacity: 0.7;
}

/* Skills */
.skills-section {
	border-top: var(--border) var(--color-border-one);
}

.skills-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 40px;
}

.skill-card {
	background: var(--color-nine);
	border-radius: 20px;
	padding: 36px 30px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	overflow: hidden;
}

.skill-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.skill-card .skill-icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	font-size: 2.2rem;
	background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(99,102,241,0.08));
	color: var(--ghost-accent-color);
}

.skill-card h3 {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 10px;
	line-height: 1.3;
}

.skill-card p {
	font-size: 1.6rem;
	line-height: 1.6;
	opacity: 0.75;
	margin: 0;
}

/* Philosophy */
.philosophy-section {
	border-top: var(--border) var(--color-border-one);
}

.philosophy-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 40px;
}

.philosophy-card {
	background: var(--color-nine);
	border-radius: 20px;
	padding: 36px 30px;
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.philosophy-card .phi-num {
	font-size: 4rem;
	font-weight: 700;
	line-height: 1;
	background: linear-gradient(135deg, #818cf8, #4F46E5);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	flex-shrink: 0;
}

.philosophy-card h3 {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
}

.philosophy-card p {
	font-size: 1.6rem;
	line-height: 1.6;
	opacity: 0.75;
	margin: 0;
}

/* Why Me */
.whyme-section {
	border-top: var(--border) var(--color-border-one);
}

.whyme-list {
	margin-top: 40px;
	display: grid;
	gap: 16px;
}

.whyme-item {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	background: var(--color-nine);
	border-radius: 16px;
	padding: 28px 30px;
	transition: transform 0.2s ease;
}

.whyme-item:hover {
	transform: translateX(6px);
}

.whyme-item .whyme-check {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, #818cf8, #4F46E5);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
}

.whyme-item .whyme-check svg {
	width: 16px;
	height: 16px;
	fill: #fff;
}

.whyme-item h3 {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.3;
}

.whyme-item p {
	font-size: 1.6rem;
	line-height: 1.6;
	opacity: 0.75;
	margin: 0;
}

/* CTA Section */
.cta-section {
	text-align: center;
	padding: 12vh 5vw;
	background: linear-gradient(135deg, #0f0c29, #1a1a3e, #302b63);
	border-radius: 32px;
	margin: 6vh 5vw;
	position: relative;
	overflow: hidden;
}

.cta-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.15) 0%, transparent 60%);
}

.cta-section * {
	position: relative;
	z-index: 1;
}

.cta-section h2 {
	font-size: clamp(3rem, 4.5vw, 5rem);
	font-weight: 700;
	color: #fff;
	margin: 0 0 16px;
	line-height: 1.2;
}

.cta-section p {
	font-size: 2rem;
	color: rgba(255,255,255,0.7);
	margin: 0 0 36px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

.cta-section .cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 1.8rem;
	font-weight: 500;
	padding: 18px 40px;
	border-radius: 100px;
	background: #fff;
	color: #1a1a3e;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.cta-section .cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(0,0,0,0.3);
	color: #1a1a3e;
}

/* Footer override */
.portfolio-footer {
	padding: 5vh 5vw;
	text-align: center;
	border-top: var(--border) var(--color-border-one);
}

.portfolio-footer .footer-social {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-bottom: 20px;
}

.portfolio-footer .footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--color-nine);
	transition: all 0.3s ease;
}

.portfolio-footer .footer-social a:hover {
	background: var(--ghost-accent-color);
}

.portfolio-footer .footer-social a:hover svg {
	fill: #fff;
}

.portfolio-footer .footer-social svg {
	width: 18px;
	height: 18px;
	fill: var(--color-font-one);
	transition: fill 0.3s ease;
}

.portfolio-footer .footer-copy {
	font-size: 1.4rem;
	opacity: 0.6;
}

/* Portfolio header */
.portfolio-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 16px 5vw;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(255,255,255,0.85);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	transition: box-shadow 0.3s ease;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}

.portfolio-header.scrolled {
	box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.portfolio-header .logo-text {
	font-size: 2rem;
	font-weight: 700;
	color: var(--color-font-one);
	text-decoration: none;
	letter-spacing: -0.02em;
}

.portfolio-header .logo-text span {
	color: var(--ghost-accent-color);
}

.portfolio-header nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.portfolio-header nav a {
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--color-font-one);
	text-decoration: none;
	opacity: 0.75;
	transition: opacity 0.2s ease;
}

.portfolio-header nav a:hover {
	opacity: 1;
}

.portfolio-header nav a.nav-cta {
	opacity: 1;
	background: var(--ghost-accent-color);
	color: #fff;
	padding: 10px 22px;
	border-radius: 100px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.portfolio-header nav a.nav-cta:hover {
	background: #4338ca;
	color: #fff;
}

/* Mobile nav toggle */
.portfolio-header .mobile-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.portfolio-header .mobile-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--color-font-one);
	margin: 5px 0;
	transition: all 0.3s ease;
}

/* Contact page */
.contact-section {
	max-width: 680px;
	margin: 0 auto;
	padding: 12vh 5vw 8vh;
}

.contact-section .section-label {
	display: inline-block;
	font-size: 1.3rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ghost-accent-color);
	margin-bottom: 16px;
}

.contact-section .section-title {
	font-size: clamp(3.2rem, 4.5vw, 5.4rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}

.contact-section .section-desc {
	font-size: 1.9rem;
	line-height: 1.7;
	opacity: 0.85;
	margin-bottom: 40px;
}

.contact-form {
	display: grid;
	gap: 20px;
}

.contact-form label {
	font-size: 1.4rem;
	font-weight: 600;
	display: block;
	margin-bottom: 8px;
	opacity: 0.8;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 16px 20px;
	font-size: 1.6rem;
	font-family: var(--font-family-one);
	border: 1px solid var(--color-border-one, rgba(0,0,0,0.1));
	border-radius: 12px;
	background: var(--color-nine, #f8f9fc);
	color: var(--color-font-one, #1a1a2e);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
	border-color: var(--ghost-accent-color);
	box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.contact-form textarea {
	resize: vertical;
	min-height: 160px;
}

.contact-form .form-submit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 1.8rem;
	font-weight: 500;
	padding: 18px 36px;
	border-radius: 100px;
	background: linear-gradient(135deg, #6366f1, #4F46E5);
	color: #fff;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 24px rgba(79,70,229,0.35);
	font-family: var(--font-family-one);
}

.contact-form .form-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(79,70,229,0.5);
}

.contact-form .form-error {
	color: #ef4444;
	font-size: 1.3rem;
	margin-top: 4px;
}

.contact-form .form-success {
	background: rgba(34,197,94,0.1);
	border: 1px solid rgba(34,197,94,0.3);
	color: #16a34a;
	padding: 16px 20px;
	border-radius: 12px;
	font-size: 1.6rem;
	font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
	.about-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.skills-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.portfolio-header nav {
		display: none;
		position: fixed;
		top: 60px;
		left: 0;
		right: 0;
		background: rgba(255,255,255,0.98);
		backdrop-filter: blur(16px);
		flex-direction: column;
		padding: 20px;
		gap: 16px;
		border-bottom: 1px solid rgba(0,0,0,0.08);
	}

	.portfolio-header nav.open {
		display: flex;
	}

	.portfolio-header .mobile-toggle {
		display: block;
	}

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

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

	.portfolio-hero {
		min-height: 75vh;
	}

	.cta-section {
		border-radius: 20px;
		margin: 4vh 3vw;
	}
}
