/* Base setup */
:root {
	--clr-bg-deep: #090b1a;
	--clr-bg-space: #0c0f2b;
	--clr-accent-1: #8aa0ff;
	--clr-accent-2: #6a5cff;
	--clr-accent-3: #3a2bff;
	--clr-text: #dfe6ff;
	--clr-text-dim: #a9b0d9;
	--card-radius: 18px;
    --header-opacity: .25;
}

* { box-sizing: border-box; }
html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	background: radial-gradient(1200px 700px at 35% 8%, rgba(143, 146, 255, .55), transparent 65%),
		linear-gradient(180deg, #101231 0%, #060714 100%);
	color: var(--clr-text);
	font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

/* Star canvas full-bleed */
#stars {
	position: fixed;
	inset: 0;
	z-index: 0; /* فوق خلفية الصفحة وتحت المحتوى */
	pointer-events: none;
	background: radial-gradient(1200px 700px at 38% 5%, rgba(108, 120, 255, .45), transparent 60%);
}


.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 12px 24px;
	background: transparent; /* fully invisible header bar */
	backdrop-filter: none;
	z-index: 10;
}

.header-inner {
    max-width: 1400px;
	margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.brand { color: var(--clr-text); font-weight: 800; text-decoration: none; margin-inline-end: 16px; letter-spacing: .2px; }
.left-group { display: flex; align-items: center; gap: 12px; }
.right-group { display: flex; align-items: center; gap: 14px; justify-self: end; }

.temp-badge { color: var(--clr-text); opacity: 0.9; font-size: 15px; display: flex; align-items: baseline; gap: 6px; }
.temp-number { font-weight: 800; letter-spacing: .5px; }
.temp-degree { font-weight: 700; opacity: .9; }
.temp-label { color: var(--clr-text-dim); font-weight: 600; }

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 28px;
}

.site-nav a { color: var(--clr-text); text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .2px; opacity: .92; }
.site-nav a:hover { color: white; text-shadow: 0 0 16px rgba(138, 160, 255, .5); }

.contact-link { justify-self: end; color: var(--clr-text); font-weight: 700; text-decoration: none; font-size: 14px; }
.contact-link:hover { color: white; text-shadow: 0 0 16px rgba(106, 92, 255, .6); }

.header-cta {
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(180deg, #6b63ff, #3a2bff);
    color: #fff; text-decoration: none; font-weight: 800; font-size: 13px;
    box-shadow: 0 8px 20px rgba(58, 43, 255, .35);
}
.header-cta:hover { filter: brightness(1.08); }

/* Header transparency shift on scroll */
.site-header.scrolled { background: transparent; }

/* Hero */
.hero {
	min-height: 100svh;
	height: 100svh;
	display: grid;
	place-items: center;
	position: relative;
	padding: 0 0 8vh;
	overflow: hidden;
}

.hero-inner {
	max-width: 1200px;
	width: 100%;
	margin-top: 50vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 40px;
	height: 100%;
	padding: 0 24px;
}


.hero-title {
    font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	font-size: clamp(56px, 10vw, 140px);
	line-height: 0.95;
	text-align: center;
	letter-spacing: .5px;
	color: #f6f8ff;
	filter: drop-shadow(0 10px 30px rgba(60, 56, 255, .15));
	font-weight: 900;
	direction: rtl;
    margin: 0;
	animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
	0% {
		filter: drop-shadow(0 10px 30px rgba(60, 56, 255, .15)) 
		        drop-shadow(0 0 20px rgba(107, 124, 255, .3));
	}
	100% {
		filter: drop-shadow(0 10px 30px rgba(60, 56, 255, .25)) 
		        drop-shadow(0 0 40px rgba(107, 124, 255, .6))
		        drop-shadow(0 0 60px rgba(107, 124, 255, .2));
	}
}

/* Alternative placements you can toggle with a class on .hero */
.hero--stacked-right .hero-inner { grid-template-columns: 1fr; grid-template-areas: 'title' 'copy'; align-items: end; justify-items: end; }
.hero--stacked-right .hero-title { margin: 0 6vw 10vh 0; }
.hero--stacked-right .hero-copy { margin: 0 6vw 0 0; }

/* Remove centered override since it's now the default */

.hero--left .hero-inner { grid-template-columns: 1.25fr 1fr; grid-template-areas: 'title copy'; direction: rtl; }
.hero--left .hero-title { justify-self: start; margin: 0 0 8vh 6vw; }
.hero--left .hero-copy { justify-self: start; margin: 0 0 0 6vw; }

.hero-title .line { 
	display: block; 
	transition: all 0.3s ease;
}
.hero-title .line:last-child { 
	font-size: 0.9em; 
	letter-spacing: .02em; 
	cursor: pointer;
}
.hero-title .line:last-child:hover {
	transform: scale(1.05);
	color: #ffffff;
	filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.8))
	        drop-shadow(0 0 50px rgba(107, 124, 255, 0.6));
	text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

/* Removed hero-copy wrapper since elements are now direct children */

.hero-subtitle {
    max-width: 600px;
    text-align: center;
    color: var(--clr-text-dim);
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 600;
    line-height: 1.6;
    margin: 0 auto;
}

.hero--centered .hero-subtitle {
    text-align: center;
    max-width: 600px;
}

.cta-button {
	display: inline-grid;
	place-items: center;
	padding: 16px 32px;
	background: linear-gradient(90deg, #8b7cff, #6b63ff, #4a3bff);
	color: white;
	text-decoration: none;
	border-radius: 16px;
	box-shadow: 0 8px 25px rgba(107, 124, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
	font-weight: 700;
	font-size: 16px;
	transition: all 0.3s ease;
	position: relative;
	overflow: visible;
	min-height: 44px;
	min-width: 44px;
	touch-action: manipulation;
	cursor: pointer;
}

/* Button is now naturally centered in flexbox */

.cta-button span { position: relative; z-index: 1; }
.cta-button::before {
	content: '';
	position: absolute;
	left: -12px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 16px;
	clip-path: polygon(100% 0, 0 50%, 100% 100%);
	background: linear-gradient(90deg, #8b7cff, #6b63ff);
	border-radius: 2px;
	box-shadow: 0 4px 12px rgba(107, 124, 255, 0.3);
}

.cta-button:hover { 
	transform: translateY(-3px); 
	box-shadow: 0 12px 35px rgba(107, 124, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
	filter: brightness(1.1);
}
.cta-button:active { 
	transform: translateY(-1px); 
	box-shadow: 0 6px 20px rgba(107, 124, 255, 0.4);
}

/* Spacer sections for scrolling preview */
.spacer { height: 0; }

/* Responsive header adjustments */
@media (max-width: 900px) {
	.header-inner { grid-template-columns: 1fr auto 1fr; }
	.site-nav ul { gap: 18px; }
	.site-nav a { font-size: 15px; }
    .hero-inner { grid-template-columns: 1fr; grid-template-areas: 'title' 'copy'; justify-items: center; gap: 24px; margin-top: 60px; height: auto; padding-inline: 0; }
    .hero-title { text-align: center; font-size: clamp(56px, 12vw, 120px); margin: 0; justify-self: center; }
    .hero-copy { justify-items: center; justify-self: center; }
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
	.hero-inner {
		margin-top: 40vh;
		padding: 0 20px;
		gap: 30px;
	}
	
	.hero-title {
		font-size: clamp(48px, 15vw, 80px);
		line-height: 0.9;
	}
	
	.hero-subtitle {
		font-size: clamp(16px, 4vw, 20px);
		max-width: 100%;
		padding: 0 10px;
	}
	
	.cta-button {
		padding: 18px 36px;
		font-size: 18px;
		min-height: 56px;
		min-width: 56px;
	}
	
	.site-header {
		padding: 16px 20px;
	}
	
	.brand {
		font-size: 16px;
	}
	
	.site-nav ul {
		gap: 16px;
	}
	

}

@media (max-width: 640px) {
	.header-inner { grid-template-columns: 1fr auto; gap: 16px; }
	.contact-link { display: none; }
	.site-nav ul { gap: 14px; }
	.temp-badge { font-size: 14px; }
	

}

/* Mouse follower */
.mouse-follower {
	position: fixed;
	left: 0;
	top: 0;
	width: 20px;
	height: 20px;
	background: radial-gradient(circle, rgba(107, 124, 255, 0.8), rgba(107, 124, 255, 0.4));
	border-radius: 50%;
	pointer-events: none;
	z-index: 9999;
	mix-blend-mode: difference;
	transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform, opacity;
	backface-visibility: hidden;
	perspective: 1000px;
	opacity: 1;
}

/* Mouse follower hover effects */
.mouse-follower.hover {
	width: 40px;
	height: 40px;
	background: radial-gradient(circle, rgba(107, 124, 255, 0.9), rgba(107, 124, 255, 0.6));
	box-shadow: 0 0 20px rgba(107, 124, 255, 0.4);
}

/* Hover effects for interactive elements */
.hero-title:hover ~ .mouse-follower,
.hero-subtitle:hover ~ .mouse-follower,
.cta-button:hover ~ .mouse-follower,
.contact-link:hover ~ .mouse-follower,
.site-nav a:hover ~ .mouse-follower {
	width: 40px;
	height: 40px;
	background: radial-gradient(circle, rgba(107, 124, 255, 0.9), rgba(107, 124, 255, 0.6));
	box-shadow: 0 0 20px rgba(107, 124, 255, 0.4);
}

/* Coming soon notification */
.coming-soon-notification {
	position: fixed;
	top: 20px;
	right: 20px;
	background: linear-gradient(135deg, #6b63ff, #4a3bff);
	color: white;
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 10px 30px rgba(107, 124, 255, 0.4);
	z-index: 10000;
	transform: translateX(400px);
	transition: transform 0.3s ease;
	max-width: 300px;
}

.coming-soon-notification.show {
	transform: translateX(0);
}

.notification-content h3 {
	margin: 0 0 12px 0;
	font-size: 18px;
	font-weight: 700;
}

.notification-content p {
	margin: 0 0 8px 0;
	font-size: 14px;
	line-height: 1.4;
}

.notification-content p:last-child {
	margin-bottom: 0;
	font-size: 12px;
	opacity: 0.8;
}

/* Visually-hidden utility for accessibility */
.visually-hidden {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	padding: 0 !important;
	border: 0 !important;
	height: 1px !important;
	width: 1px !important;
	overflow: hidden;
}


