/* =========================================================
   Abir Hasan Fuad — Minimal Dark Portfolio
   Production-ready static site for GitHub Pages
   ========================================================= */

/* ---------- CSS Reset (modern, minimal) ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #000;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

::selection {
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #000000;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.62);
  --muted2: rgba(255, 255, 255, 0.48);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius-sm: 14px;

  --accentA: #b7c7ff;
  --accentB: #7cf7d4;
  --accentC: #ffffff;

  --container: 1120px;
  --pad: 24px;

  --titleFont: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =========================================================
   TOP-RIGHT ROUNDED GLASS NAV
   ========================================================= */

.glass-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.45);
}

.glass-nav__inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.glass-nav__logo img {
  width: 44px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.glass-nav__logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.55));
}

/* Rounded menu */
.glass-nav__menu {
  display: flex;
  gap: 28px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Nav links */
.nav-link {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Background layers ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg__glow {
  position: absolute;
  width: 720px;
  height: 720px;
  filter: blur(70px);
  opacity: 0.22;
  border-radius: 999px;
  transform: translate3d(0, 0, 0);
}

.bg__glow--a {
  left: -220px;
  top: -240px;
  background: radial-gradient(circle at 30% 30%, var(--accentA), transparent 60%);
}

.bg__glow--b {
  right: -260px;
  bottom: -260px;
  background: radial-gradient(circle at 30% 30%, var(--accentB), transparent 60%);
}

.bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 62%);
}

.bg__noise {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 72px 0 96px;
}

.muted {
  color: var(--muted);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--titleFont);
  letter-spacing: 0.2px;
}

.brand__mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accentA), var(--accentB));
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04);
}

.brand__text {
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.nav {
  position: relative;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.nav__toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav__toggleLines {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  position: relative;
}

.nav__toggleLines::before,
.nav__toggleLines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 220ms var(--ease), top 220ms var(--ease), opacity 220ms var(--ease);
}

.nav__toggleLines::before {
  top: -6px;
}

.nav__toggleLines::after {
  top: 6px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 84px;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.hero__title {
  font-family: var(--titleFont);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(44px, 5.2vw, 74px);
  margin: 0 0 14px;
}

.hero__subtitle {
  margin: 0 0 22px;
  font-size: clamp(16px, 1.6vw, 18px);
  color: rgba(255, 255, 255, 0.72);
  max-width: 56ch;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.pill i {
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Cards / glass ---------- */
.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card__title {
  font-family: var(--titleFont);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  font-size: 18px;
}

.card__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
  user-select: none;
}

.btn__icon {
  width: 18px;
  display: inline-flex;
  justify-content: center;
}

.btn--primary {
  background: linear-gradient(135deg, rgba(183, 199, 255, 0.22), rgba(124, 247, 212, 0.16));
  border-color: rgba(255, 255, 255, 0.18);
}

.btn--primary:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn--full {
  width: 100%;
}

/* ---------- Profile card ---------- */
/* Profile card sizing & centering */
.profileCard {
  padding: 28px;
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
}

/* Top section */
.profileCard__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

/* Larger avatar */
.avatar--large {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.avatar--large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(1.05);
}

/* Identity */
.profileCard__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  margin: 0;
}

.profileCard__role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin: 4px 0 0;
}

/* Description */
.profileCard__line {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin: 16px 0 20px;
}

/* Actions */
.profileCard__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profileCard__name {
  font-family: var(--titleFont);
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.01em;
}

.profileCard__role {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.profileCard__line {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.profileCard__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Scroll hint ---------- */
.hero__scrollHint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__scrollDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.04);
  animation: pulse 1.8s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

/* ---------- Section head ---------- */
.sectionHead {
  margin-bottom: 22px;
}

.sectionHead__title {
  font-family: var(--titleFont);
  font-size: 28px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.sectionHead__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  max-width: 70ch;
}

.sectionHead--center {
  text-align: center;
  margin-bottom: 18px;
}

.sectionHead--center .sectionHead__subtitle {
  margin-inline: auto;
}

/* ---------- About ---------- */
.aboutGrid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.aboutCard {
  padding: 22px;
}

.aboutCard__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.stat__kicker {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 6px;
}

.stat__value {
  display: block;
  font-family: var(--titleFont);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.aboutSide {
  padding: 22px;
}

.kv {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.kv__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.kv__label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.kv__value {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  text-align: right;
  word-break: break-word;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 16px 0;
}

.stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

/* ---------- Social cards ---------- */
.cardsGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.socialCard {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
  position: relative;
  overflow: hidden;
}

.socialCard::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 20% 10%, rgba(183, 199, 255, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 220ms var(--ease);
  pointer-events: none;
}

.socialCard:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

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

.socialCard__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  flex: 0 0 auto;
}

.socialCard__body {
  min-width: 0;
}

.socialCard__title {
  font-family: var(--titleFont);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.9);
}

.socialCard__meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 28ch;
}

.socialCard__arrow {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- QR ---------- */
.qrWrap {
  padding: 22px;
}

.qr {
  width: min(320px, 100%);
  margin: 18px auto 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.qr img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.qr__caption {
  text-align: center;
  margin: 0;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding: 28px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.footer__name {
  font-family: var(--titleFont);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.footer__credit {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.footer__email {
  display: inline-block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer__email:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer__copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.footer__right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.iconBtn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}

.iconBtn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.toTop {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), opacity 220ms var(--ease);
  opacity: 0;
  pointer-events: none;
}

.toTop:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
}

.toTop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Scroll Reveal Animation ---------- */

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .profileCard {
    position: relative;
    top: auto;
  }

  .aboutGrid {
    grid-template-columns: 1fr;
  }

  .cardsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section {
    padding: 78px 0;
  }

  .hero {
    padding-top: 64px;
  }

  .hero__scrollHint {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav__list {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(260px, 80vw);
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 6px;
  }

  .nav__list.is-open {
    display: flex;
  }

  .nav__link {
    width: 100%;
  }

  .aboutCard__highlights {
    grid-template-columns: 1fr;
  }

  .cardsGrid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__right {
    justify-content: flex-start;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

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

  .hero__scrollDot {
    animation: none;
  }

  .btn,
  .chip,
  .socialCard,
  .iconBtn,
  .toTop {
    transition: none;
  }
}
