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

:root {
	--hd-blue: #0055ff;
	--hd-blue-dark: #003ebd;
	--hd-blue-glow: #4488ff;
	--ar-teal: #0d324f;
	--ar-teal-light: #1a5070;
	--ar-teal-glow: #2a7baa;
	--white: #ffffff;
	--off-white: #f0f4ff;
	--transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
	height: 100%;
	min-height: 100vh;
	overflow: hidden;
}

@media (max-width: 767px) {
	html,
	body {
		overflow: auto;
	}
}

/* ── NOISE TEXTURE OVERLAY ── */
body::after {
	content: '';
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 100;
	opacity: 0.5;
}

/* ── LAYOUT ── */
.split-container {
	display: flex;
	flex-direction: row;
	height: 100vh;
	min-height: 100vh;
	position: relative;
}

@media (max-width: 767px) {
	.split-container {
		flex-direction: column;
		height: auto;
		min-height: 100vh;
	}
}

/* ── DIVIDER LINE ── */
.split-container::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 8%;
	height: 84%;
	width: 1px;
	background: linear-gradient(
		to bottom,
		transparent,
		rgba(255, 255, 255, 0.15) 20%,
		rgba(255, 255, 255, 0.35) 50%,
		rgba(255, 255, 255, 0.15) 80%,
		transparent
	);
	z-index: 10;
	pointer-events: none;
}

@media (max-width: 767px) {
	.split-container::after {
		display: none;
	}
}

/* ── PANELS ── */
.panel {
	flex: 1;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	cursor: default;
}

@media (max-width: 767px) {
	.panel {
		min-height: 50vh;
		padding: 3rem 1.5rem;
	}
}

/* Background layers */
.panel__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	transition: transform var(--transition);
}

.panel:hover .panel__bg {
	transform: scale(1.04);
}

.panel__bg-image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
}

.panel--hd .panel__bg-image {
	background-image: url('img/hostdean-bg.png');
}

.panel--ar .panel__bg-image {
	background-image: url('img/hdar-bg.png');
}

.panel__overlay {
	position: absolute;
	inset: 0;
	transition: opacity var(--transition);
}

.panel--hd .panel__overlay {
	background:
		radial-gradient(ellipse at 20% 80%, rgba(0, 85, 255, 0.7) 0%, transparent 60%),
		radial-gradient(ellipse at 80% 20%, rgba(0, 40, 140, 0.5) 0%, transparent 55%),
		linear-gradient(135deg, rgba(0, 62, 189, 0.92) 0%, rgba(0, 20, 80, 0.82) 100%);
}

.panel--ar .panel__overlay {
	background:
		radial-gradient(ellipse at 80% 80%, rgba(13, 50, 79, 0.75) 0%, transparent 60%),
		radial-gradient(ellipse at 20% 20%, rgba(26, 80, 112, 0.5) 0%, transparent 55%),
		linear-gradient(225deg, rgba(13, 50, 79, 0.92) 0%, rgba(5, 20, 40, 0.85) 100%);
}

/* Animated shimmer line */
.panel__shimmer {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 1;
	pointer-events: none;
}

.panel__shimmer::before {
	content: '';
	position: absolute;
	top: -100%;
	left: -60%;
	width: 40%;
	height: 300%;
	background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
	animation: shimmer 8s ease-in-out infinite;
}

.panel--ar .panel__shimmer::before {
	animation-delay: -4s;
}

@keyframes shimmer {
	0% {
		transform: translateX(-20%);
	}
	50% {
		transform: translateX(280%);
	}
	100% {
		transform: translateX(280%);
	}
}

/* ── CONTENT ── */
.panel__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1.75rem;
	padding: 3rem 2.5rem;
	max-width: 520px;
	width: 100%;
	animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.panel--ar .panel__content {
	animation-delay: 0.15s;
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 767px) {
	.panel__content {
		padding: 2rem 1.25rem;
		gap: 1.25rem;
	}
}

/* ── LOGO AREA ── */
.panel__logo-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.panel__logo {
	height: 56px;
	width: auto;
	max-width: 260px;
	object-fit: contain;
	/* fallback if image missing */
	display: block;
}

/* Logo text fallback / styled brand name */
.panel__brand {
	font-family: 'Syne', 'Readex Pro', sans-serif;
	font-weight: 800;
	font-size: clamp(1.6rem, 3.5vw, 2.5rem);
	color: var(--white);
	letter-spacing: -0.02em;
	line-height: 1;
}

.panel__brand--ar {
	font-family: 'Readex Pro', sans-serif;
	font-weight: 800;
	font-size: clamp(1.4rem, 3vw, 2.2rem);
	letter-spacing: 0;
}

/* Tag line */
.panel__tagline {
	font-family: 'Readex Pro', sans-serif;
	font-weight: 400;
	font-size: clamp(0.875rem, 1.5vw, 1.05rem);
	color: rgba(255, 255, 255, 0.72);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ── DIVIDER ORNAMENT ── */
.panel__divider {
	width: 2.5rem;
	height: 2px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.3);
	position: relative;
	flex-shrink: 0;
}

.panel__divider::before,
.panel__divider::after {
	content: '';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
}

.panel__divider::before {
	right: calc(100% + 6px);
}
.panel__divider::after {
	left: calc(100% + 6px);
}

/* ── BODY TEXT ── */
.panel__text {
	font-family: 'Readex Pro', sans-serif;
	font-weight: 300;
	font-size: clamp(0.82rem, 1.2vw, 0.95rem);
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.72);
	max-width: 450px;
}

.panel--ar .panel__text {
	direction: rtl;
	font-size: clamp(0.85rem, 1.25vw, 1rem);
}

/* ── CTA BUTTON ── */
.panel__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.7em 2em;
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.07);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: var(--white);
	font-family: 'Syne', 'Readex Pro', sans-serif;
	font-weight: 700;
	font-size: clamp(0.875rem, 1.2vw, 1rem);
	letter-spacing: 0.04em;
	text-decoration: none;
	transition:
		background var(--transition),
		border-color var(--transition),
		box-shadow var(--transition),
		transform 0.2s ease;
	position: relative;
	overflow: hidden;
}

.panel__cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0);
	transition: background var(--transition);
	border-radius: inherit;
}

.panel__cta:hover {
	background: rgba(255, 255, 255, 0.96);
	border-color: transparent;
	transform: translateY(-2px);
}

.panel--hd .panel__cta:hover {
	color: var(--hd-blue);
	box-shadow:
		0 8px 32px rgba(0, 85, 255, 0.4),
		0 2px 8px rgba(0, 0, 0, 0.15);
}

.panel--ar .panel__cta:hover {
	color: var(--ar-teal);
	box-shadow:
		0 8px 32px rgba(13, 50, 79, 0.55),
		0 2px 8px rgba(0, 0, 0, 0.15);
}

.panel__cta:active {
	transform: translateY(0);
}

/* Arrow icon in button */
.cta-arrow {
	display: inline-block;
	transition: transform 0.25s ease;
	font-style: normal;
}

.panel__cta:hover .cta-arrow {
	transform: translateX(4px);
}

.panel--ar .panel__cta:hover .cta-arrow {
	transform: translateX(-4px);
}

/* ── CORNER ACCENT (decorative) ── */
.panel__corner {
	--panel-corner-margin: 1.5rem;
	position: absolute;
	width: 120px;
	height: 120px;
	pointer-events: none;
	z-index: 2;
	opacity: 0.18;
	transition: all var(--transition);
}

.panel__corner--tl {
	top: var(--panel-corner-margin);
	left: var(--panel-corner-margin);
	border-top: 1.5px solid white;
	border-left: 1.5px solid white;
	border-radius: 2px 0 0 0;
}

.panel__corner--br {
	bottom: var(--panel-corner-margin);
	right: var(--panel-corner-margin);
	border-bottom: 1.5px solid white;
	border-right: 1.5px solid white;
	border-radius: 0 0 2px 0;
}

@media (max-width: 767px) {
	.panel__corner {
		width: 60px;
		height: 60px;
	}
}

@media (min-width: 768px) {
	.panel:hover .panel__corner {
		--panel-corner-margin: 2rem;
	}
}

/* ── RESPONSIVE BLUR UPGRADE ── */
.panel::before {
	content: '';
	position: absolute;
	inset: 0;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	z-index: 1;
	transition: backdrop-filter var(--transition);
	pointer-events: none;
}

.panel:hover::before {
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

/* ── LOGO IMAGE HIDING (uses CSS bg instead) ── */
.panel__logo-img {
	display: none;
}

.panel__logo-text {
	display: block;
	width: 240px;
	height: 60px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	text-indent: -9999px;
	overflow: hidden;
	font-size: 0;
}

.panel--hd .panel__logo-text {
	background-image: url('img/hostdean-logo.svg');
}

.panel--ar .panel__logo-text {
	background-image: url('img/hostingdean-ar-logo.svg');
}

/* ── MOBILE HORIZONTAL DIVIDER ── */
.mobile-divider {
	display: none;
}

@media (max-width: 767px) {
	.mobile-divider {
		display: block;
		height: 1px;
		background: linear-gradient(
			to right,
			transparent,
			rgba(255, 255, 255, 0.2) 20%,
			rgba(255, 255, 255, 0.45) 50%,
			rgba(255, 255, 255, 0.2) 80%,
			transparent
		);
	}
}
