/* Contact / comment form feedback, SweetAlert2 custom theme, and full mobile responsive polish */
.contact-us__form .form-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-us__form .ajax-response {
	display: none;
	margin-top: 20px;
	padding: 14px 20px;
	border-radius: 14px;
	font-size: 15px;
	line-height: 1.5;
}

.contact-us__form .ajax-response.is-visible {
	display: block;
}

.contact-us__form .ajax-response.success {
	color: #e6e6e6;
	background: rgba(255, 212, 0, 0.1);
	border: 1px solid rgba(255, 212, 0, 0.35);
}

.contact-us__form .ajax-response.error {
	color: #ffb4b4;
	background: rgba(255, 77, 77, 0.12);
	border: 1px solid rgba(255, 77, 77, 0.45);
}

.contact-us__form input.has-error,
.contact-us__form textarea.has-error {
	box-shadow: 0 0 0 1px #ff4d4d;
}

.contact-us__form button.is-loading {
	opacity: 0.75;
	cursor: wait;
}

/* Keep dark background when browser autofills inputs */
.contact-us__form input:-webkit-autofill,
.contact-us__form input:-webkit-autofill:hover,
.contact-us__form input:-webkit-autofill:focus,
.contact-us__form textarea:-webkit-autofill {
	-webkit-text-fill-color: #ffffff !important;
	-webkit-box-shadow: 0 0 0 1000px #0d0d0d inset !important;
	transition: background-color 5000s ease-in-out 0s;
}

/* SweetAlert2 Custom Icon & Modal Styling */
.swal2-popup.ea-swal-popup {
	background: #141414 !important;
	border: 1px solid #262626 !important;
	border-radius: 20px !important;
	padding: 36px 32px 32px !important;
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75) !important;
	max-width: 440px !important;
}

.swal2-icon.ea-swal-custom-icon {
	border: none !important;
	margin: 4px auto 18px !important;
	width: 68px !important;
	height: 68px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.swal2-icon.ea-swal-custom-icon .swal2-icon-content {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: inherit;
}

.ea-swal-title {
	font-size: 24px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	margin: 0 0 10px 0 !important;
	padding: 0 !important;
	letter-spacing: -0.3px;
}

.ea-swal-text {
	font-size: 15px !important;
	line-height: 1.65 !important;
	color: #b5b5b5 !important;
	margin: 0 !important;
	padding: 0 8px !important;
}

.ea-swal-btn {
	margin-top: 22px !important;
	padding: 12px 34px !important;
	border-radius: 50px !important;
	border: none !important;
	background: #FFD400 !important;
	color: #0a0a0a !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.ea-swal-btn:hover {
	transform: translateY(-1px);
	opacity: 0.94;
}

.ea-swal-icon--sending .ea-swal-ring {
	transform-origin: 32px 32px;
	animation: ea-swal-spin 1.15s linear infinite;
}

.ea-swal-icon--sending .ea-swal-plane {
	animation: ea-swal-float 1.4s ease-in-out infinite;
}

.ea-swal-icon--success .ea-swal-check {
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: ea-swal-draw 0.45s 0.1s ease-out forwards;
}

@keyframes ea-swal-spin {
	to { transform: rotate(360deg); }
}

@keyframes ea-swal-float {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(2px, -2px); }
}

@keyframes ea-swal-draw {
	to { stroke-dashoffset: 0; }
}

/* Keep the contact page image proportional to the form card */
.contact-wrapper .contact-thumb {
	height: 100%;
	max-height: 640px;
	overflow: hidden;
	border-radius: 10px 0 0 10px;
}

.contact-wrapper .contact-thumb img {
	width: 100%;
	height: 100%;
	max-height: 640px;
	object-fit: cover;
	object-position: center 20%;
}

/* Mobile project card caption (since touch devices don't have hover cursor) */
.project-mobile-caption {
	padding: 14px 4px 4px;
}

.project-mobile-meta {
	display: block;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #FFD400;
	margin-bottom: 4px;
	font-weight: 600;
}

.project-mobile-title {
	font-size: 20px;
	line-height: 1.3;
	color: #ffffff;
	margin: 0;
	font-weight: 700;
}

/* ==========================================================================
   GLOBAL RESPONSIVE & MOBILE FIXES (ALL PAGES)
   ========================================================================== */

/* Prevent horizontal scroll caused by rotated marquees (.rotate-1 / .rotate-2) or absolute shapes */
html,
body,
#smooth-wrapper,
#smooth-content,
main,
.h1-brand__area {
	overflow-x: clip;
}

/*----------------------------------------
   TABLET & MOBILE (<= 1199px)
-----------------------------------------*/
@media (max-width: 1199.98px) {
	/* Header spacing & logo */
	.header.header-inner .header-inner__main {
		padding: 16px 0;
	}

	/* Home hero cards: remove left offset meant only for 3-column desktop */
	.h1-banner__author-wrapper {
		margin-left: 0 !important;
		padding: 28px 24px !important;
		gap: 36px !important;
	}

	/* Keep the yellow half-circles and clapperboard neatly aligned inside the card */
	.h1-banner__author-shape {
		position: relative;
	}

	.h1-banner__author-shape .half-circle-banner-wrapper {
		position: relative !important;
		left: auto !important;
		top: auto !important;
		margin-left: 0 !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: flex-start !important;
		vertical-align: middle;
	}

	.h1-banner__author-shape .half-circle-banner {
		width: 48px !important;
		height: 48px !important;
		margin-left: -22px !important;
	}

	.h1-banner__author-shape .half-circle-banner:first-child {
		margin-left: 0 !important;
	}

	.h1-banner__author-icon {
		display: inline-flex !important;
		align-items: center;
		margin-left: 16px !important;
		margin-top: 0 !important;
		width: 64px !important;
		height: 64px !important;
		vertical-align: middle;
	}

	/* Keep the yellow spinning badge pinned to the bottom-left corner of the photo, never beside the photo */
	.h1-banner__content-thumb {
		position: relative !important;
	}

	.h1-banner__content-thumb > img {
		width: 100% !important;
		flex: 0 0 100% !important;
	}

	.h1-banner__content-thumb-circle {
		position: absolute !important;
		left: 16px !important;
		bottom: 16px !important;
		margin-bottom: 0 !important;
		z-index: 2;
	}

	.h1-banner__content-social {
		gap: 40px !important;
	}

	/* Contact page image on stacked layout */
	.contact-wrapper .contact-thumb,
	.contact-wrapper .contact-thumb img {
		max-height: 440px;
		border-radius: 10px 10px 0 0;
	}

	/* About 4 feature circles: replace awkward oval 50% border-radius with clean cards on tablet/mobile */
	.h1-about__item,
	.h1-about__item.border-1 {
		border-radius: 24px !important;
		margin: 0 10px 20px !important;
		padding: 36px 24px !important;
	}

	/* Project detail navigation bar */
	.navigation-item {
		padding: 24px 28px !important;
		align-items: center;
	}

	.navigation-cta {
		padding-right: 0 !important;
	}

	.navigation-cta::before {
		display: none !important;
	}

	.navigation-content::before {
		display: none !important;
	}
}

/*----------------------------------------
   MOBILE & SMALL TABLET (<= 991px)
-----------------------------------------*/
@media (max-width: 991.98px) {
	/* Breadcrumb giant titles & second-line indent */
	.breadcrumb__area {
		padding-top: 145px !important;
		padding-bottom: 50px !important;
	}

	.breadcrumb__title-wrapper__title {
		font-size: clamp(36px, 8vw, 62px) !important;
		line-height: 1.15 !important;
		margin: 0 !important;
	}

	.breadcrumb__title-wrapper__title span {
		font-size: clamp(34px, 7.6vw, 58px) !important;
		line-height: 1.15 !important;
		padding-left: clamp(16px, 6vw, 80px) !important;
		display: inline-block;
	}

	/* Services list items (Home & Services page) */
	.h1-service__item,
	.h2-service__item {
		padding: 0 12px !important;
	}

	.h1-service__item-content,
	.h2-service__item-content {
		padding: 28px 0 !important;
		gap: 18px;
	}

	.h1-service__item-content-heading,
	.h2-service__item-content-heading {
		gap: 16px !important;
		max-width: 100% !important;
	}

	.h1-service__item-content-thumb {
		width: 100%;
	}

	.h1-service__item-content-thumb img {
		width: 100%;
		height: 200px !important;
		object-fit: cover;
		border-radius: 10px;
	}

	/* Show the service keywords strip cleanly on touch devices */
	.h1-service__item-content-thumb .mddle-text {
		opacity: 1 !important;
		visibility: visible !important;
		top: auto !important;
		bottom: 12px !important;
		left: 0 !important;
		right: 0 !important;
		transform: none !important;
	}

	.h1-service__item-content-thumb .mddle-text h6 {
		font-size: 14px !important;
		padding: 6px 10px !important;
	}

	/* Service details & Project details top spacing */
	.bardchum-area,
	.fact-area {
		padding-top: 145px !important;
		padding-bottom: 60px !important;
	}

	.fact-item {
		padding: 24px !important;
		row-gap: 16px;
	}

	/* Footer widgets */
	.h1-footer-custom-gutter {
		margin-bottom: 50px !important;
	}

	.h1-footer__widget {
		padding: 28px 24px !important;
		border-radius: 16px !important;
		margin-bottom: 12px;
	}

	.footer-custom-border::before {
		display: none !important;
	}

	.h1-footer__widget-link h5 a,
	.h1-footer__widget-link h6 a {
		font-size: 19px !important;
		word-break: break-word;
	}
}

/*----------------------------------------
   PHONES (<= 767px)
-----------------------------------------*/
@media (max-width: 767.98px) {
	/* Header compact layout */
	.header-1__logo img,
	.header-1__logo .logo img {
		max-height: 42px !important;
	}

	.header.header-inner .header-inner__main .header__left .header__hamburger-text {
		font-size: 15px;
	}

	/* Home hero section */
	.h1-banner__area {
		padding-top: 115px !important;
	}

	.h1-banner__header.section-space {
		padding-top: 24px !important;
		padding-bottom: 32px !important;
	}

	.h1-banner__header h1 {
		font-size: clamp(32px, 9.5vw, 46px) !important;
		line-height: 1.15 !important;
	}

	.h1-banner__header h1 br {
		display: none;
	}

	.h1-banner__content .custom-row {
		margin: 0 !important;
	}

	.h1-banner__content-thumb > img {
		min-height: 340px !important;
		max-height: 440px !important;
		transform: none !important;
	}

	.h1-banner__content-thumb-circle {
		position: absolute !important;
		left: 14px !important;
		bottom: 14px !important;
		width: 96px !important;
		height: 96px !important;
		padding: 8px !important;
		outline: 8px solid var(--rr-heading-primary) !important;
		margin-bottom: 0 !important;
		border-radius: 50% !important;
	}

	.h1-banner__content-thumb-circle-icon img {
		width: 24px !important;
		height: auto !important;
	}

	.h1-banner__content-contact,
	.h1-banner__content-social {
		padding: 24px 20px !important;
	}

	.h1-banner__content-contact .text h6 {
		font-size: 19px !important;
	}

	.h1-banner__content-contact .text p {
		font-size: 15px !important;
		word-break: break-word;
	}

	.h1-banner__content-social-list {
		justify-content: flex-start !important;
		margin-top: 16px !important;
	}

	.h1-banner__content-social-list ul {
		flex-wrap: wrap;
		justify-content: flex-start !important;
		gap: 8px;
	}

	.h1-banner__content-social-list ul li {
		margin-right: 0 !important;
	}

	/* Home & About headings */
	.h1-about__heading-text h2 {
		font-size: clamp(22px, 6vw, 32px) !important;
		line-height: 1.35 !important;
		margin-bottom: 32px !important;
	}

	.h1-about__heading-text h2 .ball-icon img {
		max-width: 36px;
		height: auto;
		vertical-align: middle;
	}

	.h1-about__item,
	.h1-about__item.border-1 {
		margin: 0 0 16px 0 !important;
		padding: 28px 20px !important;
		border-radius: 20px !important;
	}

	.h1-about__item-text h6 {
		font-size: 22px !important;
		margin-bottom: 8px !important;
	}

	.h1-about__item-text .dec {
		font-size: 15px !important;
		line-height: 1.55 !important;
	}

	.h1-about__item-text .dec br {
		display: none;
	}

	/* Rotated ticker strips: gentle angle on mobile so they don't clip */
	.rotate-1 {
		transform: rotate(-2deg) !important;
		margin-bottom: -20px !important;
	}

	.rotate-2 {
		transform: rotate(2deg) !important;
	}

	.h1-brand__content h2,
	.h1-brand__content h2 span {
		font-size: 26px !important;
	}

	/* Portfolio filter pills: clean wrap with readable text instead of 9px */
	.portfolio-filter {
		flex-wrap: wrap !important;
		border-radius: 20px !important;
		padding: 10px !important;
		gap: 6px;
	}

	.portfolio-filter button {
		font-size: 13px !important;
		line-height: 1.3 !important;
		padding: 8px 14px !important;
		margin: 0 !important;
	}

	/* Project cards */
	.h1-project__heading-text h2,
	.h1-service__heading h2,
	.h2-service__heading h2,
	.h1-pricing2__heading h2 {
		padding: 45px 12px !important;
		font-size: clamp(26px, 7vw, 38px) !important;
	}

	.custom-margin {
		margin-top: 10px !important;
	}

	/* Testimonials on mobile: keep client name visible and readable */
	.h1-test__slider-text p {
		font-size: 18px !important;
		line-height: 1.55 !important;
	}

	.h1-test__slider-text-clint {
		visibility: visible !important;
		opacity: 1 !important;
		padding: 10px 18px !important;
		gap: 12px !important;
	}

	.h1-test__slider-text-clint img {
		width: 48px;
		height: 48px;
		border-radius: 50%;
		object-fit: cover;
	}

	.h1-test__slider-text-clint-title h6 a {
		font-size: 18px !important;
	}

	.h1-test__slider-text-clint-title p {
		font-size: 14px !important;
		margin-top: 2px !important;
	}

	/* Forms & Contact page on mobile */
	.contact-wrapper .contact-thumb,
	.contact-wrapper .contact-thumb img {
		max-height: 320px !important;
	}

	.contact-us__area .contact-us__form-wrapper,
	.contact-us__area .contact-us__form-wrapper-3 {
		padding: 28px 20px !important;
	}

	.contact-us__area .contact-us__form-wrapper .title,
	.contact-us__area .contact-title h2,
	.contact-title h2,
	.faq-title h3,
	.prog__title h2 {
		font-size: clamp(28px, 7.5vw, 38px) !important;
		line-height: 1.2 !important;
	}

	.contact-item {
		padding: 26px 20px !important;
	}

	.contact-content h3 {
		font-size: 18px !important;
		word-break: break-word;
	}

	/* FAQ accordion on mobile */
	.rr-accordion-button {
		align-items: flex-start !important;
		gap: 12px;
		padding-top: 20px !important;
	}

	.rr-accordion-button .heading {
		font-size: 18px !important;
		line-height: 1.35 !important;
	}

	.rr-accordion-button .heading .dec {
		margin-left: 10px !important;
		font-size: 18px !important;
	}

	.rr-accordion-body {
		margin-left: 0 !important;
	}

	/* Work experience / education rows on About page */
	.work-studio__item {
		padding-top: 24px !important;
		padding-bottom: 24px !important;
		flex-direction: column;
		gap: 8px;
	}

	.work-studio__item-det .title {
		font-size: 22px !important;
		line-height: 1.35 !important;
	}

	/* Project details prev/next navigation on mobile */
	.navigation-item {
		flex-direction: row !important;
		justify-content: space-between !important;
		padding: 18px 20px !important;
		gap: 10px;
	}

	.navigation-item > div {
		width: auto !important;
	}

	.navigation-content h3,
	.navigation-cta h3 {
		font-size: 16px !important;
		line-height: 1.3 !important;
	}

	/* Search popup on mobile */
	#popup-search-box {
		height: 140px !important;
	}

	#popup-search-box .box-inner-wrap .search-close {
		top: 16px !important;
		right: 16px !important;
		width: 40px !important;
		height: 40px !important;
	}

	/* SweetAlert2 modal on small screens */
	.swal2-popup.ea-swal-popup {
		width: calc(100vw - 32px) !important;
		padding: 28px 20px 24px !important;
	}

	.ea-swal-title {
		font-size: 20px !important;
	}

	.ea-swal-text {
		font-size: 14px !important;
	}
}
