/* Styles for the dynamic sections, sliders, service/project pages and dark mode.
   Loaded after main.css and reuses its look (main color, headings, boxes). */

:root {
	--surface: #fff;
	--surface-alt: #eee;
	--text: #222;
	--muted: #707070;
	--border: #e3e3e3;
	--swiper-theme-color: var(--main-color);
	--swiper-navigation-size: 26px;
}

body.dark-mode {
	--surface: #111;
	--surface-alt: #000;
	--text: #fff;
	--muted: #c9c9c9;
	--border: #2b2b2b;
	background-color: #000;
	color: #fff;
}

/* ---------- Loader ---------- */
.page-loader {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: var(--surface);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.4s;
}
.page-loader span {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 4px solid var(--border);
	border-top-color: var(--main-color);
	animation: spin 0.8s linear infinite;
}
.page-loader.done {
	opacity: 0;
	pointer-events: none;
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- Buttons ---------- */
.btn-main {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: 25px;
	border: 2px solid var(--main-color);
	background-color: var(--main-color);
	color: #fff;
	font-weight: bold;
	cursor: pointer;
	transition: var(--main-transition);
}
.btn-main:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.btn-main.btn-outline {
	background-color: transparent;
	color: var(--main-color);
}
.landing-page .btn-main.btn-outline,
.page-hero .btn-main.btn-outline {
	color: #fff;
	border-color: #fff;
}
.btn-main.btn-small {
	padding: 6px 14px;
	font-size: 14px;
}
.hero-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 20px;
}

/* ---------- Landing ---------- */
.landing-page {
	transition: background-image 1s ease-in-out;
}
.introduction-text {
	max-width: 900px;
	width: 90%;
}
.introduction-text p {
	min-height: 64px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- About ---------- */
.about-me .about-text p {
	margin-bottom: 12px !important;
}
.about-me .img-box .avatar-fallback {
	width: 260px;
	height: 260px;
	font-size: 80px;
}
.about-me .contacts .direct a {
	display: flex;
}
.about-me .download-cv {
	border: none;
	font-family: inherit;
	padding: 14px 50px;
}
.cv-menu {
	position: relative;
}
.cv-menu-list {
	list-style: none;
	margin: 8px 0 0;
	padding: 6px;
	position: absolute;
	z-index: 30;
	min-width: 290px;
	background: var(--surface);
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: var(--main-transition);
}
.cv-menu.open .cv-menu-list {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.cv-menu-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--text);
}
.cv-menu-list a:hover {
	background-color: var(--surface-alt);
}
.cv-menu-list i {
	color: var(--main-color);
	font-size: 22px;
}
.cv-menu-list span {
	display: flex;
	flex-direction: column;
	text-align: left;
}
.cv-menu-list small {
	color: var(--muted);
}
.page-hero .cv-menu-list {
	left: 50%;
	transform: translate(-50%, -6px);
}
.page-hero .cv-menu.open .cv-menu-list {
	transform: translate(-50%, 0);
}
.hero-actions .download-cv {
	margin: 0;
	padding: 10px 22px;
	border-radius: 25px;
	background-color: var(--main-color);
	color: #fff;
	font-weight: bold;
	gap: 8px;
	cursor: pointer;
	border: none;
	font-size: 16px;
}
.hero-actions .download-cv a {
	color: #fff;
}

.avatar-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--main-color);
	color: #fff;
	font-weight: bold;
}

/* ---------- Stats ---------- */
.stats {
	padding: 40px 0;
	background: linear-gradient(45deg, var(--main-color), #333);
	color: #fff;
}
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	text-align: center;
}
.stat-box {
	padding: 20px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(6px);
}
.stat-box i {
	font-size: 30px;
	margin-bottom: 10px;
}
.stat-number {
	font-size: 42px;
	font-weight: bold;
	font-family: "Oswald", sans-serif;
}
.stat-box p {
	margin: 4px 0 0;
	opacity: 0.9;
}

/* ---------- Services ---------- */
.services {
	padding: var(--main-padding) 0;
}
.services h2 {
	margin-bottom: 40px;
}
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}
.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px 22px;
	background: var(--surface);
	color: var(--text);
	border-radius: 12px;
	border: 1px solid var(--border);
	overflow: hidden;
	transition: var(--main-transition);
}
.service-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background-color: var(--main-color);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s;
}
.service-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}
.service-card:hover::before {
	transform: scaleX(1);
}
.service-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--main-color);
	color: #fff;
	font-size: 26px;
	outline: 3px solid var(--main-color);
	border: 3px solid var(--surface);
}
.service-icon.big {
	width: 80px;
	height: 80px;
	font-size: 34px;
	border-color: #fff;
}
.service-card h3 {
	margin: 10px 0 0;
	color: var(--main-color);
}
.service-card h4 {
	margin: 0;
	color: var(--muted);
	font-weight: normal;
	font-size: 14px;
}
.service-card p {
	margin: 0;
	line-height: 1.7;
	color: var(--muted);
	flex: 1;
}
.service-card .more {
	color: var(--main-color);
	font-weight: bold;
}
.service-card .more i {
	transition: var(--main-transition);
}
.service-card:hover .more i {
	transform: translateX(5px);
}

/* ---------- Project cards & sliders ---------- */
.featured {
	padding: var(--main-padding) 0;
	background-color: var(--surface-alt);
}
.featured h2,
.page-section h2.main-heading {
	margin-bottom: 30px;
}
.swiper {
	padding-bottom: 46px !important;
}
.swiper-slide {
	height: auto !important;
}
.swiper-button-prev,
.swiper-button-next {
	top: calc(50% - 23px) !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.swiper-button-prev::after,
.swiper-button-next::after {
	font-size: 16px !important;
	font-weight: bold;
}
/* Without the Swiper library the slides become a horizontal scroller. */
.no-swiper .swiper-wrapper {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 10px;
}
.no-swiper .swiper-slide {
	flex: 0 0 min(340px, 85%);
	scroll-snap-align: start;
}
.no-swiper .swiper-button-prev,
.no-swiper .swiper-button-next,
.no-swiper .swiper-pagination {
	display: none;
}

.project-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 0 0 1px var(--border);
	transition: var(--main-transition);
}
.project-card:hover {
	box-shadow: 0 0 0 1px var(--main-color), 0 14px 30px rgba(0, 0, 0, 0.15);
}
.project-card-cover {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}
.project-card-cover img,
.project-card-cover .cover-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}
.project-card:hover .project-card-cover img {
	transform: scale(1.06);
}
.project-card-body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.project-card-body h3 {
	margin: 0;
	font-size: 20px;
}
.project-card-body h3 a {
	color: var(--main-color);
}
.project-card-body h4 {
	margin: 0;
	color: var(--muted);
	font-weight: normal;
	font-size: 14px;
}
.project-card-body p {
	margin: 0;
	color: var(--muted);
	line-height: 1.6;
	font-size: 14px;
	flex: 1;
}
.tag {
	align-self: flex-start;
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	background-color: var(--main-color);
	color: #fff;
	font-size: 12px;
	font-weight: bold;
}
.chips {
	list-style: none;
	padding: 0;
	margin: 6px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.chips li {
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 13px;
	border: 1px solid var(--main-color);
	color: var(--main-color);
	background: var(--surface);
}
.card-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 6px;
}
.cover-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-align: center;
	padding: 10px;
	color: #fff;
	width: 100%;
	height: 100%;
}
.cover-placeholder span {
	font-family: "Oswald", sans-serif;
	font-size: 22px;
	font-weight: 600;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.cover-placeholder small {
	opacity: 0.85;
}
.cover-placeholder.big {
	min-height: 320px;
	border-radius: 12px;
}

/* ---------- Gallery ---------- */
.buttons-filter .btn.all {
	background: linear-gradient(45deg, #6a11cb, #2575fc);
}
.gallary .images-box .gallery-item {
	position: relative;
	width: 200px;
	height: 150px;
	margin: 5px;
	padding: 1px;
	border-radius: 5px;
	overflow: hidden;
	cursor: pointer;
	background-color: var(--main-color);
	box-shadow: 0 0 0 1px var(--main-color);
	transition: var(--main-transition);
}
.gallary .images-box .gallery-item img,
.gallary .images-box .gallery-item .cover-placeholder {
	width: 100%;
	height: 100%;
	object-fit: fill;
	border-radius: 4px;
}
.gallary .images-box .gallery-item .cover-placeholder span {
	font-size: 17px;
}
.gallary .images-box .gallery-item .cover-placeholder small {
	font-size: 11px;
}
.gallary .images-box .gallery-item figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 6px 8px;
	font-size: 13px;
	font-weight: bold;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
	transform: translateY(100%);
	transition: var(--main-transition);
}
.gallary .images-box .gallery-item:hover,
.gallary .images-box .gallery-item:focus-visible {
	scale: 1.1;
	z-index: 2;
	outline: none;
}
.gallary .images-box .gallery-item:hover figcaption,
.gallary .images-box .gallery-item:focus-visible figcaption {
	transform: none;
}
@media (max-width: 767px) {
	.gallary .images-box .gallery-item:hover {
		scale: 1;
	}
	.gallary .images-box .gallery-item figcaption {
		transform: none;
	}
}
@media (max-width: 575px) {
	.gallary .images-box .gallery-item {
		width: 100%;
		height: 200px;
	}
}
.project-popup {
	width: min(720px, 90%);
	text-align: center;
	padding-bottom: 16px;
	background: var(--surface);
}
.project-popup img,
.project-popup .cover-placeholder {
	display: block;
	width: 100%;
	max-height: 60vh;
	min-height: 240px;
	object-fit: contain;
	background: #000;
}
.project-popup h3 {
	margin: 0;
}
.project-popup .popup-text {
	margin: 0 20px 10px;
	color: var(--muted);
	line-height: 1.6;
}
.project-popup .card-actions {
	justify-content: center;
}

/* ---------- Skills ---------- */
.skills .skill-box .rate .skill-progress span {
	width: 0;
	white-space: nowrap;
	overflow: hidden;
}
.skill-icon-fallback {
	width: 65px;
	height: 65px;
	flex: 0 0 65px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 22px;
	color: var(--main-color);
}

/* ---------- Certificates ---------- */
.certificate-card {
	margin: 0;
	height: 100%;
	cursor: pointer;
	background: var(--surface);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 0 0 1px var(--border);
	transition: var(--main-transition);
}
.certificate-card:hover {
	box-shadow: 0 0 0 2px var(--main-color), 5px 5px 20px rgba(0, 0, 0, 0.3);
}
.certificate-card img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
	transition: transform 0.4s;
}
.certificate-card:hover img {
	transform: scale(1.05);
}
.certificate-card figcaption {
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--text);
}
.certificate-card figcaption small {
	color: var(--muted);
}
.popup {
	z-index: 2000;
}
.popup h2 a {
	color: var(--main-color);
}

/* ---------- Experience timeline ---------- */
.timeline h2 {
	margin-bottom: 30px;
}
.timeline .timeline-content .content h4.company {
	margin: -4px 0 10px;
	color: #444;
}
.timeline .timeline-content .content ul {
	margin: 8px 0 0;
	padding-left: 18px;
	color: #666;
	line-height: 1.6;
}
.timeline .timeline-content .left,
.timeline .timeline-content .right {
	margin-top: 10px;
}

/* ---------- Features ---------- */
.features .feat-box .avatar-fallback {
	width: 100px;
	height: 100px;
	font-size: 30px;
	outline: 3px solid var(--main-color);
	border: 3px solid #fff;
}

/* ---------- Testimonials ---------- */
.testimonials .testimonials-slider {
	position: relative;
	z-index: 22;
	display: block;
}
.testimonials .ts-content .ts-box {
	width: auto;
	height: 100%;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.testimonials .quote-icon {
	color: var(--main-color);
	font-size: 26px;
	margin-bottom: 10px;
}
.testimonials .ts-content .ts-box .person-info {
	display: flex;
	align-items: center;
	gap: 12px;
}
.testimonials .ts-content .ts-box .person-info .avatar-fallback {
	width: 50px;
	height: 50px;
	flex: 0 0 50px;
}
.testimonials .ts-content .ts-box .person-info h4 {
	margin: 0 0 2px;
}
.testimonials .swiper-pagination-bullet {
	background: #fff;
	opacity: 0.6;
}
.testimonials .swiper-pagination-bullet-active {
	opacity: 1;
}

/* ---------- Contact ---------- */
.contact.contact-section {
	min-height: auto;
	padding: 70px 0;
}
.contact.contact-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}
.contact.contact-section .container {
	position: relative;
}
.contact-sub {
	text-align: center;
	color: #eee;
	margin: 0 auto 25px;
	max-width: 640px;
	line-height: 1.6;
}
.contact-info {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 25px;
}
.contact-info a,
.contact-info span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 25px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}
.contact-info i {
	color: var(--main-color);
}
.contact form .hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.contact form input[type="submit"]:disabled {
	opacity: 0.6;
	cursor: wait;
}
.form-status {
	clear: both;
	text-align: center;
	color: #fff;
	margin: 0;
	padding-top: 10px;
	min-height: 24px;
}
.form-status.success {
	color: #7CFC9A;
}
.form-status.error {
	color: #ff8a80;
}

/* ---------- WhatsApp ---------- */
#whatsapp-popup i {
	font-size: 34px;
	color: #fff;
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Service & project pages ---------- */
.page-hero {
	position: relative;
	min-height: 70vh;
	display: flex;
	flex-direction: column;
	background-image: url("../images/img3.jpg");
	background-size: cover;
	background-position: center;
}
.page-hero .overlay {
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
	background-color: rgba(0, 0, 0, 0.55);
	z-index: 1;
}
.page-hero .header .logo {
	display: block;
}
.page-hero-content {
	position: relative;
	z-index: 2;
	margin: auto;
	padding: 30px 20px;
	width: min(900px, 90%);
	text-align: center;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 15px;
	margin-bottom: 60px;
}
.page-hero-content h1 {
	font-size: 40px;
	margin: 12px 0 6px;
}
.page-hero-content h2 {
	font-size: 20px;
	color: var(--main-color);
	margin: 0 0 12px;
	font-weight: normal;
}
.page-hero-content p {
	font-size: 18px;
	line-height: 1.6;
	margin: 0 auto;
	max-width: 700px;
}
.page-hero-content .contacts {
	justify-content: center;
	display: flex;
	gap: 14px;
	margin-top: 15px;
	font-size: 22px;
}
.page-hero-content .contacts a {
	color: #fff;
}
.page-section {
	padding: var(--main-padding) 0;
}
.page-section.alt {
	background-color: var(--surface-alt);
}
.sub-heading {
	color: var(--main-color);
	margin: 25px 0 10px;
}
.service-overview {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 40px;
	align-items: start;
}
.service-description .main-heading,
.project-content .main-heading {
	text-align: left;
}
.service-description p,
.project-content p {
	line-height: 1.8;
	color: var(--muted);
	margin-bottom: 14px;
}
.service-features {
	padding: 25px;
	border-radius: 12px;
	background: var(--surface);
	box-shadow: 0 0 0 1px var(--border), 0 12px 30px rgba(0, 0, 0, 0.08);
	border-top: 4px solid var(--main-color);
}
.service-features h3 {
	margin: 0 0 15px;
	color: var(--main-color);
}
.check-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.check-list li {
	position: relative;
	padding: 8px 0 8px 32px;
	line-height: 1.6;
	color: var(--text);
	border-bottom: 1px dashed var(--border);
}
.check-list li:last-child {
	border-bottom: none;
}
.check-list li::before {
	content: "\f00c";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	left: 0;
	top: 9px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--main-color);
	color: #fff;
}
.project-gallery {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 40px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.project-gallery.swiper {
	padding-bottom: 0 !important;
}
.project-gallery .swiper-slide img {
	display: block;
	width: 100%;
	max-height: 560px;
	object-fit: contain;
	background: #111;
}
.project-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	align-items: start;
}
.project-meta {
	padding: 22px;
	border-radius: 12px;
	background: var(--surface);
	box-shadow: 0 0 0 1px var(--border), 0 12px 30px rgba(0, 0, 0, 0.08);
	border-top: 4px solid var(--main-color);
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: sticky;
	top: 20px;
}
.project-meta > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.project-meta span {
	color: var(--muted);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.project-meta strong {
	color: var(--text);
}
.project-meta a {
	color: var(--main-color);
}
.not-found {
	padding: 80px 0;
	text-align: center;
}
@media (max-width: 900px) {
	.service-overview,
	.project-layout {
		grid-template-columns: 1fr;
	}
	.project-meta {
		position: static;
	}
}
@media (max-width: 575px) {
	.page-hero-content h1 {
		font-size: 28px;
	}
}

/* ---------- Dark mode (replaces the old inline-style switcher) ---------- */
body.dark-mode .timeline,
body.dark-mode .skills {
	background-color: #000;
}
body.dark-mode .settings-box {
	background-color: #000;
}
body.dark-mode .settings-box .option-box {
	background-color: #333;
}
body.dark-mode .settings-box .option-box h4,
body.dark-mode .about-me .info-box p,
body.dark-mode .features .feat-box h4,
body.dark-mode .features .feat-box p,
body.dark-mode .testimonials .ts-content .ts-box p,
body.dark-mode .testimonials .ts-content .ts-box .person-info h4 {
	color: #fff;
}
body.dark-mode .testimonials .ts-content .ts-box {
	background-color: #000;
}
body.dark-mode .featured,
body.dark-mode .page-section.alt {
	background-color: #0b0b0b;
}
body.dark-mode .swiper-button-prev,
body.dark-mode .swiper-button-next {
	background: rgba(40, 40, 40, 0.9);
}
body.dark-mode .popup-content {
	background-color: #111;
	color: #fff;
}

/* ---------- Static intro (crawlable text) ---------- */
.seo-intro {
	padding: 40px 0;
	background-color: var(--surface-alt);
}
.seo-intro-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}
.seo-intro-col h2 {
	color: var(--main-color);
	font-size: 22px;
	margin: 0 0 12px;
}
.seo-intro-col p {
	color: var(--muted);
	line-height: 1.8;
	margin: 0 0 14px;
}
.seo-intro-col[dir="rtl"] {
	font-family: "Cairo", "Open Sans", sans-serif;
}
.seo-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.seo-links a {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 13px;
	border: 1px solid var(--main-color);
	color: var(--main-color);
	background: var(--surface);
	transition: var(--main-transition);
}
.seo-links a:hover {
	background: var(--main-color);
	color: #fff;
}
@media (max-width: 767px) {
	.seo-intro-grid {
		grid-template-columns: 1fr;
	}
}

/* Mostaql / Khamsat have no icon font: their logos, sized like the other icons. */
.about-me .contacts img.logo-icon,
.logo-icon {
	width: 29px;
	height: 29px;
	object-fit: contain;
	border-radius: 7px;
	display: block;
}
.page-hero-content .contacts .logo-icon {
	width: 24px;
	height: 24px;
}

/* Platform name tooltip on the profile link icons. */
.contacts .direct {
	position: relative;
}
.contacts .direct[data-tooltip]::before,
.contacts .direct[data-tooltip]::after {
	position: absolute;
	left: 50%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s;
	z-index: 40;
}
.contacts .direct[data-tooltip]::after {
	content: attr(data-tooltip);
	bottom: calc(100% + 12px);
	transform: translate(-50%, 4px);
	padding: 5px 10px;
	border-radius: 6px;
	background: #222;
	color: #fff;
	font-family: "Cairo", "Open Sans", sans-serif;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.contacts .direct[data-tooltip]::before {
	content: "";
	bottom: calc(100% + 2px);
	transform: translate(-50%, 4px);
	border: 5px solid transparent;
	border-top-color: #222;
}
.contacts .direct:hover::before,
.contacts .direct:hover::after,
.contacts .direct:focus-within::before,
.contacts .direct:focus-within::after {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}
/* Rotate only the icon on hover so the tooltip stays level. */
.about-me .contacts .direct:hover {
	transform: none;
}
.contacts .direct a > * {
	transition: transform 0.3s;
}
.contacts .direct:hover a > * {
	transform: rotate(45deg);
}
