/*
Theme Name: Piyush Onepage
Theme URI: https://example.com/
Author: Piyush Khandelwal
Description: A Bootstrap 5 one-page WordPress theme with scroll sections.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: piyush-onepage
*/

:root {
	--pk-hero-gradient: radial-gradient(1200px 700px at 20% 10%, rgba(13, 110, 253, 0.25), transparent 55%),
		radial-gradient(900px 600px at 90% 0%, rgba(32, 201, 151, 0.2), transparent 50%),
		linear-gradient(180deg, #0b1220, #0b1220);
	--pk-section-bg: #0b1220;
	--pk-surface: rgba(255, 255, 255, 0.06);
	--pk-border: rgba(255, 255, 255, 0.12);
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--pk-section-bg);
}

/* Scroll section effect */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-snap-type: y proximity;
	}
	.pk-section {
		scroll-snap-align: start;
		scroll-margin-top: 84px;
	}
	.pk-footer {
		scroll-snap-align: end;
	}
}

.pk-navbar {
	background: rgba(11, 18, 32, 0.82);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--pk-border);
}



.pk-navbar.pk-navbar--scrolled {
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.pk-navbar .navbar-brand {
	letter-spacing: 0.2px;
}

.pk-navbar .nav-link {
	position: relative;
	padding: 0.6rem 0.9rem;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.78);
	transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.pk-navbar .nav-link:hover,
.pk-navbar .nav-link:focus-visible {
	color: rgba(255, 255, 255, 0.95);
	background: rgba(255, 255, 255, 0.06);
	transform: translateY(-1px);
}

.pk-navbar .nav-link::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 6px;
	width: 0;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, #0d6efd, #20c997);
	transform: translateX(-50%);
	transition: width 180ms ease;
}

.pk-navbar .nav-link.active {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.pk-navbar .nav-link.active::after {
	width: 60%;
}

.pk-hero {
	position: relative;
	overflow: hidden;
	background: var(--pk-hero-gradient);
}

.pk-hero::before,
.pk-hero::after {
	content: "";
	position: absolute;
	inset: auto;
	width: 520px;
	height: 520px;
	border-radius: 999px;
	filter: blur(60px);
	opacity: 0.55;
	pointer-events: none;
}

.pk-hero::before {
	left: -160px;
	top: 120px;
	background: rgba(13, 110, 253, 0.35);
}

.pk-hero::after {
	right: -180px;
	bottom: 120px;
	background: rgba(32, 201, 151, 0.28);
}

.pk-gradient-text {
	background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.75), #20c997);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.pk-hero-card {
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.pk-avatar {
	width: 52px;
	height: 52px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	font-weight: 800;
	letter-spacing: 0.6px;
	background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(32, 201, 151, 0.85));
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.pk-mini {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--pk-border);
	border-radius: 0.9rem;
}
.pk-section {
	min-height: 100vh;
	padding-top: 6.5rem;
	padding-bottom: 4rem;
}

.pk-surface {
	background: var(--pk-surface);
	border: 1px solid var(--pk-border);
	border-radius: 1rem;
}

.pk-muted {
	color: rgba(255, 255, 255, 0.72);
}

.pk-scroll-cue {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
}

.pk-scroll-cue .pk-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.6);
}

.pk-footer {
	border-top: 1px solid var(--pk-border);
}

/* About section accents */
.pk-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.7);
}

.pk-kicker::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, #0d6efd, #20c997);
	box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.08);
}

.pk-icon-chip {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	font-weight: 800;
	letter-spacing: 0.4px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--pk-border);
}

.pk-about-panel {
	box-shadow: 0 16px 55px rgba(0, 0, 0, 0.25);
}

.pk-list-check {
	list-style: none;
	padding-left: 0;
}

.pk-list-check li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.55;
}

.pk-list-check li:last-child {
	margin-bottom: 0;
}

.pk-list-check li::before {
	content: "\2713";
	flex: 0 0 1.25rem;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.15rem;
	border-radius: 999px;
	display: grid;
	place-items: center;
	font-size: 0.85rem;
	background: rgba(13, 110, 253, 0.16);
	border: 1px solid rgba(13, 110, 253, 0.35);
	color: #fff;
}
.pk-pill {
	padding: 0.75rem 0.9rem;
	border-radius: 0.9rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--pk-border);
	color: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: no-preference) {
	.pk-about-card {
		transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
	}
	.pk-about-card:hover {
		transform: translateY(-3px);
		border-color: rgba(255, 255, 255, 0.22);
		background: rgba(255, 255, 255, 0.075);
	}
}
/* CF7 Bootstrap-like styling */
.wpcf7 form p {
	margin-bottom: 1rem;
}

.wpcf7 form label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.wpcf7 form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
	display: block;
	width: 100%;
	padding: 0.75rem 0.9rem;
	border-radius: 0.75rem;
	border: 1px solid var(--pk-border);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	outline: none;
}

.wpcf7 form textarea.wpcf7-form-control {
	min-height: 140px;
	resize: vertical;
}

.wpcf7 form .wpcf7-form-control:focus {
	border-color: rgba(13, 110, 253, 0.65);
	box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.18);
}

.wpcf7 form .wpcf7-submit {
	display: inline-block;
	padding: 0.8rem 1.1rem;
	border-radius: 0.75rem;
	border: 1px solid #0d6efd;
	background: #0d6efd;
	color: #fff;
	font-weight: 600;
}

.wpcf7 form .wpcf7-submit:hover {
	background: #0b5ed7;
	border-color: #0b5ed7;
}

.wpcf7 form .wpcf7-spinner {
	margin-left: 0.5rem;
}

.wpcf7-not-valid-tip {
	color: #ffb4b4;
	font-size: 0.9rem;
	margin-top: 0.35rem;
}

.wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.9rem 1rem;
	border-radius: 0.75rem;
	border: 1px solid var(--pk-border);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.9);
}
/* Skills section styles */
.pk-badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

@media (max-width: 575.98px) {
	.pk-badge-row {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 0.25rem;
		scrollbar-width: thin;
	}
	.pk-badge-row > * {
		flex: 0 0 auto;
	}
}

.pk-skill-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--pk-border);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.92rem;
}

.pk-skill-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid rgba(13, 110, 253, 0.35);
	background: rgba(13, 110, 253, 0.12);
	color: rgba(255, 255, 255, 0.9);
}

.pk-progress {
	height: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
}

.pk-progress .progress-bar {
	border-radius: 999px;
	background: linear-gradient(90deg, #0d6efd, #20c997);
}

.pk-stack-list {
	display: grid;
	gap: 1rem;
}

.pk-stack-item {
	padding: 0.75rem 0.9rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: no-preference) {
	.pk-skill-card {
		transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
	}
	.pk-skill-card:hover {
		transform: translateY(-3px);
		border-color: rgba(255, 255, 255, 0.22);
		background: rgba(255, 255, 255, 0.075);
	}
}
/* Contact section styles */
.pk-contact-card {
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.pk-contact-list {
	display: grid;
	gap: 0.75rem;
}

.pk-contact-item {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.9rem 1rem;
	border-radius: 1rem;
	border: 1px solid var(--pk-border);
	background: rgba(255, 255, 255, 0.03);
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
}

.pk-contact-icon {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #fff;
}

.pk-contact-text {
	display: grid;
	gap: 0.15rem;
}

.pk-contact-label {
	font-weight: 700;
	font-size: 0.95rem;
}

.pk-contact-value {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.72);
}

.pk-contact-meta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

@media (min-width: 992px) {
	.pk-contact-meta {
		grid-template-columns: 1fr 1fr;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.pk-contact-item {
		transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
	}
	.pk-contact-item:hover,
	.pk-contact-item:focus-visible {
		transform: translateY(-2px);
		border-color: rgba(255, 255, 255, 0.22);
		background: rgba(255, 255, 255, 0.065);
	}
}

/* Floating back-to-top button */
.pk-fab {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 1030;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(11, 18, 32, 0.75);
	backdrop-filter: blur(10px);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
}

.pk-fab--show {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

@media (prefers-reduced-motion: no-preference) {
	.pk-fab {
		transition: opacity 200ms ease, transform 200ms ease, background-color 200ms ease;
	}
	.pk-fab:hover,
	.pk-fab:focus-visible {
		background: rgba(255, 255, 255, 0.1);
		transform: translateY(-1px);
	}
}
/* Projects section styles */
.pk-project-card {
	position: relative;
	overflow: hidden;
}

.pk-project-card::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(700px 200px at 20% 0%, rgba(13, 110, 253, 0.18), transparent 60%),
		radial-gradient(700px 200px at 90% 10%, rgba(32, 201, 151, 0.14), transparent 55%);
	transition: opacity 180ms ease;
}

.pk-project-card:hover::before {
	opacity: 1;
}

.pk-project-media {
	border-radius: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: linear-gradient(135deg, rgba(13, 110, 253, 0.22), rgba(32, 201, 151, 0.14)),
		linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
	min-height: 180px;
	display: flex;
	align-items: flex-end;
}

.pk-project-feature .pk-project-media {
	min-height: 220px;
}

.pk-project-media-inner {
	padding: 1.1rem 1.1rem 1rem;
	width: 100%;
	background: linear-gradient(180deg, transparent, rgba(11, 18, 32, 0.75));
}

.pk-project-media-title {
	font-weight: 800;
	letter-spacing: 0.02em;
}

.pk-project-kpi {
	padding: 0.85rem 0.95rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: no-preference) {
	.pk-project-card {
		transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
	}
	.pk-project-card:hover {
		transform: translateY(-3px);
		border-color: rgba(255, 255, 255, 0.22);
		background: rgba(255, 255, 255, 0.075);
	}
}
