/* =========================================================
   Usman Amir — Modern Portfolio
   A self-contained, dependency-free design system.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
	--bg: #070b16;
	--bg-2: #0b1120;
	--surface: rgba(255, 255, 255, 0.04);
	--surface-2: rgba(255, 255, 255, 0.06);
	--border: rgba(255, 255, 255, 0.09);
	--border-strong: rgba(255, 255, 255, 0.16);
	--text: #e8ecf5;
	--muted: #97a1b8;
	--faint: #6b7690;

	--brand: #2563eb;
	--brand-2: #60a5fa;
	--brand-3: #3b82f6;
	--accent: #60a5fa;

	--grad: #2563eb;
	--grad-soft: rgba(37, 99, 235, 0.14);

	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
	--shadow-glow: 0 0 40px -8px rgba(37, 99, 235, 0.5);

	--maxw: 1180px;
	--font: "Inter", "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	--font-head: "Space Grotesk", "Poppins", var(--font);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .25s ease; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
section { position: relative; }

/* ---------- Ambient Background ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-orbs span {
	position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
	animation: float 18s ease-in-out infinite;
}
.bg-orbs span:nth-child(1){ width: 480px; height: 480px; background: #2563eb; top: -120px; left: -80px; }
.bg-orbs span:nth-child(2){ width: 420px; height: 420px; background: #3b82f6; bottom: -120px; right: -60px; animation-delay: -6s; }
.bg-orbs span:nth-child(3){ width: 360px; height: 360px; background: #1d4ed8; top: 40%; left: 55%; animation-delay: -11s; }
body::before {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(1200px 600px at 80% -10%, rgba(37,99,235,.12), transparent 60%),
		linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
@keyframes float {
	0%, 100% { transform: translate(0,0) scale(1); }
	50% { transform: translate(40px, -30px) scale(1.08); }
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
	color: var(--brand-2); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-title {
	font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.9rem);
	font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px;
}
.section-lead { color: var(--muted); max-width: 640px; font-size: 1.02rem; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }
.gradient-text { color: var(--brand-2); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
	cursor: pointer; border: 1px solid transparent; transition: all .28s ease;
	position: relative; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -8px rgba(99,102,241,.7); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--brand-2); color: #fff; transform: translateY(-3px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Navbar ---------- */
.nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	transition: all .3s ease; padding: 18px 0;
}
.nav.scrolled {
	background: rgba(9, 13, 25, 0.72);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
	padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-strong); }
.brand .dot { color: var(--brand-2); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
	padding: 9px 16px; border-radius: 999px; color: var(--muted);
	font-weight: 500; font-size: .93rem; transition: all .22s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: #fff; background: var(--surface-2); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
	display: none; background: var(--surface); border: 1px solid var(--border);
	color: var(--text); width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
	align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 130px 0 90px; text-align: center; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero-copy { max-width: 780px; margin: 0 auto; }
.hero-badge {
	display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px;
	border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
	backdrop-filter: blur(10px); font-size: .85rem; color: var(--muted); margin-bottom: 24px;
}
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.6);} 70%{box-shadow:0 0 0 10px rgba(34,197,94,0);} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0);} }
.hero h1 {
	font-family: var(--font-head); font-size: clamp(2.6rem, 6vw, 4.6rem);
	line-height: 1.02; letter-spacing: -.03em; font-weight: 700; margin-bottom: 18px;
}
.hero .role { font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 600; color: var(--text); margin-bottom: 22px; min-height: 1.6em; }
.hero .typed { color: var(--brand-2); }
.hero .cursor { color: var(--brand-2); font-weight: 400; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero p.lead { color: var(--muted); font-size: 1.06rem; max-width: 620px; margin: 0 auto 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; justify-content: center; }
.hero-socials { display: flex; gap: 12px; justify-content: center; }
.hero-socials a {
	width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
	background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: all .25s;
}
.hero-socials a:hover { color: #fff; border-color: var(--brand-2); transform: translateY(-3px); background: var(--surface-2); }
.hero-socials svg { width: 19px; height: 19px; }

/* Hero quick stats */
.hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-stat {
	display: flex; align-items: center; gap: 12px; padding: 14px 22px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 16px; backdrop-filter: blur(8px);
	transition: all .28s ease;
}
.hero-stat:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.hero-stat .num { font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; color: var(--brand-2); line-height: 1; }
.hero-stat small { color: var(--muted); font-size: .8rem; line-height: 1.2; text-align: left; }

/* Hero portrait */
.hero-portrait { position: relative; justify-self: center; }
.portrait-ring {
	position: relative; width: 340px; height: 340px; border-radius: 50%;
	display: grid; place-items: center;
}
.portrait-ring::before {
	content: ""; position: absolute; inset: -3px; border-radius: 50%;
	background: conic-gradient(from 0deg, var(--brand), var(--brand-3), var(--brand-2), var(--brand));
	animation: spin 8s linear infinite; z-index: 0; filter: drop-shadow(0 0 30px rgba(99,102,241,.4));
}
@keyframes spin { to { transform: rotate(360deg); } }
.portrait-ring img {
	position: relative; z-index: 1; width: 318px; height: 318px; border-radius: 50%;
	object-fit: cover; border: 6px solid var(--bg-2); background: var(--bg-2);
}
.floating-chip {
	position: absolute; z-index: 2; background: rgba(11,17,32,.85); backdrop-filter: blur(12px);
	border: 1px solid var(--border-strong); border-radius: 14px; padding: 12px 16px;
	display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); animation: bob 4s ease-in-out infinite;
}
.floating-chip .num { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.floating-chip small { color: var(--muted); font-size: .72rem; line-height: 1.2; display: block; }
.chip-1 { top: 6%; left: -18px; }
.chip-2 { bottom: 8%; right: -22px; animation-delay: -2s; }
@keyframes bob { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

.scroll-cue {
	position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
	color: var(--faint); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue .mouse { width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 14px; position: relative; }
.scroll-cue .mouse::after { content:""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; border-radius: 2px; background: var(--brand-2); animation: wheel 1.6s infinite; }
@keyframes wheel { 0%{opacity:0; top:7px;} 40%{opacity:1;} 100%{opacity:0; top:18px;} }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); border: 1px solid var(--border); }
.about-photo::after { content:""; position: absolute; inset: 0; border-radius: var(--radius); background: linear-gradient(180deg, transparent 55%, rgba(7,11,22,.5)); }
.about-info { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 26px 0 30px; }
.about-info li { display: flex; flex-direction: column; gap: 2px; }
.about-info li span:first-child { color: var(--faint); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.about-info li span:last-child { color: var(--text); font-weight: 500; word-break: break-word; }
.about-info li a:hover { color: var(--brand-2); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 70px; }
.stat-card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 28px 24px; text-align: center; transition: all .3s ease; backdrop-filter: blur(6px);
}
.stat-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.stat-card .stat-num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.stat-card .stat-label { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* ---------- Tabs (Resume) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; justify-content: center; }
.tab-btn {
	padding: 11px 22px; border-radius: 999px; border: 1px solid var(--border);
	background: var(--surface); color: var(--muted); font-weight: 600; font-size: .93rem; cursor: pointer;
	transition: all .25s ease; display: inline-flex; align-items: center; gap: 8px;
}
.tab-btn:hover { color: var(--text); border-color: var(--border-strong); }
.tab-btn.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: var(--shadow-glow); }
.tab-panel { display: none; animation: fade .4s ease; }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Timeline */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content:""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); opacity: .5; }
.tl-item { position: relative; padding: 0 0 34px 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
	content:""; position: absolute; left: -34px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--bg-2); border: 3px solid var(--brand); box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}
.tl-card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 24px 26px; transition: all .3s ease; backdrop-filter: blur(6px);
}
.tl-card:hover { transform: translateX(6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.tl-date { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--brand-2); background: rgba(37,99,235,.14); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.tl-card h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 4px; }
.tl-card .org { color: var(--accent); font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.tl-card p { color: var(--muted); font-size: .95rem; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 44px; }
.skill { }
.skill-top { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 600; }
.skill-top .pct { color: var(--brand-2); }
.skill-bar { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.skill-fill { height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width 1.3s cubic-bezier(.16,1,.3,1); }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 30px 28px; transition: all .35s ease; position: relative; overflow: hidden;
	display: flex; flex-direction: column; backdrop-filter: blur(6px);
}
.project-card::before {
	content:""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .35s ease;
}
.project-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.project-card:hover::before { opacity: 1; }
.project-card > * { position: relative; z-index: 1; }
.project-icon {
	width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
	background: var(--grad-soft); border: 1px solid var(--border-strong); margin-bottom: 18px;
}
.project-icon svg { width: 24px; height: 24px; color: var(--brand-2); }
.project-card h3 { font-family: var(--font-head); font-size: 1.22rem; margin-bottom: 4px; }
.project-card .org { color: var(--accent); font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.project-card p { color: var(--muted); font-size: .93rem; flex: 1; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tags span { font-size: .74rem; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.project-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; color: var(--brand-2); }
.project-link svg { width: 16px; height: 16px; transition: transform .25s; }
.project-card:hover .project-link svg { transform: translate(3px,-3px); }
.other-projects {
	grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 30px 32px; backdrop-filter: blur(6px);
}
.other-projects h3 { font-family: var(--font-head); margin-bottom: 18px; font-size: 1.22rem; }
.other-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; }
.other-list li { color: var(--muted); display: flex; align-items: baseline; gap: 10px; font-size: .94rem; }
.other-list li::before { content: "▹"; color: var(--brand-2); }
.other-list b { color: var(--text); font-weight: 600; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 26px 24px; transition: all .32s ease; position: relative; overflow: hidden; backdrop-filter: blur(6px);
}
.service-card::before { content:""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .32s ease; }
.service-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-icon {
	width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
	background: var(--grad-soft); border: 1px solid var(--border-strong); margin-bottom: 16px; color: var(--brand-2);
}
.service-icon svg { width: 23px; height: 23px; }
.service-card h3 { font-family: var(--font-head); font-size: 1.06rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .89rem; line-height: 1.6; }

/* ---------- Ventures / Startup ---------- */
.ventures-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.venture-card {
	position: relative; overflow: hidden; border-radius: 22px; padding: 40px 38px;
	border: 1px solid var(--border-strong); background: var(--surface); backdrop-filter: blur(8px);
	transition: all .35s ease; display: flex; flex-direction: column;
}
.venture-card::after { content:""; position: absolute; inset: 0; background: radial-gradient(500px 260px at 100% 0%, rgba(37,99,235,.20), transparent 65%); }
.venture-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.venture-card > * { position: relative; z-index: 1; }
.venture-badge {
	display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
	font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: var(--brand-2); background: var(--grad-soft); border: 1px solid var(--border-strong);
	padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.venture-logo { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 20px; box-shadow: var(--shadow-glow); }
.venture-logo svg { width: 30px; height: 30px; }
.venture-card h3 { font-family: var(--font-head); font-size: 1.55rem; margin-bottom: 6px; letter-spacing: -.01em; }
.venture-card .venture-role { color: var(--brand-2); font-weight: 600; font-size: .95rem; margin-bottom: 16px; }
.venture-card p { color: var(--muted); font-size: .96rem; flex: 1; margin-bottom: 22px; }
.venture-points { display: grid; gap: 10px; margin-bottom: 24px; }
.venture-points li { color: var(--muted); font-size: .93rem; display: flex; align-items: flex-start; gap: 10px; }
.venture-points li svg { width: 18px; height: 18px; color: var(--brand-2); flex-shrink: 0; margin-top: 2px; }

/* ---------- CTA banner ---------- */
.cta-banner {
	position: relative; border-radius: 28px; overflow: hidden; padding: 70px 40px; text-align: center;
	border: 1px solid var(--border-strong);
	background:
		linear-gradient(120deg, rgba(37,99,235,.22), rgba(37,99,235,.10)),
		var(--surface);
}
.cta-banner::after { content:""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(37,99,235,.28), transparent 70%); }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 14px; letter-spacing: -.02em; }
.cta-banner p { color: var(--muted); max-width: 620px; margin: 0 auto 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.contact-card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 32px 24px; text-align: center; transition: all .3s ease; backdrop-filter: blur(6px);
}
.contact-card:hover { transform: translateY(-6px); border-color: var(--brand-2); box-shadow: var(--shadow); }
.contact-card .c-icon {
	width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center;
	background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--brand-2);
}
.contact-card .c-icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; font-family: var(--font-head); }
.contact-card a, .contact-card p { color: var(--muted); font-size: .92rem; word-break: break-word; }
.contact-card a:hover { color: var(--brand-2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 16px; }
.footer p { color: var(--muted); font-size: .93rem; max-width: 340px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: .93rem; transition: color .2s; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--brand-2); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: all .25s; }
.footer-social a:hover { color: #fff; border-color: var(--brand-2); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; color: var(--faint); font-size: .88rem; }
.footer-bottom a { color: var(--brand-2); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- To-top ---------- */
.to-top {
	position: fixed; bottom: 26px; right: 26px; z-index: 90; width: 48px; height: 48px;
	border-radius: 14px; background: var(--grad); color: #fff; border: none; cursor: pointer;
	display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(14px);
	transition: all .3s ease; box-shadow: var(--shadow-glow);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Preloader ---------- */
.preloader {
	position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: grid; place-items: center;
	transition: opacity .5s ease, visibility .5s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader .ldr { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--brand-2); animation: spin .9s linear infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.hero-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
	.hero p.lead { margin-left: auto; margin-right: auto; }
	.hero-actions, .hero-socials { justify-content: center; }
	.hero-badge { margin-left: auto; margin-right: auto; }
	.about-grid { grid-template-columns: 1fr; gap: 40px; }
	.about-photo { max-width: 420px; margin: 0 auto; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.projects-grid { grid-template-columns: 1fr 1fr; }
	.services-grid { grid-template-columns: repeat(3, 1fr); }
	.ventures-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1040px) {
	.nav-links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column;
		align-items: stretch; justify-content: flex-start; gap: 8px; padding: 90px 24px 24px;
		background: rgba(9,13,25,.96); backdrop-filter: blur(18px); border-left: 1px solid var(--border);
		transform: translateX(100%); transition: transform .35s ease; }
	.nav-links.open { transform: none; }
	.nav-links a { padding: 14px 16px; font-size: 1rem; }
	.nav-cta { margin: 8px 0 0; }
	.nav-toggle { display: flex; }
}
@media (max-width: 820px) {
	.stats { grid-template-columns: 1fr 1fr; }
	.contact-grid { grid-template-columns: 1fr 1fr; }
	.services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
	.section { padding: 80px 0; }
	.about-info, .skills-grid, .other-list { grid-template-columns: 1fr; }
	.projects-grid { grid-template-columns: 1fr; }
	.services-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.stats, .contact-grid { grid-template-columns: 1fr 1fr; }
	.portrait-ring { width: 280px; height: 280px; }
	.portrait-ring img { width: 262px; height: 262px; }
	.cta-banner { padding: 50px 22px; }
	.floating-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
	html { scroll-behavior: auto; }
}
