/*
Theme Name: Ahmed Elkady Portfolio
Theme URI: https://linkedin.com/in/ahmedelkady007
Author: Ahmed Mohamed Elkady
Author URI: https://linkedin.com/in/ahmedelkady007
Description: An editorial, ultra-premium WordPress block theme (Full Site Editing) with a deep onyx-and-gold visual identity for an executive HR leader specializing in SAP SuccessFactors, People Analytics, Power BI, and HR digital transformation. Features a typographic hero, Fraunces display serif paired with Manrope, dark glass cards, metallic gold dividers, a refined gold page frame with corner brackets, numbered editorial sections, premium animated stat counters, and an elegant timeline. Fully editable from the WordPress Site Editor, RTL-ready, responsive, and built entirely with Gutenberg block patterns. No paid plugins required.
Requires at least: 6.1
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ahmed-elkady
Tags: full-site-editing, block-patterns, portfolio, business, one-column, two-columns, custom-colors, custom-menu, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready, blog
*/

/* -------------------------------------------------------------------------
   Base resets, page frame & onyx texture.
   Component styling lives in assets/css/theme.css.
   ---------------------------------------------------------------------- */

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: #08080a;
	background-image:
		radial-gradient(1200px 620px at 82% -8%, rgba(200, 163, 90, 0.07), transparent 60%),
		radial-gradient(900px 520px at -12% 18%, rgba(200, 163, 90, 0.045), transparent 56%),
		radial-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px);
	background-size: auto, auto, 22px 22px;
	background-attachment: fixed, fixed, fixed;
	color: #f1ede4;
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: #c8a35a;
}

/* ---- Luxury gold page frame + corner brackets (fixed, decorative) ---- */
body::before {
	content: "";
	position: fixed;
	inset: 14px;
	border: 1px solid rgba(200, 163, 90, 0.18);
	border-radius: 2px;
	pointer-events: none;
	z-index: 9990;
}

body::after {
	content: "";
	position: fixed;
	inset: 14px;
	pointer-events: none;
	z-index: 9991;
	opacity: 0.62;
	background:
		linear-gradient(#c8a35a, #c8a35a) left 0 top 0 / 20px 1.5px no-repeat,
		linear-gradient(#c8a35a, #c8a35a) left 0 top 0 / 1.5px 20px no-repeat,
		linear-gradient(#c8a35a, #c8a35a) right 0 top 0 / 20px 1.5px no-repeat,
		linear-gradient(#c8a35a, #c8a35a) right 0 top 0 / 1.5px 20px no-repeat,
		linear-gradient(#c8a35a, #c8a35a) left 0 bottom 0 / 20px 1.5px no-repeat,
		linear-gradient(#c8a35a, #c8a35a) left 0 bottom 0 / 1.5px 20px no-repeat,
		linear-gradient(#c8a35a, #c8a35a) right 0 bottom 0 / 20px 1.5px no-repeat,
		linear-gradient(#c8a35a, #c8a35a) right 0 bottom 0 / 1.5px 20px no-repeat;
}

@media (max-width: 782px) {
	body::before,
	body::after {
		display: none;
	}
}

/* Keyboard focus ring */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
	outline: 2px solid #c8a35a;
	outline-offset: 3px;
	border-radius: 2px;
}

::selection {
	background: rgba(200, 163, 90, 0.85);
	color: #08080a;
}

/* Premium scrollbar (WebKit) */
::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

::-webkit-scrollbar-track {
	background: #08080a;
}

::-webkit-scrollbar-thumb {
	background: #2a2620;
	border: 3px solid #08080a;
	border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
	background: #463922;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #16161c;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(200, 163, 90, 0.6);
	color: #ead9ad;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
