﻿
/* ============================================================
   REDA TANTAWY PORTFOLIO
   site-home.css
   Designed for the supplied Views/Home/Index.cshtml
   ============================================================ */

:root {
	--bg: #020817;
	--bg-soft: #071225;
	--panel: rgba(8,20,40,.78);
	--panel-strong: rgba(8,24,46,.94);
	--line: rgba(119,181,255,.18);
	--line-strong: rgba(82,190,255,.42);
	--text: #f7fbff;
	--muted: #9db0c7;
	--primary: #168cff;
	--primary-2: #42c7ff;
	--success: #35e59b;
	--shadow: 0 24px 70px rgba(0,0,0,.38);
	--radius: 24px;
	--radius-sm: 16px;
	--container: 1240px;
	--header-height: 78px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
}

body {
	margin: 0;
	min-height: 100vh;
	background: radial-gradient(circle at 15% 10%,rgba(22,140,255,.12),transparent 32%), radial-gradient(circle at 85% 20%,rgba(66,199,255,.08),transparent 28%), var(--bg);
	color: var(--text);
	font-family: "Cairo",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
	overflow-x: hidden;
}

	body.menu-open {
		overflow: hidden;
	}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea {
	font: inherit;
}

button {
	border: 0;
}

img {
	max-width: 100%;
	display: block;
}

::selection {
	background: rgba(22,140,255,.35);
	color: #fff;
}

.container-xl {
	width: min(var(--container),calc(100% - 40px));
	margin-inline: auto;
}

/* ============================================================
   BACKGROUND
   ============================================================ */

.portfolio-shell {
	position: relative;
	isolation: isolate;
	min-height: 100vh;
}

.ambient-background {
	position: fixed;
	inset: 0;
	z-index: -10;
	pointer-events: none;
	overflow: hidden;
	background: #020817;
}

.grid-background {
	position: absolute;
	inset: 0;
	opacity: .22;
	background-image: linear-gradient(rgba(82,180,255,.055) 1px,transparent 1px), linear-gradient(90deg,rgba(82,180,255,.055) 1px,transparent 1px);
	background-size: 52px 52px;
	mask-image: linear-gradient(to bottom,black,transparent 90%);
}

.ambient-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(8px);
	opacity: .28;
}

.orb-a {
	width: 420px;
	height: 420px;
	left: -180px;
	top: 8%;
	background: radial-gradient(circle,#168cff,transparent 68%);
	animation: orbFloatA 12s ease-in-out infinite;
}

.orb-b {
	width: 500px;
	height: 500px;
	right: -220px;
	top: 34%;
	background: radial-gradient(circle,#42c7ff,transparent 68%);
	animation: orbFloatB 15s ease-in-out infinite;
}

.orb-c {
	width: 360px;
	height: 360px;
	left: 38%;
	bottom: -220px;
	background: radial-gradient(circle,#1763d5,transparent 70%);
	animation: orbFloatC 13s ease-in-out infinite;
}

@keyframes orbFloatA {
	0%,100% {
		transform: translate3d(0,0,0)
	}

	50% {
		transform: translate3d(55px,30px,0)
	}
}

@keyframes orbFloatB {
	0%,100% {
		transform: translate3d(0,0,0)
	}

	50% {
		transform: translate3d(-45px,-35px,0)
	}
}

@keyframes orbFloatC {
	0%,100% {
		transform: translate3d(0,0,0)
	}

	50% {
		transform: translate3d(35px,-25px,0)
	}
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--header-height);
	border-bottom: 1px solid rgba(111,183,255,.12);
	background: rgba(2,8,23,.78);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
}

.header-inner {
	min-height: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
}

.brand-link {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.brand-logo {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(78,193,255,.42);
	border-radius: 14px;
	background: linear-gradient(145deg,#0b3e85,#07172e);
	box-shadow: 0 12px 32px rgba(0,126,255,.18);
	color: #fff;
	font-weight: 900;
	letter-spacing: .04em;
}

.brand-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

	.brand-copy strong {
		font-size: 14px;
		font-weight: 900;
	}

	.brand-copy small {
		margin-top: 5px;
		color: #72cfff;
		font-size: 10px;
		font-weight: 700;
	}

.main-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 0;
}

.nav-item {
	position: relative;
	padding: 10px 11px;
	color: #aabbd0;
	font-size: 12px;
	font-weight: 800;
	border-radius: 12px;
	transition: .25s ease;
	white-space: nowrap;
}

	.nav-item:hover,
	.nav-item.active {
		color: #fff;
		background: rgba(33,139,235,.11);
	}

		.nav-item.active::after {
			content: "";
			position: absolute;
			left: 18px;
			right: 18px;
			bottom: 3px;
			height: 2px;
			border-radius: 50px;
			background: linear-gradient(90deg,var(--primary),var(--primary-2));
		}

.header-actions {
	display: flex;
	align-items: center;
	gap: 9px;
}

.header-cv-button,
.primary-button,
.secondary-button {
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 0 17px;
	border-radius: 14px;
	font-size: 12px;
	font-weight: 900;
	transition: .28s ease;
}

.header-cv-button,
.primary-button {
	color: #fff;
	background: linear-gradient(135deg,#0878ee,#20b8ff);
	border: 1px solid rgba(113,218,255,.3);
	box-shadow: 0 12px 32px rgba(0,121,255,.2);
}

	.header-cv-button:hover,
	.primary-button:hover {
		color: #fff;
		transform: translateY(-3px);
		box-shadow: 0 18px 40px rgba(0,139,255,.28);
	}

.secondary-button {
	color: #d9ecff;
	background: rgba(255,255,255,.045);
	border: 1px solid rgba(120,185,255,.18);
}

	.secondary-button:hover {
		color: #fff;
		border-color: rgba(73,194,255,.48);
		background: rgba(25,139,232,.1);
		transform: translateY(-3px);
	}

.mobile-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(94,185,255,.22);
	border-radius: 13px;
	background: rgba(7,22,43,.9);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}

	.mobile-toggle span {
		width: 19px;
		height: 2px;
		border-radius: 99px;
		background: #fff;
		transition: .25s ease;
	}

	.mobile-toggle.active span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.mobile-toggle.active span:nth-child(2) {
		opacity: 0;
	}

	.mobile-toggle.active span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

/* ============================================================
   MOBILE PANEL
   ============================================================ */

.mobile-panel {
	position: fixed;
	top: calc(var(--header-height) + 10px);
	left: 12px;
	right: 12px;
	z-index: 990;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-12px);
	transition: .25s ease;
}

	.mobile-panel.open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}

.mobile-panel-inner {
	display: grid;
	gap: 7px;
	padding: 14px;
	border: 1px solid rgba(99,186,255,.18);
	border-radius: 22px;
	background: rgba(3,13,29,.97);
	box-shadow: 0 28px 80px rgba(0,0,0,.58);
	backdrop-filter: blur(22px);
}

	.mobile-panel-inner a {
		min-height: 48px;
		display: flex;
		align-items: center;
		padding: 0 15px;
		border-radius: 13px;
		color: #d5e5f6;
		font-size: 13px;
		font-weight: 800;
		background: rgba(255,255,255,.035);
		border: 1px solid rgba(118,178,235,.08);
	}

		.mobile-panel-inner a:hover {
			color: #fff;
			background: rgba(22,140,255,.12);
			border-color: rgba(80,195,255,.3);
		}

	.mobile-panel-inner .mobile-cv {
		color: #fff;
		justify-content: center;
		background: linear-gradient(135deg,#0878ee,#20b8ff);
	}

/* ============================================================
   HERO
   ============================================================ */

.hero-section {
	position: relative;
	padding: 88px 0 74px;
	min-height: calc(100vh - var(--header-height));
	display: flex;
	align-items: center;
}

.hero-layout {
	display: grid;
	grid-template-columns: minmax(0,1.08fr) minmax(400px,.92fr);
	align-items: center;
	gap: 60px;
}

.hero-content {
	min-width: 0;
}

.hero-status {
	width: max-content;
	max-width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 11px;
	border: 1px solid rgba(54,230,155,.2);
	border-radius: 999px;
	color: #a6eacb;
	background: rgba(27,202,137,.07);
	font-size: 11px;
	font-weight: 800;
}

.status-light {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #35e59b;
	box-shadow: 0 0 15px rgba(53,229,155,.8);
	animation: pulseStatus 1.8s ease-in-out infinite;
}

@keyframes pulseStatus {
	0%,100% {
		transform: scale(1);
		opacity: 1
	}

	50% {
		transform: scale(.72);
		opacity: .65
	}
}

.hero-eyebrow {
	margin-top: 22px;
	color: #6ccfff;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .04em;
}

	.hero-eyebrow span {
		padding: 0 7px;
		color: #44647e;
	}

.hero-title {
	margin: 15px 0 0;
}

.hero-name {
	display: block;
	font-size: clamp(54px,7vw,100px);
	line-height: .88;
	font-weight: 900;
	letter-spacing: -.06em;
	color: #fff;
	text-shadow: 0 20px 70px rgba(0,0,0,.28);
}

.hero-role {
	display: block;
	margin-top: 24px;
	color: #b7d2ea;
	font-size: clamp(18px,2.1vw,29px);
	line-height: 1.25;
	font-weight: 800;
}

.hero-description {
	max-width: 760px;
	margin: 22px 0 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 2;
}

.hero-tech-list {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 22px;
}

	.hero-tech-list span {
		padding: 7px 10px;
		border: 1px solid rgba(102,180,255,.15);
		border-radius: 9px;
		background: rgba(255,255,255,.035);
		color: #b9d5eb;
		font-size: 10px;
		font-weight: 800;
	}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 27px;
}

.hero-socials {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
}

	.hero-socials a {
		width: 40px;
		height: 40px;
		display: grid;
		place-items: center;
		border: 1px solid rgba(111,184,255,.15);
		border-radius: 12px;
		background: rgba(255,255,255,.035);
		color: #bcd4e8;
		transition: .25s ease;
	}

		.hero-socials a:hover {
			color: #fff;
			background: #0878ee;
			border-color: #48caff;
			transform: translateY(-3px);
		}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(4,minmax(0,1fr));
	gap: 9px;
	margin-top: 28px;
}

.hero-stat {
	padding: 13px 12px;
	border: 1px solid rgba(111,184,255,.12);
	border-radius: 15px;
	background: rgba(255,255,255,.025);
}

	.hero-stat strong {
		display: block;
		color: #fff;
		font-size: 22px;
		line-height: 1;
		font-weight: 900;
	}

	.hero-stat span {
		display: block;
		margin-top: 7px;
		color: #7f9ab3;
		font-size: 9px;
		font-weight: 800;
	}

/* HERO VISUAL */

.hero-visual {
	position: relative;
	min-height: 650px;
	display: grid;
	place-items: center;
}

.hero-glow {
	position: absolute;
	width: 470px;
	height: 470px;
	border-radius: 50%;
	background: radial-gradient(circle,rgba(22,140,255,.24),rgba(22,140,255,.03) 52%,transparent 70%);
	filter: blur(10px);
}

.hero-orbit {
	position: absolute;
	border: 1px solid rgba(70,190,255,.15);
	border-radius: 50%;
	pointer-events: none;
}

.orbit-one {
	width: 570px;
	height: 570px;
	transform: rotate(22deg) scaleY(.62);
}

.orbit-two {
	width: 470px;
	height: 470px;
	transform: rotate(-30deg) scaleY(.7);
	border-color: rgba(49,141,255,.13);
}

.hero-profile-card {
	position: relative;
	z-index: 3;
	width: min(430px,78%);
	padding: 13px;
	border: 1px solid rgba(108,195,255,.25);
	border-radius: 30px;
	background: linear-gradient(145deg,rgba(16,38,69,.9),rgba(3,13,28,.94));
	box-shadow: 0 35px 90px rgba(0,0,0,.48);
	transform: perspective(1000px) rotateY(-4deg);
	transition: .4s ease;
}

	.hero-profile-card:hover {
		transform: perspective(1000px) rotateY(0) translateY(-7px);
		border-color: rgba(86,202,255,.48);
	}

.profile-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 8px 12px;
	color: #8ca9c4;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .12em;
}

.online-state {
	display: flex;
	align-items: center;
	gap: 6px;
	letter-spacing: 0;
	color: #9be8c6;
}

	.online-state i {
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: #35e59b;
		box-shadow: 0 0 10px #35e59b;
	}

.profile-photo {
	aspect-ratio: 4/4.6;
	overflow: hidden;
	border-radius: 21px;
	background: linear-gradient(145deg,rgba(15,75,143,.45),rgba(2,8,23,.95));
}

	.profile-photo img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

.profile-card-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 15px 8px 7px;
}

	.profile-card-bottom > div:first-child {
		display: flex;
		flex-direction: column;
	}

	.profile-card-bottom strong {
		font-size: 15px;
		font-weight: 900;
	}

	.profile-card-bottom span {
		margin-top: 4px;
		color: #79a2c3;
		font-size: 10px;
	}

.profile-check {
	width: 37px;
	height: 37px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	color: #fff;
	background: linear-gradient(135deg,#0878ee,#24baff);
}

.floating-card {
	position: absolute;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 13px;
	border: 1px solid rgba(105,194,255,.2);
	border-radius: 14px;
	background: rgba(4,16,34,.92);
	box-shadow: 0 18px 45px rgba(0,0,0,.38);
	color: #d9edff;
	font-size: 11px;
	font-weight: 900;
	backdrop-filter: blur(14px);
	animation: floatCard 5s ease-in-out infinite;
}

	.floating-card i {
		color: #42c7ff;
		font-size: 18px;
	}

.floating-csharp {
	top: 14%;
	left: 3%;
}

.floating-sql {
	right: 0;
	top: 35%;
	animation-delay: -1.5s;
}

.floating-net {
	left: 7%;
	bottom: 17%;
	animation-delay: -3s;
}

@keyframes floatCard {
	0%,100% {
		transform: translateY(0)
	}

	50% {
		transform: translateY(-11px)
	}
}

.floating-code-card {
	position: absolute;
	z-index: 6;
	right: -2%;
	bottom: 3%;
	width: 260px;
	border: 1px solid rgba(94,187,255,.18);
	border-radius: 17px;
	overflow: hidden;
	background: rgba(2,10,24,.94);
	box-shadow: 0 25px 60px rgba(0,0,0,.48);
}

.code-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 11px;
	border-bottom: 1px solid rgba(111,180,255,.1);
	background: rgba(255,255,255,.025);
}

	.code-card-header > div {
		display: flex;
		gap: 4px;
	}

	.code-card-header span {
		width: 7px;
		height: 7px;
		border-radius: 50%;
		background: #49627c;
	}

	.code-card-header small {
		color: #68829d;
		font-size: 8px;
	}

.code-card-body {
	padding: 13px 15px;
	color: #a5bfd6;
	font-family: Consolas,Monaco,monospace;
	font-size: 9px;
	line-height: 2;
}

.code-keyword {
	color: #58c7ff;
}

.code-name {
	color: #fff;
}

.code-indent {
	padding-left: 17px;
	color: #78dcae;
}

/* ============================================================
   TECHNOLOGY STRIP
   ============================================================ */

.technology-strip {
	border-block: 1px solid rgba(103,180,255,.1);
	background: rgba(255,255,255,.018);
	overflow: hidden;
}

.technology-inner {
	min-height: 66px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 9px;
}

	.technology-inner span {
		padding: 7px 11px;
		color: #7896b2;
		font-size: 10px;
		font-weight: 900;
		border-right: 1px solid rgba(111,184,255,.12);
	}

		.technology-inner span:last-child {
			border-right: 0;
		}

/* ============================================================
   GENERAL SECTIONS
   ============================================================ */

.content-section {
	position: relative;
	padding: 110px 0;
}

.section-heading {
	max-width: 800px;
	margin-bottom: 42px;
}

.section-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #59caff;
	font-size: 11px;
	font-weight: 900;
}

	.section-label i {
		font-size: 15px;
	}

.section-heading h2 {
	margin: 13px 0 0;
	color: #f8fbff;
	font-size: clamp(31px,4vw,54px);
	line-height: 1.18;
	font-weight: 900;
	letter-spacing: -.035em;
}

	.section-heading h2 strong {
		display: inline-block;
		color: #55caff;
	}

.section-heading > p {
	max-width: 760px;
	margin: 17px 0 0;
	color: #8fa7be;
	font-size: 14px;
	line-height: 2;
}

/* ============================================================
   GLASS / ABOUT
   ============================================================ */

.glass-panel {
	border: 1px solid rgba(110,185,255,.13);
	background: linear-gradient(145deg,rgba(9,25,47,.82),rgba(3,13,28,.75));
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.about-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.about-card,
.engineering-card {
	position: relative;
	padding: 31px;
	overflow: hidden;
}

	.about-card::after,
	.engineering-card::after {
		content: "";
		position: absolute;
		width: 180px;
		height: 180px;
		border-radius: 50%;
		background: radial-gradient(circle,rgba(26,144,255,.13),transparent 68%);
		right: -90px;
		bottom: -90px;
		pointer-events: none;
	}

.card-icon {
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(78,193,255,.22);
	border-radius: 15px;
	color: #59caff;
	background: rgba(19,136,236,.08);
	font-size: 23px;
}

.about-card h3,
.engineering-card h3 {
	margin: 22px 0 12px;
	font-size: 22px;
	font-weight: 900;
}

.about-card p,
.engineering-card p {
	color: #91a9c1;
	font-size: 13px;
	line-height: 2;
}

.about-points {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px;
	margin-top: 24px;
}

	.about-points div {
		display: flex;
		align-items: center;
		gap: 8px;
		color: #bed4e8;
		font-size: 11px;
		font-weight: 800;
	}

	.about-points i {
		color: #38d99d;
	}

.engineering-number {
	position: absolute;
	top: 24px;
	right: 26px;
	color: rgba(96,199,255,.35);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .12em;
}

.engineering-card h4 {
	margin: 0 0 16px;
	color: #d8e8f6;
	font-size: 15px;
	font-weight: 800;
}

	.engineering-card h4 span {
		margin: 0 7px;
		color: #48caff;
	}

.engineering-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 22px;
}

	.engineering-tags span {
		padding: 7px 9px;
		border-radius: 9px;
		border: 1px solid rgba(96,181,255,.12);
		color: #87a8c3;
		background: rgba(255,255,255,.03);
		font-size: 9px;
		font-weight: 800;
	}

/* ============================================================
   SERVICES
   ============================================================ */

.services-grid {
	display: grid;
	grid-template-columns: repeat(4,minmax(0,1fr));
	gap: 14px;
}

.service-card {
	position: relative;
	min-height: 250px;
	padding: 25px;
	overflow: hidden;
	border: 1px solid rgba(108,182,255,.12);
	border-radius: 21px;
	background: linear-gradient(145deg,rgba(9,25,47,.68),rgba(3,13,28,.72));
	transition: .3s ease;
}

	.service-card:hover {
		transform: translateY(-7px);
		border-color: rgba(70,196,255,.38);
		background: linear-gradient(145deg,rgba(11,39,73,.78),rgba(3,13,28,.88));
		box-shadow: 0 25px 60px rgba(0,0,0,.3);
	}

.service-icon {
	width: 50px;
	height: 50px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	color: #5bceff;
	background: rgba(23,139,238,.1);
	border: 1px solid rgba(76,194,255,.18);
	font-size: 21px;
}

.service-card h3 {
	margin: 20px 0 11px;
	font-size: 16px;
	font-weight: 900;
}

.service-card p {
	margin: 0;
	color: #829ab2;
	font-size: 11px;
	line-height: 1.9;
}

.service-arrow {
	position: absolute;
	right: 21px;
	bottom: 19px;
	color: #4ccaff;
	font-size: 17px;
}

/* ============================================================
   SKILLS
   ============================================================ */

.skills-grid {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 15px;
}

.skill-category {
	padding: 22px;
	border: 1px solid rgba(109,185,255,.12);
	border-radius: 19px;
	background: rgba(255,255,255,.025);
}

.skill-category-header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.skill-category-icon {
	width: 45px;
	height: 45px;
	display: grid;
	place-items: center;
	border-radius: 13px;
	color: #55caff;
	background: rgba(22,140,255,.08);
	border: 1px solid rgba(80,190,255,.15);
}

.skill-category h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 900;
}

.skill-category-header span {
	display: block;
	margin-top: 4px;
	color: #6886a0;
	font-size: 9px;
	font-weight: 700;
}

.skill-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 20px;
}

	.skill-tags span {
		padding: 7px 9px;
		border: 1px solid rgba(106,183,255,.11);
		border-radius: 9px;
		background: rgba(4,16,34,.62);
		color: #aac3d9;
		font-family: Consolas,Monaco,monospace;
		font-size: 9px;
	}

/* ============================================================
   ARCHITECTURE
   ============================================================ */

.architecture-flow {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 9px;
	overflow-x: auto;
	padding: 6px 2px 16px;
}

.architecture-node {
	flex: 1 1 150px;
	min-width: 145px;
	padding: 20px 14px;
	border: 1px solid rgba(105,183,255,.12);
	border-radius: 18px;
	background: rgba(255,255,255,.025);
	text-align: center;
}

.architecture-node-icon {
	width: 43px;
	height: 43px;
	display: grid;
	place-items: center;
	margin: 0 auto 11px;
	border-radius: 12px;
	color: #52caff;
	background: rgba(22,140,255,.08);
}

.architecture-node strong {
	display: block;
	color: #eaf6ff;
	font-size: 11px;
	font-weight: 900;
}

.architecture-node small {
	display: block;
	margin-top: 7px;
	color: #718ba3;
	font-size: 8px;
	line-height: 1.7;
}

.architecture-arrow {
	align-self: center;
	flex: 0 0 auto;
	color: #318fd0;
}

.architecture-cards {
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 13px;
	margin-top: 17px;
}

.architecture-info-card {
	padding: 22px;
	border: 1px solid rgba(108,183,255,.11);
	border-radius: 18px;
	background: rgba(255,255,255,.024);
}

	.architecture-info-card > i {
		color: #55caff;
		font-size: 21px;
	}

	.architecture-info-card h3 {
		margin: 14px 0 8px;
		font-size: 14px;
		font-weight: 900;
	}

	.architecture-info-card p {
		margin: 0;
		color: #8098b0;
		font-size: 10px;
		line-height: 1.8;
	}

/* ============================================================
   PROJECT TABS
   ============================================================ */

.project-tabs {
	position: sticky;
	top: calc(var(--header-height) + 8px);
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	padding: 9px;
	margin-bottom: 27px;
	border: 1px solid rgba(107,184,255,.13);
	border-radius: 19px;
	background: rgba(3,13,29,.88);
	box-shadow: 0 15px 45px rgba(0,0,0,.2);
	backdrop-filter: blur(18px);
	scrollbar-width: thin;
}

	.project-tabs::-webkit-scrollbar {
		height: 4px;
	}

	.project-tabs::-webkit-scrollbar-thumb {
		background: rgba(70,184,255,.25);
		border-radius: 20px;
	}

.project-tab {
	flex: 0 0 auto;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 15px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: transparent;
	color: #7f9bb4;
	cursor: pointer;
	font-size: 11px;
	font-weight: 900;
	white-space: nowrap;
	transition: .25s ease;
}

	.project-tab i {
		font-size: 15px;
	}

	.project-tab:hover {
		color: #eaf7ff;
		background: rgba(22,140,255,.08);
	}

	.project-tab.active {
		color: #fff;
		background: linear-gradient(135deg,#0878ee,#159edc);
		border-color: rgba(98,209,255,.35);
		box-shadow: 0 9px 28px rgba(0,126,255,.2);
	}

/* ============================================================
   PROJECT GRID
   ============================================================ */

.projects-grid {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 17px;
}

.project-card {
	overflow: hidden;
	border: 1px solid rgba(108,184,255,.12);
	border-radius: 22px;
	background: linear-gradient(145deg,rgba(8,24,45,.78),rgba(3,12,27,.9));
	transition: .35s ease;
}

	.project-card:hover {
		transform: translateY(-8px);
		border-color: rgba(69,195,255,.4);
		box-shadow: 0 28px 70px rgba(0,0,0,.35);
	}

	.project-card.project-hidden {
		display: none !important;
	}

.project-image {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: linear-gradient(145deg,#0a2850,#020817);
}

	.project-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: .55s ease;
	}

.project-card:hover .project-image img {
	transform: scale(1.07);
}

.project-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top,rgba(1,8,20,.9),transparent 65%);
	pointer-events: none;
}

.project-image-overlay {
	position: absolute;
	left: 13px;
	right: 13px;
	bottom: 12px;
	z-index: 2;
	display: flex;
	justify-content: flex-start;
}

	.project-image-overlay span {
		padding: 6px 9px;
		border: 1px solid rgba(101,197,255,.18);
		border-radius: 8px;
		background: rgba(2,12,27,.78);
		color: #91dcff;
		font-size: 8px;
		font-weight: 900;
		text-transform: uppercase;
		letter-spacing: .04em;
		backdrop-filter: blur(8px);
	}

.project-body {
	padding: 19px;
}

.project-category {
	color: #50caff;
	font-size: 9px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.project-body h3 {
	min-height: 42px;
	margin: 9px 0 9px;
	color: #f4f9ff;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 900;
}

.project-body p {
	min-height: 78px;
	margin: 0;
	color: #8099b1;
	font-size: 10px;
	line-height: 1.9;
}

.project-tech {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 15px;
}

	.project-tech span {
		padding: 5px 7px;
		border-radius: 7px;
		background: rgba(255,255,255,.035);
		border: 1px solid rgba(107,183,255,.1);
		color: #9db8cf;
		font-family: Consolas,Monaco,monospace;
		font-size: 8px;
		font-weight: 700;
	}

.projects-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 20px;
	padding: 14px 16px;
	border: 1px dashed rgba(92,186,255,.2);
	border-radius: 15px;
	color: #7895af;
	background: rgba(255,255,255,.018);
	font-size: 10px;
	line-height: 1.8;
}

	.projects-note i {
		color: #55caff;
		font-size: 16px;
		flex: 0 0 auto;
	}

	.projects-note strong {
		color: #a9d8f5;
		font-family: Consolas,Monaco,monospace;
	}

/* ============================================================
   EXPERIENCE
   ============================================================ */

.experience-grid {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 14px;
}

.experience-card {
	display: flex;
	gap: 14px;
	min-height: 160px;
	padding: 21px;
	border: 1px solid rgba(109,183,255,.12);
	border-radius: 19px;
	background: rgba(255,255,255,.025);
	transition: .3s ease;
}

	.experience-card:hover {
		transform: translateY(-5px);
		border-color: rgba(75,195,255,.34);
		background: rgba(16,54,91,.22);
	}

.experience-icon {
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border-radius: 12px;
	color: #55caff;
	background: rgba(22,140,255,.08);
	border: 1px solid rgba(78,192,255,.16);
}

.experience-card h3 {
	margin: 1px 0 8px;
	font-size: 14px;
	font-weight: 900;
}

.experience-card p {
	margin: 0;
	color: #8098b0;
	font-size: 10px;
	line-height: 1.9;
}

.experience-highlight {
	display: flex;
	align-items: center;
	gap: 17px;
	margin-top: 17px;
	padding: 23px;
	border: 1px solid rgba(67,193,255,.18);
	border-radius: 20px;
	background: linear-gradient(110deg,rgba(15,101,183,.14),rgba(255,255,255,.025));
}

.experience-highlight-icon {
	width: 52px;
	height: 52px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border-radius: 15px;
	color: #fff;
	background: linear-gradient(135deg,#0878ee,#25baff);
	box-shadow: 0 12px 30px rgba(0,132,255,.22);
}

.experience-highlight h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 900;
}

.experience-highlight p {
	margin: 6px 0 0;
	color: #8199b1;
	font-size: 11px;
	line-height: 1.8;
}

/* ============================================================
   EDUCATION
   ============================================================ */

.education-timeline {
	position: relative;
	display: grid;
	gap: 14px;
}

.education-item {
	display: grid;
	grid-template-columns: 90px 24px 1fr;
	align-items: stretch;
	gap: 15px;
}

.education-year {
	padding-top: 21px;
	color: #55caff;
	font-size: 11px;
	font-weight: 900;
	text-align: right;
}

.education-line {
	position: relative;
	display: flex;
	justify-content: center;
}

	.education-line::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: -14px;
		width: 1px;
		background: rgba(77,174,241,.18);
	}

.education-item:last-child .education-line::before {
	bottom: 50%;
}

.education-line span {
	position: relative;
	z-index: 2;
	width: 11px;
	height: 11px;
	margin-top: 23px;
	border: 3px solid #07182e;
	border-radius: 50%;
	background: #37bfff;
	box-shadow: 0 0 0 5px rgba(55,191,255,.08);
}

.education-card {
	display: flex;
	gap: 15px;
	padding: 21px;
	border: 1px solid rgba(108,183,255,.12);
	border-radius: 19px;
	background: rgba(255,255,255,.025);
}

.education-icon {
	width: 46px;
	height: 46px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border-radius: 13px;
	color: #55caff;
	background: rgba(22,140,255,.08);
}

.education-card h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 900;
}

.education-card h4 {
	margin: 5px 0 8px;
	color: #5fcfff;
	font-size: 10px;
	font-weight: 800;
}

.education-card p {
	margin: 0;
	color: #8098b0;
	font-size: 10px;
	line-height: 1.9;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-layout {
	display: grid;
	grid-template-columns: .85fr 1.15fr;
	gap: 18px;
}

.contact-info,
.contact-form-card {
	padding: 30px;
}

	.contact-info h3 {
		margin: 20px 0 10px;
		font-size: 23px;
		font-weight: 900;
	}

	.contact-info > p {
		color: #819ab2;
		font-size: 11px;
		line-height: 1.9;
	}

.contact-list {
	display: grid;
	gap: 8px;
	margin-top: 22px;
}

	.contact-list a {
		display: flex;
		align-items: center;
		gap: 10px;
		min-height: 45px;
		padding: 0 11px;
		border: 1px solid rgba(108,183,255,.1);
		border-radius: 11px;
		color: #a9c3d8;
		background: rgba(255,255,255,.025);
		font-size: 10px;
		transition: .25s ease;
	}

		.contact-list a:hover {
			color: #fff;
			border-color: rgba(74,194,255,.35);
			background: rgba(22,140,255,.08);
		}

	.contact-list i {
		color: #54caff;
		font-size: 16px;
	}

.contact-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 18px;
}

	.contact-socials a {
		width: 38px;
		height: 38px;
		display: grid;
		place-items: center;
		border: 1px solid rgba(108,183,255,.13);
		border-radius: 11px;
		color: #9db9d0;
		background: rgba(255,255,255,.025);
		transition: .25s ease;
	}

		.contact-socials a:hover {
			color: #fff;
			background: #0878ee;
			border-color: #50caff;
			transform: translateY(-3px);
		}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.form-field {
	min-width: 0;
}

	.form-field.full {
		grid-column: 1/-1;
	}

	.form-field label {
		display: block;
		margin-bottom: 7px;
		color: #bcd1e4;
		font-size: 10px;
		font-weight: 900;
	}

	.form-field input,
	.form-field textarea {
		width: 100%;
		border: 1px solid rgba(109,184,255,.13);
		border-radius: 12px;
		outline: none;
		background: rgba(1,10,24,.68);
		color: #eef8ff;
		padding: 12px 13px;
		font-size: 11px;
		transition: .25s ease;
	}

	.form-field input {
		height: 46px;
	}

	.form-field textarea {
		min-height: 160px;
		resize: vertical;
	}

		.form-field input::placeholder,
		.form-field textarea::placeholder {
			color: #526b83;
		}

		.form-field input:focus,
		.form-field textarea:focus {
			border-color: rgba(65,194,255,.55);
			box-shadow: 0 0 0 4px rgba(21,139,236,.08);
			background: rgba(2,14,31,.88);
		}

.contact-submit {
	margin-top: 17px;
	width: 100%;
}

.form-note {
	display: block;
	margin-top: 9px;
	color: #5f7890;
	font-size: 9px;
	line-height: 1.7;
}

/* ============================================================
   FLOATING SOCIAL
   ============================================================ */

.floating-social-contact {
	position: fixed;
	right: 22px;
	bottom: 84px;
	z-index: 900;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.floating-social {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(91,188,255,.2);
	border-radius: 14px;
	background: rgba(3,14,31,.92);
	color: #c1d9eb;
	box-shadow: 0 13px 30px rgba(0,0,0,.35);
	backdrop-filter: blur(12px);
	transition: .25s ease;
}

	.floating-social:hover {
		color: #fff;
		background: #0878ee;
		border-color: #5bcaff;
		transform: translateY(-3px);
	}

/* ============================================================
   BACK TO TOP
   ============================================================ */

.back-to-top {
	position: fixed;
	left: 22px;
	bottom: 22px;
	z-index: 900;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(94,187,255,.22);
	border-radius: 14px;
	background: rgba(3,14,31,.92);
	color: #c7e1f4;
	box-shadow: 0 13px 30px rgba(0,0,0,.35);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(10px);
	transition: .25s ease;
	cursor: pointer;
}

	.back-to-top.show {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}

	.back-to-top:hover {
		color: #fff;
		background: #0878ee;
		border-color: #5bcaff;
	}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
	border-top: 1px solid rgba(106,182,255,.1);
	background: rgba(1,7,18,.72);
}

.footer-inner {
	min-height: 100px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	color: #617b94;
	font-size: 9px;
}

	.footer-inner > div:first-child {
		display: flex;
		flex-direction: column;
	}

	.footer-inner strong {
		color: #cfe4f4;
		font-size: 11px;
	}

	.footer-inner span {
		margin-top: 3px;
	}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */

.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .65s ease, transform .65s ease;
}

	.reveal.visible {
		opacity: 1;
		transform: translateY(0);
	}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/*
   IMPORTANT
   ----------
   The original desktop design is preserved.
   Responsive rules below only adapt layout, spacing and sizing
   for smaller screens.
*/

@media (max-width: 1200px) {

	.container-xl {
		width: min(var(--container), calc(100% - 32px));
	}

	.main-nav {
		gap: 0;
	}

	.nav-item {
		padding-inline: 8px;
		font-size: 10px;
	}

	.header-cv-button {
		padding-inline: 12px;
	}

	.hero-layout {
		gap: 35px;
	}

	.services-grid,
	.projects-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1050px) {

	:root {
		--header-height: 70px;
	}

	.main-nav {
		display: none;
	}

	.mobile-toggle {
		display: flex;
	}

	.header-cv-button {
		min-height: 42px;
	}

	/*
	   Tablet:
	   keep the original one-column hero structure.
	   Mobile-specific image-first ordering is applied at 768px.
	*/
	.hero-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	.hero-content {
		text-align: center;
	}

	.hero-status,
	.hero-tech-list,
	.hero-actions,
	.hero-socials {
		justify-content: center;
		margin-inline: auto;
	}

	.hero-description {
		margin-inline: auto;
	}

	.hero-stats {
		max-width: 760px;
		margin-inline: auto;
	}

	.hero-visual {
		min-height: 600px;
		margin-top: 10px;
	}

	.about-layout,
	.contact-layout {
		grid-template-columns: 1fr;
	}

	.services-grid,
	.skills-grid,
	.architecture-cards,
	.experience-grid,
	.projects-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.floating-social-contact {
		display: none;
	}
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

	/*
	   Keep every element inside the viewport.
	   This prevents accidental horizontal overflow caused by
	   floating decorative elements or wide children.
	*/
	html,
	body {
		max-width: 100%;
		overflow-x: hidden;
	}

	.container-xl {
		width: calc(100% - 24px);
		max-width: 100%;
	}

	.site-header {
		height: var(--header-height);
	}

	.header-inner {
		gap: 8px;
	}

	.brand-link {
		min-width: 0;
	}

	.brand-copy {
		min-width: 0;
	}

		.brand-copy strong {
			max-width: 145px;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		.brand-copy small {
			display: none;
		}

	.header-actions {
		flex: 0 0 auto;
		gap: 6px;
	}

	.header-cv-button span {
		display: none;
	}

	.header-cv-button {
		width: 43px;
		min-height: 43px;
		padding: 0;
	}

	.mobile-toggle {
		width: 43px;
		height: 43px;
		flex: 0 0 43px;
	}

	/* ------------------------------------------------------------
	   HERO
	   ------------------------------------------------------------ */

	.hero-section {
		padding: 34px 0 48px;
		min-height: auto;
		display: block;
	}

	/*
	   Mobile order:
	   1) profile image
	   2) hero content

	   Desktop/tablet layout is not changed by these rules.
	*/
	.hero-layout {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}

	.hero-visual {
		order: 1;
		width: 100%;
		min-height: auto;
		margin: 0;
		display: grid;
		place-items: center;
		padding: 0 0 4px;
	}

	.hero-content {
		order: 2;
		width: 100%;
		max-width: 100%;
		text-align: center;
		min-width: 0;
	}

	/*
	   Profile card:
	   use almost the full mobile width so the image does not
	   become tiny inside a narrow percentage width.
	*/
	.hero-profile-card {
		width: min(100%, 430px);
		max-width: 100%;
		margin-inline: auto;
		padding: 10px;
		border-radius: 24px;
		transform: none;
	}

		.hero-profile-card:hover {
			transform: translateY(-3px);
		}

	/*
	   IMPORTANT:
	   The image is contained instead of cropped.
	   The card ratio is intentionally taller on mobile.
	*/
	.profile-photo {
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 5.25;
		min-height: 0;
		overflow: hidden;
		border-radius: 18px;
	}

		.profile-photo img {
			width: 100%;
			height: 100%;
			display: block;
			object-fit: contain;
			object-position: center center;
		}

	.hero-glow {
		width: min(92vw, 470px);
		height: min(92vw, 470px);
	}

	.orbit-one {
		width: min(92vw, 470px);
		height: min(92vw, 470px);
	}

	.orbit-two {
		width: min(78vw, 390px);
		height: min(78vw, 390px);
	}

	/*
	   Decorative floating cards stay inside the hero area.
	   They are smaller on mobile so they do not cover the portrait.
	*/
	.floating-card {
		padding: 8px 10px;
		font-size: 9px;
		gap: 6px;
	}

		.floating-card i {
			font-size: 14px;
		}

	.floating-csharp {
		left: 0;
		top: 8%;
	}

	.floating-sql {
		right: 0;
		top: 29%;
	}

	.floating-net {
		left: 0;
		bottom: 13%;
	}

	.floating-code-card {
		right: 0;
		bottom: 0;
		width: min(220px, 58%);
	}

	.code-card-body {
		font-size: 7px;
	}

	/* ------------------------------------------------------------
	   HERO CONTENT
	   ------------------------------------------------------------ */

	.hero-status {
		width: fit-content;
		max-width: 100%;
		margin-inline: auto;
		text-align: center;
	}

	.hero-eyebrow {
		margin-top: 17px;
	}

	.hero-title {
		margin-top: 13px;
	}

	.hero-name {
		font-size: clamp(46px, 15vw, 76px);
		line-height: .9;
		letter-spacing: -.055em;
	}

	.hero-role {
		margin-top: 18px;
		font-size: clamp(16px, 4.5vw, 20px);
		line-height: 1.4;
	}

	.hero-description {
		max-width: 680px;
		margin: 18px auto 0;
		font-size: 12px;
		line-height: 1.9;
	}

	.hero-tech-list {
		justify-content: center;
		margin-top: 18px;
	}

		.hero-tech-list span {
			font-size: 8px;
			padding: 6px 8px;
		}

	.hero-actions {
		display: grid;
		grid-template-columns: 1fr;
		width: min(100%, 380px);
		margin: 23px auto 0;
	}

		.hero-actions > * {
			width: 100%;
		}

	.hero-socials {
		justify-content: center;
		margin-top: 17px;
	}

	.hero-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		max-width: 520px;
		margin: 23px auto 0;
	}

	.hero-stat {
		min-width: 0;
		padding: 12px 9px;
	}

		.hero-stat strong {
			font-size: 20px;
		}

	/* ------------------------------------------------------------
	   SECTIONS / GRIDS
	   ------------------------------------------------------------ */

	.content-section {
		padding: 72px 0;
	}

	.section-heading {
		max-width: 100%;
		margin-bottom: 30px;
	}

		.section-heading h2 {
			font-size: clamp(29px, 8vw, 36px);
			line-height: 1.2;
		}

		.section-heading > p {
			font-size: 12px;
			line-height: 1.9;
		}

	.about-layout,
	.services-grid,
	.skills-grid,
	.architecture-cards,
	.experience-grid,
	.projects-grid,
	.contact-layout {
		grid-template-columns: 1fr;
	}

	.about-card,
	.engineering-card {
		padding: 24px;
	}

	/* ------------------------------------------------------------
	   ARCHITECTURE
	   ------------------------------------------------------------ */

	.architecture-flow {
		justify-content: flex-start;
		overflow-x: auto;
		max-width: 100%;
		padding-bottom: 8px;
	}

	/* ------------------------------------------------------------
	   PROJECT TABS
	   ------------------------------------------------------------ */

	.project-tabs {
		position: sticky;
		top: calc(var(--header-height) + 4px);
		z-index: 50;
		max-width: 100%;
		overflow-x: auto;
		justify-content: flex-start;
		flex-wrap: nowrap;
		border-radius: 15px;
		margin-bottom: 20px;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.project-tab {
		flex: 0 0 auto;
		min-height: 41px;
		padding-inline: 12px;
		white-space: nowrap;
	}

	.project-body p {
		min-height: auto;
	}

	/* ------------------------------------------------------------
	   FORMS
	   ------------------------------------------------------------ */

	.contact-info,
	.contact-form-card {
		padding: 21px;
	}

	.form-grid {
		grid-template-columns: 1fr;
	}

	.form-field.full {
		grid-column: auto;
	}

	/* ------------------------------------------------------------
	   FOOTER
	   ------------------------------------------------------------ */

	.footer-inner {
		flex-direction: column;
		justify-content: center;
		text-align: center;
		padding: 25px 0;
		min-height: 100px;
	}
}

/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 520px) {

	.container-xl {
		width: calc(100% - 18px);
	}

	.brand-logo {
		width: 40px;
		height: 40px;
		border-radius: 12px;
	}

	.brand-copy strong {
		font-size: 12px;
		max-width: 120px;
	}

	.header-actions {
		gap: 5px;
	}

	.hero-section {
		padding-top: 25px;
	}

	.hero-layout {
		gap: 22px;
	}

	.hero-profile-card {
		width: 100%;
		padding: 8px;
		border-radius: 21px;
	}

	.profile-photo {
		aspect-ratio: 4 / 5.25;
		border-radius: 16px;
	}

	/*
	   On very narrow screens the decorative cards are reduced
	   further to protect the portrait and viewport width.
	*/
	.floating-card {
		padding: 7px 8px;
		font-size: 8px;
	}

	.floating-csharp {
		left: -2px;
		top: 8%;
	}

	.floating-sql {
		right: -2px;
		top: 28%;
	}

	.floating-net {
		left: -2px;
		bottom: 12%;
	}

	.floating-code-card {
		right: -2px;
		width: min(185px, 55%);
	}

	.code-card-header {
		padding: 7px 9px;
	}

	.code-card-body {
		padding: 10px;
		font-size: 6.5px;
		line-height: 1.8;
	}

	.hero-name {
		font-size: clamp(42px, 15vw, 68px);
	}

	.hero-role {
		font-size: 15px;
	}

	.hero-description {
		font-size: 11px;
	}

	.hero-tech-list {
		gap: 6px;
	}

		.hero-tech-list span {
			font-size: 7.5px;
			padding: 5px 7px;
		}

	.hero-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.content-section {
		padding: 62px 0;
	}

	.about-points {
		grid-template-columns: 1fr;
	}

	.projects-note {
		font-size: 9px;
	}
}

/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

	.container-xl {
		width: calc(100% - 14px);
	}

	.header-cv-button,
	.mobile-toggle {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
	}

	.brand-logo {
		width: 38px;
		height: 38px;
	}

	.brand-copy strong {
		font-size: 11px;
		max-width: 105px;
	}

	.hero-section {
		padding-top: 20px;
	}

	.hero-layout {
		gap: 20px;
	}

	.hero-profile-card {
		width: 100%;
	}

	.profile-photo {
		aspect-ratio: 4 / 5.2;
	}

	.floating-card {
		display: none;
	}

	.floating-code-card {
		display: none;
	}

	.hero-name {
		font-size: clamp(40px, 15vw, 62px);
	}

	.hero-role {
		font-size: 14px;
	}

	.hero-description {
		font-size: 10.5px;
	}

	.hero-actions {
		width: 100%;
	}

	.hero-socials a {
		width: 38px;
		height: 38px;
	}

	.section-heading h2 {
		font-size: 28px;
	}
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}


/* ============================================================
   CONTACT SOCIALS - FORCE VISIBLE ON ALL DEVICES
   Added without changing the existing design.
   ============================================================ */

.contact-socials {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	width: 100% !important;
	margin-top: 20px !important;
	opacity: 1 !important;
	visibility: visible !important;
	position: relative !important;
	z-index: 20 !important;
}

	.contact-socials a {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		min-height: 44px !important;
		flex: 0 0 44px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		border: 1px solid rgba(108,183,255,.22) !important;
		border-radius: 13px !important;
		color: #bcd4e8 !important;
		background: rgba(255,255,255,.045) !important;
		opacity: 1 !important;
		visibility: visible !important;
		text-decoration: none !important;
		overflow: visible !important;
		transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease !important;
	}

		.contact-socials a i {
			display: inline-block !important;
			width: auto !important;
			height: auto !important;
			font-size: 19px !important;
			line-height: 1 !important;
			opacity: 1 !important;
			visibility: visible !important;
		}

		.contact-socials a:hover {
			color: #fff !important;
			background: linear-gradient(135deg,#0878ee,#20b8ff) !important;
			border-color: #50caff !important;
			transform: translateY(-4px) !important;
			box-shadow: 0 10px 25px rgba(0,120,255,.25) !important;
		}

@media (max-width: 768px) {
	.contact-socials {
		display: flex !important;
		width: 100% !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 9px !important;
		margin-top: 18px !important;
	}

		.contact-socials a {
			width: 42px !important;
			height: 42px !important;
			min-width: 42px !important;
			min-height: 42px !important;
			flex: 0 0 42px !important;
		}

			.contact-socials a i {
				font-size: 18px !important;
			}
}

@media (max-width: 480px) {
	.contact-socials {
		gap: 8px !important;
		justify-content: center !important;
	}

		.contact-socials a {
			width: 40px !important;
			height: 40px !important;
			min-width: 40px !important;
			min-height: 40px !important;
			flex: 0 0 40px !important;
			border-radius: 11px !important;
		}

			.contact-socials a i {
				font-size: 17px !important;
			}
}

@media (max-width: 380px) {
	.contact-socials {
		gap: 7px !important;
	}

		.contact-socials a {
			width: 38px !important;
			height: 38px !important;
			min-width: 38px !important;
			min-height: 38px !important;
			flex-basis: 38px !important;
		}

			.contact-socials a i {
				font-size: 16px !important;
			}
}

/* ============================================================
   MOBILE FIXED HEADER
   ============================================================ */

@media (max-width: 768px) {

	.site-header {
		position: fixed !important;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
		height: var(--header-height);
		z-index: 99999;
		background: rgba(2, 8, 23, 0.94);
		backdrop-filter: blur(22px);
		-webkit-backdrop-filter: blur(22px);
		border-bottom: 1px solid rgba(111, 183, 255, 0.18);
		transform: translateZ(0);
		-webkit-transform: translateZ(0);
		will-change: transform;
	}

	/* منع المحتوى من الاختفاء خلف الهيدر */
	body {
		padding-top: var(--header-height);
	}

	/* الـ Hero لا يحتاج مسافة إضافية بسبب body */
	.hero-section {
		min-height: calc(100vh - var(--header-height));
	}

	/* القائمة المحمولة تبدأ أسفل الهيدر */
	.mobile-panel {
		position: fixed;
		top: calc(var(--header-height) + 10px);
		left: 12px;
		right: 12px;
		z-index: 99990;
	}
}