/* ============================================================
   NATHANAEL SMATT-ONI — PORTFOLIO
   style.css
   ============================================================ */

/* ---- TOKENS ---- */
:root {
  --bg:          #030508;
  --surface:     #080c12;
  --border:      rgba(0, 180, 255, 0.12);
  --accent:      #00b4ff;
  --accent2:     #0047ff;
  --accent-glow: rgba(0, 180, 255, 0.35);
  --text:        #e8edf5;
  --muted:       #5a6a80;
  --tag-bg:      rgba(0, 180, 255, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent2); }

/* ============================================================
   CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
  box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent-glow);
}

.cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 180, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.18s ease;
  transform: translate(-50%, -50%);
}

/* ============================================================
   CANVAS BACKGROUND
   ============================================================ */
canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- GRAIN OVERLAY ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: 80px 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 60px;
  position: relative;
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 8vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-name span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 180, 255, 0.4);
}

.hero-desc {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-desc strong { color: var(--text); font-weight: 700; }

.hero-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

/* ---- Hero Stats ---- */
.hero-stats {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  animation: fadeLeft 1s 1s forwards;
}

.stat {
  text-align: right;
  border-right: 1px solid var(--accent);
  padding-right: 20px;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 20px var(--accent-glow);
}

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
  cursor: none;
  display: inline-block;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.3s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: -1;
}

.btn:hover         { color: var(--bg); }
.btn:hover::before { transform: translateX(0); }

.btn.ghost             { border-color: var(--border); color: var(--muted); }
.btn.ghost:hover       { color: var(--bg); }
.btn.ghost::before     { background: var(--muted); }

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 52px;
}

.section-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
}

.exp-item {
  background: var(--bg);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.exp-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1);
}

.exp-item:hover        { background: rgba(0, 180, 255, 0.03); }
.exp-item:hover::before { transform: scaleY(1); }

.exp-role {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

.exp-company {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 14px;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-bullets li {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
  font-weight: bold;
}

.exp-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.exp-date {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.1em;
}

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-card {
  border: 1px solid var(--border);
  padding: 36px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.edu-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.edu-card:hover::after { opacity: 1; }

.edu-degree {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 4px;
}

.edu-school {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 20px;
}

.grade-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--tag-bg);
  letter-spacing: 0.05em;
}

.pill.highlight {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 180, 255, 0.08);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
}

.project-card {
  background: var(--bg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: none;
}

.project-card:hover { background: var(--surface); }

.project-card::after {
  content: attr(data-num);
  position: absolute;
  bottom: -10px; right: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 80px;
  color: rgba(0, 180, 255, 0.04);
  line-height: 1;
  pointer-events: none;
  transition: color 0.3s;
}

.project-card:hover::after { color: rgba(0, 180, 255, 0.07); }

.project-tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-desc {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}

.project-score {
  margin-top: 16px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--accent);
  text-shadow: 0 0 15px var(--accent-glow);
}

.project-score-label {
  font-size: 14px;
  color: var(--muted);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.skill-group-title {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.skill-name { min-width: 120px; }

.skill-bar-wrap {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 52px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
}

.contact-text span {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-line {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-line a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
  cursor: none;
}

.contact-line a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-btn-wrap { margin-top: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-sig {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

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

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateY(-50%) translateX(30px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .container     { padding: 0 20px; }
  .hero-stats    { display: none; }
  .skills-layout { grid-template-columns: 1fr; }
  .exp-item      { grid-template-columns: 1fr; }
  .contact-row   { flex-direction: column; gap: 24px; }
}
