/* ============================================================
   BASE & TYPOGRAPHY — Shan Asharaf Portfolio
   Pure black, fluid typography, glossy surfaces, candy-red edge lights
   ============================================================ */

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

html {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-base);
  color: var(--text-secondary);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  position: relative;
}

/* ── Accessible Skip Link ─────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -120px;
  left: 24px;
  background: var(--candy-red);
  color: #ffffff;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  box-shadow: 0 0 24px var(--candy-glow);
  transition: top 200ms var(--ease-out);
}
.skip-link:focus {
  top: 24px;
}

:focus-visible {
  outline: 2px solid var(--candy-red);
  outline-offset: 3px;
}

/* ── Typography Scale with fluid clamp() ─────────────────────── */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.section-title {
  font-size: clamp(32px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.card-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.lead-text {
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-primary);
  max-width: 62ch;
}

.body-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--candy-red);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--candy-red);
  box-shadow: 0 0 10px var(--candy-glow);
}

.meta-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ── 12-Column Grid System ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section-pad {
  padding-block: var(--pad-y);
  position: relative;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: center;
}

.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

/* ── Glossy Surface Styling (Candy-red edge-lights & soft inner glow) ── */
.gloss-card {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 20, 25, 0.8) 0%, rgba(9, 9, 12, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card), var(--inset-gloss);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 240ms var(--ease-soft),
              border-color 240ms var(--ease-soft),
              box-shadow 240ms var(--ease-soft);
  overflow: hidden;
}

.gloss-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 240ms var(--ease-soft);
}

.gloss-card:hover {
  transform: translateY(-6px);
  border-color: var(--candy-edge);
  box-shadow: var(--shadow-glow), var(--inset-gloss);
}
.gloss-card:hover::after {
  border-color: rgba(255, 23, 68, 0.38);
}

/* ── Glossy Buttons with Candy-Red Hover Glows ────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 34px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 200ms var(--ease-soft),
              box-shadow 200ms var(--ease-soft),
              background 200ms var(--ease-soft),
              border-color 200ms var(--ease-soft);
}

.btn-primary {
  background: linear-gradient(180deg, var(--candy-red) 0%, var(--candy-red-deep) 60%, var(--candy-red-dark) 100%);
  color: #ffffff;
  border: 1px solid var(--candy-red-hi);
  box-shadow: 0 4px 22px rgba(255, 23, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 34px var(--candy-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, #ff4569 0%, #ff1744 60%, #b7001a 100%);
}

.btn-secondary {
  background: rgba(14, 14, 18, 0.82);
  color: var(--text-primary);
  border: 1px solid var(--line-gloss);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--candy-red);
  color: #ffffff;
  box-shadow: 0 0 26px rgba(255, 23, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Specular Light Sweep on Hover */
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: transform 600ms var(--ease-out);
}
.btn:hover::before {
  transform: translateX(200%);
}

/* ── Section Divider Line ─────────────────────────────────────── */
.section-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--candy-edge), rgba(255, 255, 255, 0.12), var(--candy-edge), transparent);
  margin-bottom: clamp(48px, 7vw, 84px);
  position: relative;
}
.section-divider::after {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  width: 140px;
  height: 3px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--candy-red) 0%, transparent 80%);
  filter: blur(1.5px);
}
