/* alam.rocks — Fakrul Alam */

:root {
  --bg: #0a0e16;
  --bg-alt: #0d1220;
  --surface: #111726;
  --surface-2: #151c2e;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e7ebf3;
  --muted: #97a3b6;
  --accent: #f6821f;
  --accent-soft: rgba(246, 130, 31, 0.14);
  --ring: rgba(246, 130, 31, 0.45);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 14px;
  --container: 960px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #14110c;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #14110c;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 14, 22, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-tld {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 22px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(72px, 14vh, 132px) 0 clamp(56px, 9vh, 96px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(46% 42% at 22% 28%, rgba(246, 130, 31, 0.16), transparent 70%),
    radial-gradient(40% 38% at 78% 12%, rgba(99, 130, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.prompt {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--accent);
  margin: 0 0 22px;
}

.prompt::after {
  content: "▌";
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero-role {
  margin: 18px 0 0;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
}

.hero-role a {
  color: var(--text);
  font-weight: 600;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.handle {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--accent);
  margin-left: 12px;
  white-space: nowrap;
}

.hero-lede {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #16110a;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -8px var(--ring);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* Sections */

.section {
  padding: clamp(64px, 10vh, 104px) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 12px;
}

.section h2 {
  margin: 0 0 clamp(28px, 5vh, 44px);
  font-size: clamp(28px, 4.4vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-lede {
  max-width: 620px;
  color: var(--muted);
  margin: -24px 0 32px;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 44px;
  align-items: start;
}

.prose p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--text);
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.quick-facts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.quick-facts h3 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.quick-facts dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.quick-facts dl div {
  display: grid;
  gap: 2px;
}

.quick-facts dt {
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quick-facts dd {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 26px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: -8px;
  width: 1px;
  background: var(--border-strong);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-alt);
  position: relative;
}

.timeline-marker::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.timeline-item:hover .timeline-body {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.timeline-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(246, 130, 31, 0.35);
}

.timeline-org {
  margin: 4px 0 10px;
  font-size: 14.5px;
  font-weight: 600;
}

.timeline-org a {
  color: var(--accent);
  text-decoration: none;
}

.timeline-org a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.timeline-body > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}

.card-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 10px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15.5px;
}

.card-link {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--accent);
}

/* Chips (speaking) */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  font-size: 15px;
  font-weight: 500;
  padding: 10px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.chips li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.chips a {
  text-decoration: none;
}

/* Connect */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.link-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.link-card-name {
  font-weight: 600;
  font-size: 15.5px;
}

.link-card-url {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.email-label {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid rgba(246, 130, 31, 0.35);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.email-btn:hover {
  background: rgba(246, 130, 31, 0.22);
  border-color: var(--accent);
}

.email-action {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 12.5px !important;
}

/* Reveal animations */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .prompt::after {
    animation: none;
  }
}

/* Responsive */

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .quick-facts {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav {
    justify-content: space-between;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero {
    padding-top: 56px;
  }

  .timeline-item {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 14px;
  }

  .timeline-marker {
    width: 18px;
    height: 18px;
  }

  .timeline-marker::after {
    inset: 3px;
  }

  .timeline-item::before {
    left: 8px;
  }
}
