/* Custom overrides */
/* Make the navbar logo larger and more visible */
.ptf-navbar .ptf-navbar-logo img {
	/* allow the image to scale but cap height/width for layout stability */
	max-height: 4rem;
	/* ~64px default */
	max-width: 180px;
	/* limit width so it doesn't overflow */
	height: auto;
	width: auto;
	display: block;
}


/* Slightly larger on very wide screens */
@media (min-width: 1200px) {
	.ptf-navbar .ptf-navbar-logo img {
		max-height: 5rem;
		/* ~80px on large screens */
		max-width: 220px;
	}
}

/* Make logo more prominent on tablet */
@media (max-width: 768px) {
	.ptf-navbar .ptf-navbar-logo img {
		max-height: 3.5rem;
		/* ~56px on tablet */
		max-width: 180px;
	}
}

/* Make logo prominent on mobile view */
@media (max-width: 576px) {
	.ptf-navbar .ptf-navbar-logo img {
		max-height: 3rem;
		/* Increased from 2.25rem to 3rem (~48px) */
		max-width: 160px;
		/* Increased from 120px */
	}
}

/* Extra prominence for very small phones */
@media (max-width: 480px) {
	.ptf-navbar .ptf-navbar-logo img {
		max-height: 2.75rem;
		/* ~44px */
		max-width: 145px;
	}
}


/* Layout improvements: make lists form columns on wider screens and avoid overflow */
.ptf-list {
	margin: 0;
	padding-left: 1.15rem;
}

/* turn long lists into two columns on medium+ screens for compactness */
@media (min-width: 768px) {
	.ptf-list {
		column-count: 2;
		column-gap: 2rem;
	}
}

/* Ensure section content doesn't exceed readable width */
.ptf-section__content>.container,
.ptf-section__content .container {
	max-width: 1100px;
}

/* Large monitor container adjustments */
@media (min-width: 1400px) {

	.ptf-section__content>.container,
	.ptf-section__content .container {
		max-width: 1300px;
	}
}

@media (min-width: 1920px) {

	.ptf-section__content>.container,
	.ptf-section__content .container {
		max-width: 1500px;
	}
}

/* Improve spacing on large monitors */
@media (min-width: 1400px) {
	.home-splash .ptf-gap-30 {
		height: 2.5rem;
	}

	.home-splash .ptf-gap-0-vh {
		height: 1.5rem;
	}
}

@media (min-width: 1920px) {
	.home-splash .ptf-gap-30 {
		height: 3rem;
	}

	.home-splash .ptf-gap-0-vh {
		height: 2rem;
	}
}

/* Prevent marquee images or other large content from causing horizontal scroll */
.ptf-portfolio-marquee img,
.ptf-section__ken-burn-background img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Small adjustments for the lists inside About column to align spacing */
.ptf-animate-element .ptf-list {
	margin-top: .25rem;
}

/* Override: reduce the large top padding for fullpage slider sections.
   Kept in custom.css so vendor files remain untouched and it's easy to tweak. */
.ptf-fullpage-slider .ptf-section__content {
	padding-top: 10rem !important;
}


.min-vh-100 {
	min-height: 50vh !important;
}

.ptf-post--single {
	padding-top: 10px;
}

/* Responsive hero tweaks for the home splash */
.home-splash .ptf-animate-element {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.home-splash .ptf-animate-element h1 {
	/* fluid type: clamps between mobile and desktop sizes */
	font-size: clamp(1.6rem, 5.5vw, 3.2rem);
	line-height: 1.08;
	margin: 0;
	word-break: break-word;
}

/* Large monitor optimizations */
@media (min-width: 1400px) {
	.home-splash .ptf-animate-element h1 {
		font-size: clamp(3.2rem, 4vw, 4.5rem) !important;
		line-height: 1.1;
		margin-left: -160px;
		margin-top: -280px;
		width: 460px;
	}
}

/* Extra large monitors (1920px+) */
@media (min-width: 1920px) {
	.home-splash .ptf-animate-element h1 {
		font-size: clamp(4rem, 3.5vw, 5.5rem);
		line-height: 1.12;
	}

	.home-splash .ptf-animate-element {
		max-width: 70%;
	}
}

/* Ultra-wide and 4K monitors */
@media (min-width: 2560px) {
	.home-splash .ptf-animate-element h1 {
		font-size: 5.5rem;
		line-height: 1.15;
		margin-left: -700px;
		margin-top: -30px;
		width: 900px
	}

	.home-splash .ptf-animate-element {
		max-width: 60%;
	}

	.home-splash .ptf-animate-element .divider {
		margin-top: 1rem;
		width: 80px;
		height: 4px;
	}
}

.home-splash .ptf-animate-element .divider {
	margin-top: .5rem;
}

/* Ensure the hero background scales without horizontal overflow */
.home-splash .jarallax-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* High-DPI display optimizations for extra large monitors */
@media (min-width: 1920px) and (-webkit-min-device-pixel-ratio: 1.5),
(min-width: 1920px) and (min-resolution: 144dpi) {
	.home-splash {
		image-rendering: -webkit-optimize-contrast;
		image-rendering: crisp-edges;
	}
}

/* Prevent background image shifting on scroll for large monitors */
@media (min-width: 1400px) {
	.home-splash {
		background-attachment: fixed;
		transform: translate3d(0, 0, 0);
		-webkit-transform: translate3d(0, 0, 0);
	}
}



/* Reduce large top padding on smaller screens and center text for better mobile UX */
@media (max-width: 991px) {
	.ptf-fullpage-slider .ptf-section__content {
		padding-top: 4.5rem !important;
	}

	.min-vh-100 {
		min-height: 45vh !important;
	}

	.home-splash .ptf-animate-element {
		align-items: center;
		text-align: center;
		padding-left: 1rem;
		padding-right: 1rem;
		position: relative;
		top: 346px;
	}

	.home-splash .ptf-animate-element h1 {
		font-size: clamp(1.5rem, 7vw, 2.2rem);
		line-height: 1.12;
	}

	.home-splash .ptf-gap-30 {
		height: 0.8rem;
	}

	.ptf-gap-15-vh {
		height: 8vh;
	}
}

@media (max-width: 480px) {
	.home-splash .ptf-animate-element h1 {
		font-size: 1.5rem;
		line-height: 1.15;
		margin-top: -200px;
		background: #000;
		padding: 20px;
	}

	.ptf-fullpage-slider .ptf-section__content {
		padding-top: 4.9rem !important;
	}

	.min-vh-100 {
		min-height: 40vh !important;
	}
}

/* Blog Share Section Styles */
.ptf-post-share {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.ptf-post-share h6 {
	margin-bottom: 15px;
	color: #fff;
	font-weight: 600;
}

.ptf-share-buttons {
	display: flex;
	gap: 12px;
}

.ptf-share-linkedin {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #0077b5;
	color: white;
	text-decoration: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.ptf-share-linkedin:hover {
	background: #005885;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
	color: white;
	text-decoration: none;
}

.ptf-share-linkedin svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Responsive adjustments for share section */
@media (max-width: 768px) {
	.ptf-post-share {
		padding: 16px;
		margin-bottom: 16px;
	}

	.ptf-share-linkedin {
		padding: 8px 14px;
		font-size: 13px;
	}

	.ptf-share-linkedin svg {
		width: 16px;
		height: 16px;
	}
}

/* Blog Rating System Styles */
.ptf-post-rating {
	background: #000;
	border-radius: 12px;
	padding: 24px;
	margin-top: 30px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.ptf-post-rating h6 {
	margin-bottom: 15px;
	color: #fff;
	font-weight: 600;
}

.ptf-rating-stars {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.ptf-rating-star {
	font-size: 28px;
	color: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}

.ptf-rating-star:hover,
.ptf-rating-star--active {
	color: #ffc107;
	transform: scale(1.1);
}

.ptf-rating-star:hover {
	filter: drop-shadow(0 0 4px rgba(255, 193, 7, 0.4));
}

.ptf-rating-info {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 10px;
}

.ptf-rating-average {
	font-weight: 600;
	color: #fff;
}

.ptf-rating-count {
	color: rgba(255, 255, 255, 0.6);
}

.ptf-rating-message {
	font-size: 14px;
	font-weight: 500;
	min-height: 20px;
	transition: opacity 0.3s ease;
	color: #0acf83;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.ptf-post-rating {
		padding: 20px 16px;
		margin-top: 25px;
	}

	.ptf-rating-star {
		font-size: 24px;
	}

	.ptf-rating-info {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
	}
}

/* Secondary Button Style */
.ptf-btn--secondary {
	color: var(--ptf-color-accent);
	background-color: transparent;
	border: 2px solid var(--ptf-color-accent);
}

.ptf-btn--secondary:hover {
	color: var(--ptf-color-3);
	background-color: var(--ptf-color-accent);
	border-color: var(--ptf-color-accent);
}

/* Chip Styles */
.chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	background: rgba(216, 250, 8, 0.1);
	border: 1px solid rgba(216, 250, 8, 0.3);
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	color: #d8fa08;
	text-decoration: none;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.chip:hover {
	background: rgba(216, 250, 8, 0.2);
	border-color: rgba(216, 250, 8, 0.5);
	color: #d8fa08;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(216, 250, 8, 0.2);
}

.chip-container {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

/* Contact Section Styling */
.ptf-contact-item {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
}

.ptf-contact-item a {
	display: flex;
	align-items: center;
	text-decoration: none;
	transition: all 0.3s ease;
	padding: 8px 0;
}

.ptf-contact-item a:hover {
	color: var(--ptf-color-accent) !important;
	transform: translateX(5px);
}

/* Forced White Icons */
.ptf-contact-item i,
.ptf-contact-item a i,
.ptf-contact-item .lnir-phone,
.ptf-contact-item .lnir-envelope {
	color: #ffffff !important;
	fill: #ffffff !important;
	/* Just in case */
	transition: all 0.3s ease;
	width: 24px;
	text-align: center;
}

.ptf-contact-item a:hover i,
.ptf-contact-item a:hover .lnir-phone,
.ptf-contact-item a:hover .lnir-envelope {
	color: #ffffff !important;
	fill: #ffffff !important;
	transform: scale(1.1);
}

/* Responsive contact icons */
@media (max-width: 768px) {
	.ptf-contact-item i {
		font-size: 1.1em !important;
		width: 20px;
		margin-right: 8px !important;
	}
}

@media (max-width: 576px) {
	.ptf-contact-item i {
		font-size: 1em !important;
		width: 18px;
		margin-right: 6px !important;
	}
}

/* Blog post thumbnail consistency */
.ptf-post--masonry .ptf-post-thumbnail {
	height: 350px;
	/* Fixed height for all blog thumbnails */
	overflow: hidden;
	background-color: #f8f9fa;
}

.ptf-post--masonry .ptf-post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Ensures image covers the entire area while maintaining aspect ratio */
	object-position: center;
	/* Centers the image within the container */
}

/* Responsive adjustments for blog thumbnails */
@media (max-width: 768px) {
	.ptf-post--masonry .ptf-post-thumbnail {
		height: 200px;
	}
}

@media (max-width: 576px) {
	.ptf-post--masonry .ptf-post-thumbnail {
		height: 180px;
	}
}

/* Contact Form Fixes */
.ptf-form-group {
	position: relative;
	margin-bottom: 30px;
}

.ptf-form-control {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0;
	padding: 10px 0;
	font-size: 16px;
	color: #fff;
	transition: border-color 0.3s ease;
}

.ptf-form-control:focus {
	outline: none;
	border-bottom-color: #fff;
}

.ptf-form-label {
	position: absolute;
	top: 10px;
	left: 0;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.6);
	pointer-events: none;
	transition: 0.3s ease all;
}

/* Active state: move label up */
/* Active state: move label up - Increased specificity and added !important to force override */
.ptf-form-group.active .ptf-form-label,
.ptf-form-control:focus+.ptf-form-label,
.ptf-form-control:not(:placeholder-shown)+.ptf-form-label,
.ptf-form-group:focus-within .ptf-form-label {
	top: -20px !important;
	font-size: 12px !important;
	color: #fff !important;
	opacity: 1 !important;
}

/* Make Message Field Prominent with White Background */
textarea.ptf-form-control {
	min-height: 180px;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	background: #ffffff !important;
	/* White background */
	color: #000000 !important;
	/* Black text */
	padding: 20px !important;
	margin-top: 15px;
	resize: vertical;
	border-radius: 4px;
}

textarea.ptf-form-control:focus {
	border-color: #ffffff !important;
	background: #ffffff !important;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Adjust label for the textarea */
.ptf-form-group textarea.ptf-form-control+label {
	top: 35px;
	left: 20px;
	color: #000;
	/* Label color when inside white box (inactive)? No, keep it outside or distinctive */
}

/* When textarea has white background, label inside might be invisible if white on white. 
   Let's keep the label OUTSIDE/ABOVE when active, but when inactive it might sit inside.
   If inactive, it sits at top: 35px. Text color is rgba(255, 255, 255, 0.6) - which is light grey.
   On white background, light grey is visible but might be faint. Let's make it dark grey when inside.
*/
.ptf-form-group textarea.ptf-form-control+label {
	color: #666666 !important;
	/* Dark grey label for white background */
}

/* Move label out when textarea is active */
.ptf-form-group.active textarea.ptf-form-control+label,
textarea.ptf-form-control:focus+label,
textarea.ptf-form-control:not(:placeholder-shown)+label,
.ptf-form-group:focus-within textarea.ptf-form-control+label {
	top: -10px !important;
	left: 0 !important;
	color: #ffffff !important;
	/* White label when it moves out to the black background area */
}