/* ------------------------------------------------------------- *
 * Tariq Alazzeh: custom overrides (loaded after theme.css)
 * Bright electric blue accent on pure black.
 * Change the blue in one place: --ta-blue
 * ------------------------------------------------------------- */
:root {
	--ta-blue: #00b8fc;
	--ta-blue-glow: rgba(0, 184, 252, .35);
	--tt-main-color: var(--ta-blue);
}

/* Dark mode (default): pure black */
body:not(.tt-light-style-on) {
	--tt-main-bg-color: #000;
	background-color: #000;
}

/* Light mode: soft off-white, slightly deeper blue for small text so it stays readable */
body.tt-light-style-on {
	--tt-main-bg-color: #f7f7f5;
	--ta-blue: #0096db;
}
body.tt-light-style-on .tt-btn-primary { background-color: #00b8fc !important; }
::selection { background: var(--ta-blue); color: #000; }

/* Hero: highlight word as a blue outline (upright, not italic) */
.ph-caption-title em,
.ph-caption-title .text-stroke-light {
	color: transparent !important;
	-webkit-text-fill-color: transparent !important;
	-webkit-text-stroke: 2px var(--ta-blue) !important;
	font-style: normal !important;
}

/* Section labels and small headings */
.tt-heading-subtitle,
.ph-caption-subtitle,
.pgi-category,
.tt-np-subtitle,
.tt-ac-head-title:hover { color: var(--ta-blue) !important; }

/* Links */
a:hover,
.tt-link:hover,
.tt-ol-menu-list a:hover,
.tt-main-menu-list > li > a:hover,
.tt-ol-submenu-list a:hover,
.tt-social-buttons a:hover,
.social-buttons a:hover { color: var(--ta-blue) !important; }

/* Project titles turn blue on hover */
.pgi-title a:hover,
.portfolio-grid-item:hover .pgi-title a { color: var(--ta-blue) !important; }

/* Buttons: pill shaped, solid blue */
.tt-btn,
.tt-btn-primary {
	border-radius: 999px !important;
}
.tt-btn-primary,
.tt-btn-primary:hover {
	background-color: var(--ta-blue) !important;
	color: #000 !important;
}
.tt-btn-primary > *,
.tt-btn-primary > *::after { color: #000 !important; }
.tt-btn-primary:hover { box-shadow: 0 0 32px var(--ta-blue-glow); }

/* Magic cursor "View" bubble */
#ball.ball-view {
	background-color: var(--ta-blue) !important;
	color: #000 !important;
}
#ball.magnetic-active { border-color: var(--ta-blue) !important; }

/* "All works" rotating circle button */
.tt-scrolling-btn:hover svg text,
.tt-scrolling-btn:hover .scr-btn-text { fill: var(--ta-blue); color: var(--ta-blue); }

/* Active slider bullets */
.swiper-pagination-bullet-active { background: var(--ta-blue) !important; border-color: var(--ta-blue) !important; }

/* Scroll-down indicator */
.tt-scroll-down-inner:hover { color: var(--ta-blue); }

/* Dark / light switch button */
.tt-style-switch { background-color: var(--ta-blue) !important; color: #000 !important; }
body:not(.is-mobile) .tt-style-switch:hover { box-shadow: 0 0 24px var(--ta-blue-glow); }

/* Portfolio page: compact header so the work shows sooner */
#page-header.ta-ph-compact { min-height: 0; padding-bottom: 20px; }
#page-header.ta-ph-compact .page-header-inner { padding-top: 22vh; padding-bottom: 40px; }
#page-header.ta-ph-compact .tt-scroll-down { display: none; }
#page-header.ta-ph-compact .ph-caption-description { margin-top: 18px; font-size: 18px; opacity: .7; }
#page-header.ta-ph-compact ~ #page-content .pgi-caption { padding-top: 14px; }
#page-header.ta-ph-compact ~ #page-content .pgi-title { font-size: clamp(20px, 2vw, 28px); }

/* About page: two short lists under the bio */
.ta-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 80px; padding-top: 40px; border-top: 1px solid rgba(150,150,150,.25); }
.ta-about-grid .tt-heading-subtitle { margin-bottom: 18px; }
.ta-list { list-style: none; padding: 0; margin: 0; }
.ta-list li { font-size: 20px; padding: 10px 0; border-bottom: 1px solid rgba(150,150,150,.15); }
@media (max-width: 640px) { .ta-about-grid { grid-template-columns: 1fr; } }

/* Signature: hide the grey box baked into the image and keep it a sensible size */
.tt-signature img { max-width: 300px !important; width: 100%; height: auto; }
body:not(.tt-light-style-on) .tt-signature img { filter: contrast(1.3); mix-blend-mode: screen; }
.tt-signature img.ta-sig-invert { filter: invert(1) contrast(1.3); mix-blend-mode: multiply; }

/* About page: portrait next to the bio */
.ta-about-intro { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.ta-portrait { margin: 0; position: sticky; top: 120px; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: #0b6fcf; box-shadow: 0 30px 80px rgba(0, 120, 220, .25); }
.ta-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.ta-portrait:hover img { transform: scale(1.06); }
.ta-portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.ta-about-text .text-xxlg h2 { margin-top: 0; }
@media (max-width: 900px) {
	.ta-about-intro { grid-template-columns: 1fr; }
	.ta-portrait { position: relative; top: 0; max-width: 460px; }
}

/* ------------------------------------------------------------- *
 * Homepage: charcoal paper texture with a soft diagonal shadow
 * (inspired by the Urban Worldwide project header). Dark mode only.
 * ------------------------------------------------------------- */
body.ta-home:not(.tt-light-style-on) {
	--tt-main-bg-color: #171717;
	background-color: #171717;
}
/* fine grain over the whole page */
body.ta-home:not(.tt-light-style-on)::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9990;
	pointer-events: none;
	opacity: .22;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* diagonal light/shadow across the hero, like light falling through a window */
body.ta-home:not(.tt-light-style-on) #page-header::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		linear-gradient(118deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.6) 22%, rgba(0,0,0,0) 44%),
		radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.035), transparent 60%);
}
body.ta-home:not(.tt-light-style-on) #page-header .page-header-inner,
body.ta-home:not(.tt-light-style-on) #page-header .tt-scroll-down { position: relative; z-index: 1; }

body.ta-home #page-header { position: relative; }

/* Menu and filter links: no slant on hover/active, just colour */
.tt-ol-menu-list > li > a,
.tt-ol-menu-list > li > .tt-ol-submenu-trigger > a,
.tt-main-menu-list > li > a,
.tt-main-menu-list > li > .tt-submenu-trigger a,
.ttgr-cat-list > li > a { transform: none !important; font-style: normal !important; }

