/*
	Shihabul Millah — personal site
	Modern dark theme with animated aurora background.
	Icons: Font Awesome (assets/css/fontawesome-all.min.css)
*/

:root {
	--bg-0: #070d1f;
	--bg-1: #0b1530;
	--sap-blue: #0a6ed1;
	--sky: #4db8ff;
	--gold: #f0ab00; /* SAP gold accent */
	--text: #e8eefb;
	--text-dim: #9fb0cc;
	--card: rgba(255, 255, 255, 0.045);
	--card-border: rgba(255, 255, 255, 0.12);
	--radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
	font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
	background: var(--bg-0);
	color: var(--text);
	line-height: 1.7;
	overflow-x: hidden;
}

::selection { background: rgba(10, 110, 209, 0.6); color: #fff; }

a { color: var(--sky); text-decoration: none; }

/* ---------- Animated aurora background ---------- */

#backdrop {
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(ellipse 80% 55% at 50% -10%, rgba(10, 110, 209, 0.28), transparent 60%),
		linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 55%, #05091a 100%);
}

#backdrop::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
}

.orb {
	position: fixed;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.5;
	z-index: -1;
	animation: drift 22s ease-in-out infinite alternate;
	pointer-events: none;
}

.orb-1 { width: 480px; height: 480px; top: -140px; left: -120px; background: #0a6ed1; }
.orb-2 { width: 420px; height: 420px; top: 30%; right: -160px; background: #6c3fd1; animation-delay: -7s; animation-duration: 28s; }
.orb-3 { width: 360px; height: 360px; bottom: -140px; left: 28%; background: #0a8fd1; animation-delay: -14s; animation-duration: 26s; }

@keyframes drift {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to   { transform: translate3d(70px, 50px, 0) scale(1.15); }
}

/* Twinkling stars (injected by JS) */

#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

#stars .star {
	position: absolute;
	background: #fff;
	border-radius: 50%;
	animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
	0%, 100% { opacity: 0.15; }
	50% { opacity: 0.8; }
}

/* ---------- Layout helpers ---------- */

.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; scroll-margin-top: 64px; }

.section-title {
	font-size: 2rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 12px;
	letter-spacing: -0.02em;
}

.section-title .accent { color: var(--sky); }

.section-sub {
	text-align: center;
	color: var(--text-dim);
	max-width: 620px;
	margin: 0 auto 56px;
}

.kicker {
	display: block;
	text-align: center;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 10px;
}

/* ---------- Navbar ---------- */

#navbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	background: rgba(7, 13, 31, 0.65);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

#navbar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.brand { font-weight: 700; font-size: 1.05rem; color: var(--text); letter-spacing: 0.02em; }
.brand .dot { color: var(--gold); }

.nav-links { display: flex; gap: 28px; list-style: none; }

.nav-links a {
	color: var(--text-dim);
	font-size: 0.9rem;
	font-weight: 500;
	transition: color 0.2s ease;
}

.nav-links a:hover { color: #fff; }

/* ---------- Hero ---------- */

#hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	text-align: center;
	padding: 140px 0 80px;
}

#hero .container { width: 100%; }

.avatar {
	width: 128px;
	height: 128px;
	margin: 0 auto 28px;
	border-radius: 50%;
	padding: 4px;
	background: linear-gradient(135deg, var(--sap-blue), #6c3fd1);
	box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08), 0 18px 45px rgba(10, 110, 209, 0.45);
}

.avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.hello {
	display: inline-block;
	padding: 7px 18px;
	border-radius: 999px;
	border: 1px solid var(--card-border);
	background: var(--card);
	color: var(--text-dim);
	font-size: 0.85rem;
	margin-bottom: 22px;
}

.hello .wave { display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }

@keyframes wave {
	0%, 60%, 100% { transform: rotate(0); }
	10% { transform: rotate(14deg); }
	20% { transform: rotate(-8deg); }
	30% { transform: rotate(14deg); }
	40% { transform: rotate(-4deg); }
	50% { transform: rotate(10deg); }
}

#hero h1 {
	font-size: clamp(2.6rem, 6vw, 4.2rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	margin-bottom: 14px;
}

#hero h1 .gradient {
	background: linear-gradient(100deg, #4db8ff 10%, #9d7bff 50%, #4db8ff 90%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: shine 7s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }

.typing-line {
	font-size: clamp(1.05rem, 2.4vw, 1.35rem);
	color: var(--text-dim);
	min-height: 1.8em;
	margin-bottom: 26px;
}

.typing-line .typed { color: var(--gold); font-weight: 600; }

.typing-line .cursor {
	display: inline-block;
	margin-left: 2px;
	color: var(--gold);
	animation: blink 0.9s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-desc { max-width: 640px; margin: 0 auto 36px; color: var(--text-dim); }

.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 30px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
	background: linear-gradient(135deg, var(--sap-blue), #2a8ae8);
	color: #fff;
	box-shadow: 0 10px 30px rgba(10, 110, 209, 0.4);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(10, 110, 209, 0.55); }

.btn-ghost {
	border: 1px solid var(--card-border);
	background: var(--card);
	color: var(--text);
}

.btn-ghost:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.1); }

.socials { display: flex; gap: 14px; justify-content: center; list-style: none; }

.socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--card-border);
	background: var(--card);
	color: var(--text-dim);
	font-size: 1.05rem;
	transition: all 0.25s ease;
}

.socials a:hover { transform: translateY(-4px); color: #fff; }
.socials a.s-twitter:hover { background: #1da1f2; border-color: #1da1f2; box-shadow: 0 8px 22px rgba(29,161,242,0.5); }
.socials a.s-facebook:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 8px 22px rgba(24,119,242,0.5); }
.socials a.s-linkedin:hover { background: #0a66c2; border-color: #0a66c2; box-shadow: 0 8px 22px rgba(10,102,194,0.5); }
.socials a.s-github:hover { background: #333; border-color: #666; box-shadow: 0 8px 22px rgba(160,160,160,0.35); }
.socials a.s-email:hover { background: #ea4335; border-color: #ea4335; box-shadow: 0 8px 22px rgba(234,67,53,0.5); }
.socials a.s-whatsapp:hover { background: #25d366; border-color: #25d366; box-shadow: 0 8px 22px rgba(37,211,102,0.5); }

.scroll-hint {
	margin-top: 54px;
	color: var(--text-dim);
	font-size: 1.3rem;
	animation: bob 2s ease-in-out infinite;
	display: inline-block;
}

@keyframes bob { 50% { transform: translateY(8px); } }

/* ---------- About ---------- */

.about-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 40px;
	align-items: start;
}

.about-text p { color: var(--text-dim); margin-bottom: 18px; }
.about-text strong { color: var(--text); }

.fact-list { list-style: none; display: grid; gap: 14px; }

.fact-list li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	border-radius: var(--radius);
	border: 1px solid var(--card-border);
	background: var(--card);
	color: var(--text-dim);
	font-size: 0.95rem;
}

.fact-list i { color: var(--gold); width: 22px; text-align: center; }
.fact-list span strong { color: var(--text); display: block; font-size: 0.98rem; }

/* ---------- Expertise cards ---------- */

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}

.card {
	position: relative;
	padding: 34px 28px;
	border-radius: var(--radius);
	border: 1px solid var(--card-border);
	background: var(--card);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
	overflow: hidden;
}

.card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--sap-blue), #9d7bff);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.card:hover {
	transform: translateY(-8px);
	border-color: rgba(77, 184, 255, 0.45);
	box-shadow: 0 22px 50px rgba(3, 8, 24, 0.6);
}

.card:hover::before { opacity: 1; }

.card .icon-badge {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	color: #fff;
	background: linear-gradient(135deg, var(--sap-blue), #6c3fd1);
	margin-bottom: 20px;
	box-shadow: 0 10px 24px rgba(10, 110, 209, 0.35);
}

.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Skills ---------- */

.skill-groups { display: grid; gap: 28px; }

.skill-group {
	padding: 30px 32px;
	border-radius: var(--radius);
	border: 1px solid var(--card-border);
	background: var(--card);
}

.skill-group h3 {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.skill-group h3 i { color: var(--sky); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }

.chips li {
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid rgba(77, 184, 255, 0.25);
	background: rgba(10, 110, 209, 0.12);
	color: var(--text);
	font-size: 0.86rem;
	transition: all 0.25s ease;
	cursor: default;
}

.chips li:hover {
	background: rgba(10, 110, 209, 0.35);
	border-color: var(--sky);
	transform: translateY(-2px);
}

/* ---------- Contact ---------- */

.contact-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 24px;
	max-width: 860px;
	margin: 0 auto;
}

.contact-card {
	display: block;
	text-align: center;
	padding: 36px 24px;
	border-radius: var(--radius);
	border: 1px solid var(--card-border);
	background: var(--card);
	color: var(--text);
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card i {
	font-size: 1.8rem;
	color: var(--sky);
	margin-bottom: 16px;
	display: block;
	transition: transform 0.3s ease;
}

.contact-card:hover { transform: translateY(-6px); border-color: rgba(77, 184, 255, 0.5); box-shadow: 0 20px 44px rgba(3, 8, 24, 0.55); }
.contact-card:hover i { transform: scale(1.15); }

.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p { color: var(--text-dim); font-size: 0.86rem; word-break: break-all; }

/* ---------- Footer ---------- */

footer {
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	padding: 34px 0;
	text-align: center;
	color: var(--text-dim);
	font-size: 0.85rem;
}

footer .heart { color: #ff5470; }

/* ---------- Reveal on scroll ---------- */

.reveal {
	opacity: 0;
	transform: translateY(34px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
	.nav-links { display: none; }
	.about-grid { grid-template-columns: 1fr; }
	section { padding: 72px 0; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; }
	#stars { display: none; }
}
