/* =========================================================
   Haffi Ur Rehman — Portfolio
   Theme: deep navy, electric blue + cyan, glass cards
   ========================================================= */
:root {
  --bg: #050B1A;
  --bg-alt: #081229;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(148, 178, 255, 0.14);
  --border-strong: rgba(56, 189, 248, 0.45);
  --text: #E8EEF9;
  --muted: #9FB0CC;
  --blue: #2F7BFF;
  --cyan: #22D3EE;
  --grad: linear-gradient(120deg, #2F7BFF 0%, #22D3EE 100%);
  --radius: 18px;
  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: #fff; letter-spacing: -0.01em; }
a { color: var(--cyan); }
a:hover { color: #7DE8F7; }
img { max-width: 100%; height: auto; }
::selection { background: rgba(34, 211, 238, 0.3); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--cyan); color: #04101F; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Glass ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 600; padding: 12px 22px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; min-height: 52px; }
.btn-glow {
  background: var(--grad); color: #03101F; border: 0;
  box-shadow: 0 8px 28px -8px rgba(34, 211, 238, 0.55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-glow:hover, .btn-glow:focus-visible { color: #03101F; transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(34, 211, 238, 0.75); }
.btn-glow:disabled { opacity: .7; transform: none; }
.btn-ghost {
  color: #fff; border: 1px solid var(--border-strong); background: rgba(34, 211, 238, 0.06);
  transition: background .25s ease, transform .25s ease;
}
.btn-ghost:hover { color: #fff; background: rgba(34, 211, 238, 0.14); transform: translateY(-2px); }
.btn-sm-nav { padding: 10px 18px; min-height: 44px; }

/* ---------- Navbar ---------- */
.site-nav {
  min-height: var(--nav-h);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-nav.scrolled, .site-nav.menu-open {
  background: rgba(5, 11, 26, 0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.monogram {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; color: #03101F;
  background: var(--grad);
  box-shadow: 0 0 24px -4px rgba(34, 211, 238, 0.6);
}
.brand-text { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.site-nav .nav-link {
  color: var(--muted); font-weight: 500; font-size: 15px; padding: 10px 14px !important; position: relative;
  transition: color .2s ease;
}
.site-nav .nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #fff; }
.site-nav .nav-link.active::after, .site-nav .nav-link:hover::after { transform: scaleX(1); }
.navbar-toggler { border: 1px solid var(--border); border-radius: 10px; width: 48px; height: 44px; padding: 0; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 991.98px) {
  .navbar-collapse { padding: 12px 0 20px; }
  .site-nav .nav-link::after { left: 14px; right: auto; width: 24px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% 20%, rgba(47, 123, 255, 0.16), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(34, 211, 238, 0.09), transparent 60%),
    var(--bg);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.hero-glow { position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted);
  border: 1px solid var(--border); background: rgba(8, 18, 41, 0.6);
}
.pulse-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.55);} 70% { box-shadow: 0 0 0 12px rgba(34,211,238,0);} 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0);} }
.hero-title { font-size: clamp(2.3rem, 5.2vw, 4.2rem); font-weight: 700; line-height: 1.08; margin: 22px 0 18px; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--muted); margin-bottom: 22px; }
.hero-sub span { color: var(--cyan); margin: 0 6px; }
.xp-pill { display: inline-flex; align-items: center; gap: 14px; padding: 10px 20px 10px 10px; border-radius: 16px; border: 1px solid var(--border); background: rgba(8, 18, 41, 0.65); }
.xp-num { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: #03101F; background: var(--grad); border-radius: 12px; padding: 4px 12px; }
.xp-text { font-weight: 500; color: #fff; }

.social-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-row a {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-size: 18px; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.social-row a:hover { transform: translateY(-3px); color: var(--cyan); border-color: var(--border-strong); box-shadow: 0 0 20px -4px rgba(34, 211, 238, .5); }
.is-placeholder { opacity: .55; }

.portrait-wrap { position: relative; max-width: 420px; margin: 0 auto; aspect-ratio: 1; }
.portrait-ring {
  position: absolute; inset: -14px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 25%, var(--cyan) 35%, transparent 45% 70%, var(--blue) 80%, transparent 90%);
  animation: spin 14s linear infinite; opacity: .8;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}
@keyframes spin { to { transform: rotate(360deg); } }
.portrait-wrap picture { display: block; position: relative; width: 100%; height: 100%; }
.portrait {
  position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -20px rgba(47, 123, 255, 0.5), 0 0 60px -10px rgba(34, 211, 238, 0.35);
}
.portrait-badge {
  position: absolute; left: -6%; bottom: 8%; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: rgba(8, 18, 41, 0.78);
  animation: float 6s ease-in-out infinite;
}
.portrait-badge i { font-size: 24px; color: var(--cyan); }
.portrait-badge strong { display: block; font-size: 14px; color: #fff; }
.portrait-badge span { display: block; font-size: 12px; color: var(--muted); }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }
@media (max-width: 575.98px) { .eyebrow { font-size: 13px; border-radius: 14px; } }
@media (max-width: 991.98px) { .portrait-wrap { max-width: 280px; margin-bottom: 24px; } .portrait-badge { left: 50%; bottom: -26px; margin-left: -110px; width: 220px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 28px; height: 46px; border: 2px solid var(--border-strong); border-radius: 16px; display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translateY(0);} 100% { opacity: 0; transform: translateY(16px);} }
@media (min-width: 992px) and (min-height: 760px) { .scroll-cue { display: block; } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 18%, var(--bg-alt) 82%, var(--bg) 100%); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 600; color: var(--cyan); margin-bottom: 10px; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; line-height: 1.15; margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }
@media (max-width: 767.98px) { .section { padding: 80px 0; } .section-head { margin-bottom: 40px; } }

/* ---------- About ---------- */
.about-facts { padding: 8px 24px; }
.about-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.about-facts > div:last-child { border-bottom: 0; }
.fact-label { color: var(--muted); font-size: 14px; }
.fact-value { color: #fff; font-weight: 600; text-align: right; }
.about-text p { color: var(--muted); font-size: 1.04rem; }
.about-text .lead-text { color: #fff; font-size: 1.25rem; font-family: var(--font-head); font-weight: 500; line-height: 1.5; }
.tag-cloud { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud li { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: #fff; border: 1px solid var(--border); background: var(--surface); }

.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { padding: 6px 12px; border-radius: 8px; font-size: 13.5px; color: #CFE6FF; background: rgba(47, 123, 255, 0.12); border: 1px solid rgba(47, 123, 255, 0.22); }
.chip-list.small li { font-size: 12.5px; padding: 4px 10px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 980px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 23px; width: 2px; background: linear-gradient(var(--blue), var(--cyan), transparent); opacity: .5; }
.timeline-item { position: relative; padding-left: 72px; margin-bottom: 28px; }
.timeline-dot {
  position: absolute; left: 0; top: 22px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-alt); border: 1px solid var(--border-strong); color: var(--cyan); font-size: 20px;
  box-shadow: 0 0 24px -6px rgba(34, 211, 238, .55);
}
.timeline-card { padding: 26px 28px; transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.timeline-card:hover { transform: translateX(6px); border-color: var(--border-strong); background: var(--surface-hover); }
.timeline-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.timeline-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.timeline-card p { color: var(--muted); margin-bottom: 14px; }
@media (min-width: 992px) {
  .timeline::before { left: 50%; margin-left: -1px; }
  .timeline-item { width: 50%; padding-left: 0; padding-right: 56px; }
  .timeline-item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 56px; }
  .timeline-dot { left: auto; right: -24px; }
  .timeline-item:nth-child(even) .timeline-dot { left: -24px; right: auto; }
  .timeline-item:nth-child(odd) .timeline-card:hover { transform: translateX(-6px); }
}

/* ---------- Skill cards ---------- */
.skill-card { padding: 30px; position: relative; overflow: hidden; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.skill-card::before {
  content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 70%); opacity: 0; transition: opacity .4s ease;
}
.skill-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 20px 50px -20px rgba(34, 211, 238, .35); }
.skill-card:hover::before { opacity: 1; }
.skill-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  font-size: 26px; color: var(--cyan); background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.25);
  transition: transform .4s ease;
}
.skill-card:hover .skill-icon { transform: rotate(-8deg) scale(1.06); }
.skill-card h3 { font-size: 1.25rem; margin-bottom: 16px; }

/* ---------- Company ---------- */
.company-card { padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.company-card::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 123, 255, .18), transparent 65%); pointer-events: none; }
.company-logo-box { border-radius: 16px; padding: clamp(16px, 3vw, 28px); display: grid; place-items: center; background: #FFFFFF; box-shadow: 0 20px 60px -24px rgba(34, 211, 238, .45); }
.company-logo-box img { width: 100%; height: auto; }
.company-name { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 6px; }
.company-role { color: var(--cyan); font-weight: 600; margin-bottom: 10px; }
.company-tagline { font-family: var(--font-head); font-size: 1.15rem; color: #fff; }
.company-card p { color: var(--muted); }
.company-points { list-style: none; padding: 0; margin: 0 0 24px; }
.company-points li { display: flex; gap: 10px; padding: 6px 0; color: #DCE6F7; }
.company-points i { color: var(--cyan); }

/* ---------- Projects ---------- */
.badge-inline { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: .85em; font-weight: 600; color: #FFD68A; background: rgba(255, 196, 77, .12); border: 1px solid rgba(255, 196, 77, .3); }
.project-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  min-height: 44px; padding: 8px 20px; border-radius: 999px; font-weight: 500; font-size: 15px;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border); transition: all .25s ease;
}
.filter-btn:hover { color: #fff; border-color: var(--border-strong); }
.filter-btn.active { color: #03101F; background: var(--grad); border-color: transparent; }
.project-col.is-hidden { display: none; }
.project-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.project-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: 0 24px 60px -24px rgba(34, 211, 238, .45); }
.project-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0A1734; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-img img { transform: scale(1.06); }
.status-badge {
  position: absolute; top: 14px; left: 14px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
  color: #FFD68A; background: rgba(5, 11, 26, .78); border: 1px solid rgba(255, 196, 77, .35);
}
.project-card[data-status="completed"] .status-badge { color: #86EFAC; border-color: rgba(134, 239, 172, .4); }
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-body h3 { font-size: 1.2rem; margin: 0; }
.project-body p { color: var(--muted); margin: 0; font-size: .97rem; }
.btn-details {
  margin-top: auto; align-self: flex-start; min-height: 44px; background: none; border: 0; padding: 8px 0;
  color: var(--cyan); font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.btn-details i { transition: transform .25s ease; }
.btn-details:hover i { transform: translateX(5px); }
.glass-modal { background: rgba(8, 18, 41, 0.96); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); backdrop-filter: blur(18px); }
.glass-modal .modal-title { font-size: 1.4rem; }
.modal-img { width: 100%; border-radius: 12px; margin-bottom: 16px; aspect-ratio: 16/10; object-fit: cover; }
.modal-status { font-size: 13px; color: #FFD68A; margin-bottom: 8px; }
#projectModalBody p, #projectModalBody li { color: var(--muted); }
.modal-backdrop.show { opacity: .7; }

/* ---------- Services ---------- */
.service-card { padding: 28px; transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.service-card i { font-size: 28px; color: var(--cyan); display: inline-block; margin-bottom: 14px; }
.service-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); margin: 0; font-size: .97rem; }
.service-card:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--surface-hover); }

/* ---------- Achievements ---------- */
.achieve-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.achieve-card { padding: 30px 24px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; transition: transform .3s ease, border-color .3s ease; }
.achieve-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.achieve-card i { font-size: 30px; color: var(--cyan); }
.achieve-card p { margin: 0; color: #fff; font-weight: 600; font-size: 1.05rem; }
.achieve-main { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 24px; background: linear-gradient(135deg, rgba(47,123,255,.18), rgba(34,211,238,.08)); }
.achieve-num, .achieve-plus { font-family: var(--font-head); font-weight: 700; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.achieve-big { display: inline-flex; align-items: baseline; }
.achieve-main p { font-size: 1.2rem; flex-basis: 100%; }
@media (min-width: 992px) {
  .achieve-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .achieve-main { grid-column: 1 / -1; }
  .achieve-main p { flex-basis: auto; }
}

/* ---------- Contact ---------- */
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-decoration: none; color: #fff; transition: transform .25s ease, border-color .25s ease; }
.contact-item:hover { color: #fff; transform: translateX(6px); border-color: var(--border-strong); }
.contact-item i { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: var(--cyan); background: rgba(34, 211, 238, 0.1); }
.contact-item strong { display: block; font-size: 15px; }
.contact-item small { display: block; color: var(--muted); font-size: 14px; }
.contact-form { padding: clamp(24px, 4vw, 40px); }
.contact-form .form-label { color: #DCE6F7; font-weight: 500; font-size: 14px; }
.contact-form .form-control {
  background: rgba(5, 11, 26, 0.6); border: 1px solid var(--border); color: #fff; border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.contact-form .form-control:focus { background: rgba(5, 11, 26, 0.8); border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .2); color: #fff; }
.contact-form .form-control.is-invalid { border-color: #F87171; }
.contact-form .invalid-feedback { color: #FCA5A5; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; }
.form-status.ok { color: #86EFAC; }
.form-status.err { color: #FCA5A5; }

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 32px; border-top: 1px solid var(--border); background: #040915; }
.footer-intro { color: var(--muted); max-width: 420px; }
.footer-head { font-size: 14px; text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-block; padding: 6px 0; color: var(--muted); text-decoration: none; transition: color .2s ease, transform .2s ease; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-bottom p { margin: 0; }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 1020; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; font-size: 20px; color: #03101F; background: var(--grad);
  box-shadow: 0 10px 30px -8px rgba(34, 211, 238, .6);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #03101F; transform: translateY(-3px); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* page fade-in */
.js body { animation: pageIn .6s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
