/*=====================================================
  Toptech Project Details Gallery
  Custom module for project-details.html
=====================================================*/

.pd-gallery-area {
	background: #ffffff;
	padding: 110px 0 0;
	position: relative;
	z-index: 1;
}

.pd-gallery-wrap {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 15px;
}

.pd-gallery-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 60px;
	align-items: center;
}

/*--- Gallery ---*/

.pd-gallery-media {
	min-width: 0;
}

.pd-gallery-main {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	padding: 14px;
	background: #f3f8fc;
	border-radius: 8px;
	overflow: hidden;
}

.pd-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.8s ease, opacity 0.45s ease;
}

.pd-gallery-main:hover img {
	transform: scale(1.02);
}

.pd-gallery-main img.is-switching {
	animation: pdGalleryFade 0.5s ease;
}

@keyframes pdGalleryFade {
	from {
		opacity: 0;
		transform: scale(0.97);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.pd-gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 18px;
}

.pd-gallery-thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	padding: 0;
	background: #f3f8fc;
	border: 2px solid transparent;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: 0.5s;
}

.pd-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: 0.5s;
}

.pd-gallery-thumb:hover {
	border-color: rgba(12, 90, 219, 0.35);
	transform: translateY(-3px);
}

.pd-gallery-thumb.active {
	border-color: #0c5adb;
	box-shadow: 0 10px 22px rgba(12, 90, 219, 0.18);
}

.pd-gallery-thumb.active img {
	transform: scale(1.02);
}

.pd-gallery-thumb:focus-visible {
	border-color: #0c5adb;
	box-shadow: 0 0 0 3px rgba(12, 90, 219, 0.2);
}

/*--- Content ---*/

.pd-gallery-info {
	min-width: 0;
}

.pd-gallery-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-family: "Rajdhani", sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #0c5adb;
}

.pd-gallery-label:before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #0c5adb;
}

.pd-gallery-title {
	margin: 0 0 18px;
	font-size: 46px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #041424;
	overflow-wrap: break-word;
}

.pd-gallery-desc {
	margin: 0 0 30px;
	font-size: 17px;
	line-height: 30px;
	color: #686868;
}

.pd-gallery-specs {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	border: 1px solid #e4eaf3;
	border-radius: 6px;
	overflow: hidden;
}

.pd-gallery-specs li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 24px;
	background: #ffffff;
	border-bottom: 1px solid #e4eaf3;
	transition: 0.3s;
}

.pd-gallery-specs li:last-child {
	border-bottom: 0;
}

.pd-gallery-specs li:hover {
	background: #f3f8fc;
}

.pd-gallery-specs span {
	font-family: "Rajdhani", sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #041424;
}

.pd-gallery-specs em {
	font-style: normal;
	font-size: 16px;
	line-height: 24px;
	color: #686868;
	text-align: right;
}

/*--- Buttons ---*/

.pd-gallery-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.pd-gallery-btn {
	position: relative;
	z-index: 1;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 30px;
	border: 1px solid #0c5adb;
	border-radius: 4px;
	font-family: "Rajdhani", sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: 0.5s;
}

.pd-gallery-btn i {
	font-size: 18px;
	line-height: 1;
	transition: 0.5s;
}

.pd-gallery-btn:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	width: 0;
	height: 100%;
	transition: 0.5s;
}

.pd-gallery-btn:hover:before {
	width: 100%;
}

.pd-gallery-btn.primary {
	background: #0c5adb;
	color: #ffffff;
}

.pd-gallery-btn.primary:before {
	background: #ffffff;
}

.pd-gallery-btn.primary:hover {
	color: #0c5adb;
}

.pd-gallery-btn.primary:hover i {
	color: #0c5adb;
	transform: translate(3px, -3px);
}

.pd-gallery-btn.outline {
	background: transparent;
	color: #0c5adb;
}

.pd-gallery-btn.outline:before {
	background: #0c5adb;
}

.pd-gallery-btn.outline:hover {
	color: #ffffff;
}

.pd-gallery-btn.outline:hover i {
	color: #ffffff;
	transform: translate(3px, -3px);
}

/*--- Product Details Content ---*/

.pd-details-area {
	background: #ffffff;
	padding: 70px 0 110px;
}

.pd-details-head {
	text-align: center;
	margin-bottom: 38px;
}

.pd-details-head h2 {
	position: relative;
	margin: 0;
	padding-bottom: 22px;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #041424;
}

.pd-details-head h2:after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 70px;
	height: 3px;
	margin-left: -35px;
	border-radius: 2px;
	background: #0c5adb;
}

.pd-details-content {
	max-width: 1080px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 32px;
	color: #686868;
}

.pd-details-content > *:first-child {
	margin-top: 0;
}

.pd-details-content > *:last-child {
	margin-bottom: 0;
}

.pd-details-content p {
	margin-bottom: 22px;
}

.pd-details-content h2,
.pd-details-content h3,
.pd-details-content h4,
.pd-details-content h5 {
	margin: 34px 0 16px;
	font-family: "Rajdhani", sans-serif;
	font-weight: 700;
	line-height: 1.3;
	color: #041424;
}

.pd-details-content h2 {
	font-size: 34px;
}

.pd-details-content h3 {
	font-size: 28px;
}

.pd-details-content h4 {
	font-size: 24px;
}

.pd-details-content img {
	max-width: 100%;
	height: auto;
	margin: 8px 0 24px;
	border-radius: 8px;
}

.pd-details-content ul,
.pd-details-content ol {
	margin: 0 0 22px;
	padding-left: 22px;
}

.pd-details-content ul {
	list-style: disc;
}

.pd-details-content ol {
	list-style: decimal;
}

.pd-details-content ul li {
	list-style: disc;
}

.pd-details-content ol li {
	list-style: decimal;
}

.pd-details-content li {
	margin-bottom: 10px;
}

.pd-details-content a {
	color: #0c5adb;
	text-decoration: underline;
}

/*--- Quote Modal ---*/

.pd-modal-open {
	overflow: hidden;
}

.pd-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pd-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.pd-modal-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(4, 20, 36, 0.68);
}

.pd-modal-dialog {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 720px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 45px;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 30px 80px rgba(4, 20, 36, 0.3);
	opacity: 0;
	transform: translateY(24px) scale(0.98);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.pd-modal.is-open .pd-modal-dialog {
	opacity: 1;
	transform: none;
}

.pd-modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid #e4eaf3;
	border-radius: 50%;
	background: #ffffff;
	color: #041424;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: 0.4s;
}

.pd-modal-close:hover {
	border-color: #0c5adb;
	background: #0c5adb;
	color: #ffffff;
}

.pd-modal-head {
	margin-bottom: 28px;
	padding-right: 40px;
}

.pd-modal-head h3 {
	margin: 0 0 10px;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #041424;
}

.pd-modal-head p {
	margin: 0;
	font-size: 16px;
	line-height: 26px;
	color: #686868;
}

.pd-form-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 18px;
}

.pd-form-field {
	margin-bottom: 18px;
}

.pd-form-field label {
	display: block;
	margin-bottom: 8px;
	font-family: "Rajdhani", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #041424;
}

.pd-form-field input,
.pd-form-field select,
.pd-form-field textarea {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 1px solid #e4eaf3;
	border-radius: 4px;
	background: #f7fafd;
	color: #041424;
	font-family: "Nunito", sans-serif;
	font-size: 16px;
	outline: none;
	transition: 0.3s;
}

.pd-form-field textarea {
	height: auto;
	min-height: 120px;
	padding: 14px 16px;
	resize: vertical;
}

.pd-form-field input:focus,
.pd-form-field select:focus,
.pd-form-field textarea:focus {
	border-color: #0c5adb;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(12, 90, 219, 0.1);
}

.pd-form-field input::placeholder,
.pd-form-field textarea::placeholder {
	color: #9aa6b5;
}

.pd-form-submit {
	width: 100%;
	margin-top: 6px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.pd-form-success {
	display: none;
	padding: 20px 0 10px;
	text-align: center;
}

.pd-form-success i {
	display: block;
	margin-bottom: 16px;
	font-size: 52px;
	line-height: 1;
	color: #0c5adb;
}

.pd-form-success h3 {
	margin: 0 0 10px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	color: #041424;
}

.pd-form-success p {
	margin: 0;
	font-size: 16px;
	line-height: 26px;
	color: #686868;
}

/*--- Responsive ---*/

@media (max-width: 1199px) {
	.pd-gallery-grid {
		gap: 40px;
	}

	.pd-gallery-title {
		font-size: 38px;
	}

	.pd-gallery-main {
		padding: 20px;
	}
}

@media (max-width: 991px) {
	.pd-gallery-area {
		padding: 80px 0 0;
	}

	.pd-details-area {
		padding: 60px 0 80px;
	}

	.pd-details-head h2 {
		font-size: 36px;
	}

	.pd-gallery-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.pd-gallery-main {
		aspect-ratio: auto;
		height: 460px;
	}
}

@media (max-width: 767px) {
	.pd-gallery-area {
		padding: 70px 0 0;
	}

	.pd-details-area {
		padding: 50px 0 70px;
	}

	.pd-details-head {
		margin-bottom: 30px;
	}

	.pd-details-head h2 {
		font-size: 32px;
	}

	.pd-details-content {
		font-size: 16px;
		line-height: 29px;
	}

	.pd-modal-dialog {
		padding: 36px 24px;
	}

	.pd-modal-head {
		padding-right: 30px;
	}

	.pd-modal-head h3 {
		font-size: 26px;
	}

	.pd-form-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.pd-gallery-main {
		height: 360px;
		padding: 16px;
	}

	.pd-gallery-thumbs {
		gap: 10px;
		margin-top: 14px;
	}

	.pd-gallery-title {
		font-size: 32px;
	}

	.pd-gallery-desc {
		margin-bottom: 24px;
	}

	.pd-gallery-specs {
		margin-bottom: 26px;
	}
}

@media (max-width: 575px) {
	.pd-gallery-main {
		height: 280px;
	}

	.pd-gallery-thumbs {
		gap: 8px;
	}

	.pd-gallery-thumb {
		padding: 0;
	}

	.pd-gallery-title {
		font-size: 28px;
	}

	.pd-gallery-specs li {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		padding: 12px 16px;
	}

	.pd-gallery-specs em {
		text-align: left;
	}

	.pd-gallery-btns {
		gap: 12px;
	}

	.pd-gallery-btn {
		width: 100%;
	}

	.pd-details-head h2 {
		font-size: 28px;
	}

	.pd-modal {
		padding: 12px;
	}

	.pd-modal-dialog {
		padding: 30px 18px;
	}

	.pd-modal-close {
		top: 12px;
		right: 12px;
		width: 38px;
		height: 38px;
	}
}
