/* ===================================
   EMMANUEL CHIDUBEM — style.css
   Dark · Creative · Iconic
=================================== */
:root {
  --bg: #080805;
  --bg2: #0d0d14;
  --bg3: #12121c;
  --text: #eeeef5;
  --muted: #666680;
  --border: rgba(255, 255, 255, 0.07);
  --green: #00ff88;
  --pink: #ff2d78;
  --cyan: #00d4ff;
  --yellow: #ffd60a;
  --purple: #9b5de5;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ── NOISE TEXTURE ── */
.noise {
  position: fixed;
  inset: 0;
  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.75' 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;
  z-index: 999;
  opacity: 0.5;
}

/* ── CURSOR ── */
.cursor {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--pink);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s,
    border-color 0.2s;
  mix-blend-mode: difference;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  width: 40px;
  height: 40px;
  border-color: var(--cyan);
}

/* ── MONO UTIL ── */
.mono {
  font-family: "Space Mono", monospace;
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}
.logo span {
  color: var(--pink);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  font-family: "Space Mono", monospace;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--pink);
  transition: width 0.3s;
}
.nav-link:hover {
  color: var(--text);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: var(--pink);
}
.nav-link.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  z-index: 600;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Grid lines background */
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.grid-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 60% 40%,
      rgba(155, 93, 229, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 20% 80%,
      rgba(0, 212, 255, 0.08) 0%,
      transparent 50%
    );
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.hero-title .t1 {
  color: var(--text);
}
.hero-title .t2 {
  -webkit-text-stroke: 2px var(--pink);
  color: transparent;
  text-shadow: 0 0 40px rgba(255, 45, 120, 0.3);
}

.hero-role {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
}
.role-bar {
  width: 40px;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 460px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-glow {
  background: var(--pink);
  color: white;
  padding: 0.9rem 2.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 0 20px rgba(255, 45, 120, 0.3);
}
.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(255, 45, 120, 0.6);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.9rem 2.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition:
    border-color 0.2s,
    transform 0.2s,
    color 0.2s;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-n {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  color: var(--text);
  line-height: 1;
}
.stat sup {
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  color: var(--pink);
}
.stat p {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Space Mono", monospace;
}
.stat-line {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Photo frame */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
}

.photo-frame {
  position: relative;
  width: 340px;
  height: 420px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 45, 120, 0.2);
}

.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--pink);
  border-style: solid;
  z-index: 3;
}
.tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}
.tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}
.bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}
.br {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  z-index: 3;
  animation: scan 4s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes scan {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: contrast(1.05) saturate(0.9);
}

.photo-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(5, 5, 8, 0.9));
  padding: 1.5rem 1rem 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
  z-index: 2;
}

.photo-glow {
  position: absolute;
  top: 10%;
  left: -20%;
  width: 200px;
  height: 300px;
  background: radial-gradient(
    ellipse,
    rgba(155, 93, 229, 0.25),
    transparent 70%
  );
  pointer-events: none;
  filter: blur(20px);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
}
.scroll-bar {
  width: 60px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-fill {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--pink);
  animation: scrollMove 2.5s ease-in-out infinite;
}
@keyframes scrollMove {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
.scroll-hint span {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.14em;
}

/* ── SECTION COMMONS ── */
section {
  padding: 7rem 3rem;
}
.sec-tag {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: var(--pink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}
.sec-tag .mono {
  color: var(--muted);
  margin-right: 0.5rem;
}

.sec-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 3.5rem;
}
.sec-title em {
  font-style: normal;
  color: var(--pink);
}

/* ── ABOUT ── */
.about {
  background: var(--bg2);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: contrast(1.05) saturate(0.85);
  transition: filter 0.4s;
}
.about-img-wrap:hover .about-img {
  filter: contrast(1.1) saturate(1);
}

.about-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(5, 5, 8, 0.95));
  padding: 2rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.85rem;
}
.about-img-overlay .mono {
  font-size: 0.72rem;
  color: var(--muted);
}

.about-badge {
  margin-top: 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.about-text p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}
.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.about-pills span {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  transition: border-color 0.2s;
}
.about-pills span:hover {
  border-color: var(--pink);
}

/* ── SKILLS ── */
.skills {
  background: var(--bg);
}

.skills-wrap {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skill-row {
  display: grid;
  grid-template-columns: 160px 1fr 50px;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.skill-row:first-child {
  border-top: 1px solid var(--border);
}
.skill-row:hover {
  padding-left: 0.5rem;
}

.skill-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}
.skill-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.skill-fill.go {
  transform: scaleX(1);
}
.skill-num {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
}

/* ── PROJECTS ── */
.projects {
  background: var(--bg2);
}

.projects-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1000px;
}

.project-card {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: padding-left 0.3s;
  position: relative;
}
.project-card:first-child {
  border-top: 1px solid var(--border);
}
.project-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 45, 120, 0.05), transparent);
  transition: width 0.4s;
}
.project-card:hover {
  padding-left: 1rem;
}
.project-card:hover::before {
  width: 100%;
}
.project-card.featured {
  border-left: 2px solid var(--pink);
  padding-left: 1.5rem;
}
.project-card.featured:hover {
  padding-left: 2rem;
}

.project-num {
  font-size: 0.78rem;
  color: var(--muted);
}
.project-body h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.feat {
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  background: rgba(255, 45, 120, 0.1);
  border: 1px solid rgba(255, 45, 120, 0.3);
  color: var(--pink);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  vertical-align: middle;
}
.project-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-tags span {
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}
.project-arrow {
  font-size: 1.3rem;
  color: var(--muted);
  transition:
    color 0.2s,
    transform 0.2s;
}
.project-card:hover .project-arrow {
  color: var(--pink);
  transform: translate(4px, -4px);
}

/* ── CONTACT ── */
.contact {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.contact-bg-word {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 16rem;
  color: rgba(255, 255, 255, 0.015);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}
.contact-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 500px;
}
.contact-form {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  z-index: 2;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "Space Mono", monospace;
}
.form-group input,
.form-group textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  outline: none;
  resize: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 45, 120, 0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(102, 102, 128, 0.5);
}

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-left p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.footer-right {
  display: flex;
  gap: 1rem;
}
.social-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.social-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-3px);
}
.footer-bottom {
  padding: 1rem 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-left {
    order: 2;
  }
  .hero-right {
    order: 1;
  }
  .hero-desc {
    margin: 0 auto 2.5rem;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-label {
    justify-content: center;
  }
  .hero-role {
    justify-content: center;
  }
  .photo-frame {
    width: 260px;
    height: 320px;
  }
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-img {
    max-width: 280px;
    margin: 0 auto;
  }
  .about-text {
    text-align: center;
  }
  .about-pills {
    justify-content: center;
  }
  .scroll-hint {
    display: none;
  }
}

@media (max-width: 768px) {
  #nav {
    padding: 1rem 1.5rem;
    overflow: visible;
  }
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1rem;
    left: auto;
    width: min(280px, calc(100vw - 2rem));
    background: linear-gradient(
      180deg,
      rgba(12, 12, 18, 0.58) 0%,
      rgba(6, 6, 10, 0.5) 100%
    );
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    z-index: 550;
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
  }
  .nav-links.open {
    display: flex !important;
  }
  .nav-link {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-align: right;
  }

  section {
    padding: 5rem 1.5rem;
  }
  .hero {
    padding: 7rem 1.5rem 4rem;
  }
  .hero-title {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }
  .photo-frame {
    width: 220px;
    height: 280px;
  }
  .skill-row {
    grid-template-columns: 120px 1fr 40px;
    gap: 1rem;
  }
  .project-card {
    grid-template-columns: 40px 1fr 30px;
    gap: 1rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .footer-left {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom {
    padding: 1rem 1.5rem;
  }
  .contact-bg-word {
    font-size: 8rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .photo-frame {
    width: 180px;
    height: 230px;
  }
  .hero-stats {
    gap: 1.2rem;
  }
  .stat-n {
    font-size: 1.8rem;
  }
}
