/* =============================================
   PORTFOLIO — Alex Mensah
   Dark editorial aesthetic
   ============================================= */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #181818;
  --surface: #1e1e1e;
  --border: rgba(255,255,255,0.08);
  --text: #f0ede8;
  --text-muted: rgba(240,237,232,0.45);
  --text-dim: rgba(240,237,232,0.25);
  --accent: #e8d5a3;
  --accent-2: #c9a96e;
  --green: #4ade80;
  --font-display: 'Syne', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --radius: 4px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ---- Cursor ---- */
.cursor {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease), width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: difference;
}
.cursor-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s;
}
body:hover .cursor { opacity: 1; }
.cursor.hover { width: 60px; height: 60px; opacity: 0.6; }

/* ---- Noise overlay ---- */
.noise {
  position: fixed; inset: 0;
  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)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex; align-items: center;
  padding: 1.5rem 3rem;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.dot { color: var(--accent); }
.nav-links {
  display: flex; gap: 2.5rem;
  margin-right: 3rem;
}
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none;
  padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); transition: all 0.3s;
}

/* ---- Mobile menu ---- */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 850;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { text-align: center; }
.mobile-menu li { margin: 1.5rem 0; }
.mobile-link {
  font-size: 3rem; font-weight: 800;
  letter-spacing: -0.03em;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 3rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at 70% 40%, rgba(232,213,163,0.06) 0%, transparent 60%);
  pointer-events: none;
}
/* Decorative concentric rings — replaces the old faded watermark text */
.hero-decor {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-52%);
  width: min(52vw, 580px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(232, 213, 163, 0.09);
  pointer-events: none;
  user-select: none;
}
.hero-decor::before {
  content: '';
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 1px solid rgba(232, 213, 163, 0.06);
}
.hero-decor::after {
  content: '';
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  border: 1px solid rgba(232, 213, 163, 0.13);
  background: radial-gradient(ellipse at 38% 38%, rgba(232, 213, 163, 0.05) 0%, transparent 68%);
}
.hero-content {
  max-width: 900px;
  position: relative; z-index: 2;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 2rem;
}
.hero-title .italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(232,213,163,0.2);
}
.btn-ghost {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }

/* Hero meta */
.hero-meta {
  position: absolute; bottom: 3rem; left: 3rem; right: 3rem;
  display: flex; align-items: flex-end; justify-content: space-between;
  z-index: 2;
}
.hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-stat-group { display: flex; gap: 2.5rem; }
.hero-stat { display: flex; flex-direction: column; align-items: flex-end; }
.stat-num {
  font-size: 2rem; font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}
.stat-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ---- Marquee ---- */
.marquee-wrapper {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  background: var(--bg-2);
}
.marquee {
  display: flex; gap: 2rem;
  animation: marquee 20s linear infinite;
  width: max-content;
}
.marquee span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee .sep { color: var(--accent); font-size: 0.5rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Sections ---- */
.section { padding: 8rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 4rem;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* ---- About ---- */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-left .section-title { margin-bottom: 0; }
.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.about-links { display: flex; gap: 1.5rem; margin-top: 2rem; }
.text-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  border-bottom: 1px solid rgba(232,213,163,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.text-link:hover { border-color: var(--accent); }

/* ---- Work ---- */
.work { background: var(--bg); }
.projects { margin-top: 0; }
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  min-height: 420px;
  overflow: hidden;
  transition: background 0.3s;
}
.project-card:last-child { border-bottom: 1px solid var(--border); }
.project-card:hover { background: var(--bg-2); }
.project-inner {
  padding: 3.5rem 3rem 3.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.project-header {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 2rem;
}
.project-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.project-tags {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
}
.project-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.project-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 420px;
}
.project-footer {
  display: flex; gap: 1.5rem; margin-top: 2.5rem;
}
.project-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  transition: opacity 0.2s;
}
.project-link:hover { opacity: 0.7; }

/* Project visuals */
.project-visual {
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--border);
  padding: 2rem;
}
.project-mockup {
  width: 100%; max-width: 340px;
  border-radius: 10px;
  overflow: hidden;
}

/* Finance mockup */
.mockup-finance {
  background: var(--surface);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.mock-bar {
  height: 6px; background: var(--border);
  border-radius: 100px; margin-bottom: 1.5rem;
  position: relative;
}
.mock-bar::after {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 40%; height: 100%;
  background: var(--accent);
  border-radius: 100px;
}
.mock-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 100px; margin-bottom: 1.2rem;
}
.bar {
  flex: 1; background: var(--accent);
  opacity: 0.3; border-radius: 2px;
  transition: opacity 0.3s;
}
.mockup-finance:hover .bar { opacity: 0.6; }
.mock-stat {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.mock-stat span {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 0.3rem;
}

/* AI chat mockup */
.mockup-ai { background: #0d1117; padding: 1.5rem; border: 1px solid #30363d; }
.mockup-ai .mock-terminal { font-family: var(--font-mono); font-size: 0.78rem; }
.mockup-ai .mock-prompt { color: var(--accent); margin-bottom: 0.6rem; }
.mockup-ai .typing { color: #c9d1d9; line-height: 1.6; margin-bottom: 0.6rem; }
.mock-meta {
  font-size: 0.65rem;
  color: #484f58;
  letter-spacing: 0.05em;
  border-top: 1px solid #21262d;
  padding-top: 0.5rem;
  margin-top: 0.3rem;
}

/* API / Terminal mockup */
.mockup-api { background: #0d1117; padding: 1.5rem; border: 1px solid #30363d; }
.mock-terminal { font-family: var(--font-mono); font-size: 0.78rem; }
.mock-prompt { color: #e8d5a3; margin-bottom: 0.5rem; }
.ps1 { color: #4ade80; margin-right: 0.5rem; }
.mock-output { color: #7ee787; margin-bottom: 0.3rem; }
.mock-output.dim { color: #8b949e; }

/* CMS mockup */
.mockup-cms { background: var(--surface); padding: 1.5rem; border: 1px solid var(--border); }
.mock-toolbar {
  display: flex; gap: 8px; margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.tb-btn {
  width: 28px; height: 8px;
  background: var(--border); border-radius: 2px;
}
.tb-btn.active { background: var(--accent); }
.mock-content { display: flex; flex-direction: column; gap: 8px; }
.mock-line {
  height: 8px; background: var(--border); border-radius: 100px;
}
.w80 { width: 80%; }
.w60 { width: 60%; }
.w90 { width: 90%; }
.w50 { width: 50%; }

/* ---- Skills ---- */
.skills { background: var(--bg-2); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.skill-group {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.skill-group:last-child { border-right: none; }
.skill-group:hover { background: var(--surface); }
.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.skill-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}
.skill-list li:last-child { border-bottom: none; }
.skill-group:hover .skill-list li { color: var(--text); }
.skill-group:hover .skill-list li:hover { padding-left: 0.5rem; color: var(--accent); }

/* ---- Testimonial ---- */
.testimonial { background: var(--bg); }
.quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote-mark {
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 0.5;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 1rem;
}
.quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 2rem;
}
.quote footer {
  display: flex; flex-direction: column; gap: 0.2rem;
  font-size: 0.85rem;
}
.quote footer strong { color: var(--text); font-weight: 700; }
.quote footer span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* ---- Contact ---- */
.contact { background: var(--bg-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.contact-left .section-title { margin-bottom: 1.5rem; }
.contact-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.contact-email {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(232,213,163,0.2);
  padding-bottom: 1.5rem;
  transition: color 0.2s;
}
.contact-email:hover { color: var(--text); }
.contact-socials { display: flex; gap: 1.5rem; }
.social-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.2s;
}
.social-link:hover { color: var(--text); }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
}
.footer-logo { font-weight: 800; font-size: 1.1rem; }
.footer-copy, .footer-made {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-line {
  display: block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease);
}
.reveal-line.visible { clip-path: inset(0 0% 0 0); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav { padding: 1.2rem 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-meta { left: 1.5rem; right: 1.5rem; }
  .hero-stat-group { gap: 1.5rem; }
  .hero-decor { width: min(70vw, 420px); right: -12%; opacity: 0.6; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .project-card { grid-template-columns: 1fr; }
  .project-visual { display: none; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .skill-group:nth-child(2) { border-right: none; }
  .skill-group { border-bottom: 1px solid var(--border); }
  .container { padding: 0 1.5rem; }
  .section { padding: 5rem 0; }
}
@media (max-width: 560px) {
  .hero-title { letter-spacing: -0.03em; }
  .hero-tag { font-size: 0.72rem; }
  .hero-desc { font-size: 0.95rem; }
  .hero-meta { position: relative; bottom: auto; margin-top: 3rem; }
  .hero-scroll { display: none; }
  .hero-decor { display: none; }
  .hero-stat-group { width: 100%; justify-content: space-between; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-group { border-right: none; }
  .footer-inner { flex-direction: column; gap: 0.8rem; text-align: center; }
  .mobile-link { font-size: 2.2rem; }
  .project-inner { padding: 2.5rem 1.5rem; }
  .section-title { font-size: clamp(2rem, 8vw, 4.5rem); }
  .contact-email { font-size: clamp(1rem, 5vw, 2rem); word-break: break-all; }
}
