/* ============================================================
   Naim Lindsay — Portfolio
   ============================================================ */

:root {
  --bg:        #09090b;
  --surface:   #18181b;
  --surface2:  #27272a;
  --border:    rgba(255, 255, 255, 0.07);
  --border2:   rgba(255, 255, 255, 0.13);
  --text:      #fafafa;
  --muted:     #a1a1aa;
  --muted2:    #71717a;
  --accent:    #818cf8;
  --green:     #4ade80;
  --radius:    12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Grain texture overlay ──────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.032;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Nav ────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
nav.nav--scrolled {
  background: rgba(9, 9, 11, 0.9);
  border-bottom-color: var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.nav-brand:hover { opacity: 1; text-decoration: none; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.nav-active {
  color: var(--text);
  position: relative;
}
.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #6366f1;
  border-radius: 1px;
}

.nav-social { display: flex; gap: 4px; }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.icon-btn:hover { color: var(--text); background: var(--surface2); text-decoration: none; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 100px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(129,140,248,0.07) 0%, transparent 65%);
  pointer-events: none;
}


.hero-inner {
  position: relative;
  max-width: 680px;
  text-align: center;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 24px;
  background: rgba(24, 24, 27, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 5px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2.5s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

.hero-inner h1 {
  font-size: clamp(52px, 9vw, 88px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 6px;
  padding: 5px 14px;
  margin-bottom: 18px;
  animation: badge-glow 3s ease-in-out infinite;
}
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(129,140,248,0.25), 0 0 24px rgba(129,140,248,0.08); border-color: rgba(129,140,248,0.22); }
  50%       { box-shadow: 0 0 18px rgba(129,140,248,0.55), 0 0 48px rgba(129,140,248,0.18); border-color: rgba(129,140,248,0.5); }
}

.hero-role {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  background: rgba(24, 24, 27, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 16px 32px;
  gap: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.07);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border2);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: opacity 0.15s, transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  text-decoration: none;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.28); background: var(--surface); transform: translateY(-1px); text-decoration: none; }

/* ── Sections ───────────────────────────────────────────────── */
.section {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.section-inner { max-width: 960px; margin: 0 auto; }
.section-inner--narrow { max-width: 640px; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 52px;
  line-height: 1.1;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.75;
}
.section-sub a { color: var(--accent); }

/* ── About ──────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  font-size: 15px;
  color: rgba(250,250,250,0.72);
  line-height: 1.8;
  margin-bottom: 18px;
}
.about-text p:last-of-type { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 600; }

/* AI callout */
.ai-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
  background: rgba(129,140,248,0.06);
  border: 1px solid rgba(129,140,248,0.2);
  border-radius: 12px;
  padding: 16px 18px;
}

.ai-callout-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

.ai-callout-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px !important;
}

.ai-callout-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 !important;
}

/* Skills */
.skills-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-content: start;
}

.skill-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 12px;
}

.skill-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.skill-col li {
  font-size: 14px;
  color: rgba(250,250,250,0.65);
  padding-left: 12px;
  position: relative;
  transition: color 0.15s, padding-left 0.15s;
  cursor: default;
}
.skill-col li:hover { color: rgba(250,250,250,0.95); padding-left: 16px; }
.skill-col li::before { content: '–'; position: absolute; left: 0; color: var(--muted2); transition: color 0.15s; }
.skill-col li:hover::before { color: #6366f1; }

/* ── Tags ───────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.tag-live {
  background: rgba(74,222,128,0.1);
  color: #4ade80;
  border-color: rgba(74,222,128,0.25);
}

.tag-soon {
  background: rgba(251,191,36,0.1);
  color: #fbbf24;
  border-color: rgba(251,191,36,0.25);
}

.tag-coming {
  background: rgba(74,222,128,0.1);
  color: #4ade80;
  border-color: rgba(74,222,128,0.3);
  box-shadow: 0 0 8px rgba(74,222,128,0.35), 0 0 20px rgba(74,222,128,0.15);
  animation: tag-pulse 2.5s ease-in-out infinite;
}

@keyframes tag-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(74,222,128,0.35), 0 0 20px rgba(74,222,128,0.15); }
  50%       { box-shadow: 0 0 12px rgba(74,222,128,0.6), 0 0 28px rgba(74,222,128,0.25); }
}

.tag-here {
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
  border-color: rgba(245,158,11,0.25);
}

/* ── Projects Stack ─────────────────────────────────────────── */
.projects-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.projects-note {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.projects-note a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.projects-note a:hover { color: var(--accent); }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 16px 18px;
}
.app-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.app-name {
  font-size: 16px;
  font-weight: 700;
}
.app-desc {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}
.app-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.app-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: var(--surface2);
}
.app-links a:hover { border-color: var(--accent); }

.app-card--wide {
  grid-column: 1 / -1;
}

.proj-card {
  display: flex;
  align-items: center;
  background: rgba(24, 24, 27, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.25s, transform 0.12s, box-shadow 0.25s, background 0.25s;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}
.proj-card:not(.proj-card--static):hover {
  border-color: var(--proj-accent, rgba(255,255,255,0.15));
  background: rgba(24, 24, 27, 0.72);
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--proj-accent, transparent), 0 0 32px var(--proj-accent-bg), inset 0 1px 0 rgba(255,255,255,0.08);
  text-decoration: none;
}

.proj-card--static { cursor: default; opacity: 0.72; }

.proj-accent-bar {
  width: 4px;
  align-self: stretch;
  background: var(--proj-accent, var(--accent));
  flex-shrink: 0;
}

.proj-icon {
  width: 64px;
  height: 64px;
  margin: 0 20px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--proj-accent-bg, var(--surface2));
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.proj-body {
  flex: 1;
  padding: 22px 20px 22px 0;
  min-width: 0;
}

.proj-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.proj-date {
  font-size: 11px;
  color: var(--muted2);
  font-weight: 500;
  margin-left: auto;
}

.proj-body h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
  color: var(--text);
}

.proj-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
  max-width: 620px;
}

.proj-bullets {
  list-style: disc;
  margin: 0 0 12px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.proj-bullets--tight { margin-bottom: 8px; }
.proj-note {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted2);
  margin: 4px 0 6px;
}

.proj-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--proj-accent, var(--accent));
}

/* ── Project screenshots strip ──────────────────────────────── */
.proj-screens {
  display: flex;
  gap: 8px;
  padding: 16px 12px 16px 0;
  flex-shrink: 0;
  align-items: center;
}
.proj-screen {
  width: 58px;
  height: 104px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.proj-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.proj-screen--wide {
  width: 180px;
  height: 104px;
}
@media (max-width: 860px) {
  .proj-screens { display: none; }
}

.proj-arrow {
  padding: 0 24px;
  color: var(--muted2);
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}
.proj-card:not(.proj-card--static):hover .proj-arrow {
  color: var(--proj-accent, var(--text));
  transform: translate(3px, -3px);
}

/* ── Contact ────────────────────────────────────────────────── */
.section--contact {
  background: linear-gradient(to bottom, var(--bg), #0d0d14);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  padding: 12px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted2); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(129,140,248,0.15);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%2371717a'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group select option { background: var(--surface2); color: var(--text); }

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.15s, transform 0.15s;
  font-family: inherit;
}
.form-submit:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.submit-icon { font-style: normal; font-size: 16px; }

/* ── Footer ─────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 32px 48px; }

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-name { font-size: 14px; font-weight: 700; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.15s; text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy { font-size: 12px; color: var(--muted2); }
.footer-capstone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-capstone:hover { color: var(--text); text-decoration: none; }

/* ── Responsive ─────────────────────────────────────────────── */
/* ── Hamburger ───────────────────────────────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border2);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 10px;
}
.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 860px) {
  nav { padding: 0 20px; }
  .hamburger-btn { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    transform: none;
    background: rgba(9, 9, 11, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 20px;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-social { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .skills-list { grid-template-columns: 1fr 1fr; }
  .proj-arrow { display: none; }
  .proj-date { display: none; }
  footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-stats { padding: 14px 20px; gap: 20px; }
}

@media (max-width: 560px) {
  .proj-icon { width: 48px; height: 48px; margin: 0 14px; font-size: 20px; }
  .proj-body h3 { font-size: 17px; }
  .proj-body p { font-size: 13px; }
}

@media (max-width: 520px) {
  .section { padding: 64px 20px; }
  .hero { padding: 60px 20px 80px; min-height: auto; }
  .form-row { grid-template-columns: 1fr; }
  .skills-list { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { width: 40px; height: 1px; }
}

/* ── Scroll progress bar ─────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, #6366f1, #10b981);
  z-index: 9999;
  border-radius: 0 2px 2px 0;
  transition: width 0.08s linear;
}

/* ── Hero role typed cursor ──────────────────────────────── */
.hero-role-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: rgba(255,255,255,0.6);
  margin-left: 2px;
  vertical-align: middle;
  animation: cursor-blink 0.9s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
