/* ============================================================
   INDEX.CSS — MR.EGG Portfolio
   ============================================================ */

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* --- CSS VARIABLES --- */
:root {
  --fg: #e8e4d9;
  --muted: #7a7668;
  --accent: #c8f03c;
  --accent2: #3cf0c8;
  --bg: #00171f;
  --card: #141410;
  --border: rgba(200,200,180,0.12);
}

/* --- BODY --- */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Goldman", sans-serif;
  font-weight: 700;
  min-height: 100vh;
  cursor: crosshair;
}

/* --- CURSOR DOT --- */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  border-bottom: 0.5px solid rgba(200,200,180,0.35);
  position: sticky;
  top: 0;
  background: rgba(0,23,31,0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
  transition: top 0.3s ease;
}

.nav-logo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.nav-name {
  font-size: 10px;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  font-family: 'Share Tech Mono', monospace;
}

.nav-links a:hover { color: var(--fg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 5rem 2.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Typing text inherits color, cursor blinks green */
.typing-text { color: var(--accent); }

.cursor-blink {
  color: var(--accent);
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 400px;
  margin-top: 1.5rem;
  font-family: "Goldman", sans-serif;
  font-weight: 400;
}

.hero-right { text-align: right; }

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--fg);
}

.stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ============================================================
   SCROLL HINT
   ============================================================ */
.scroll-hint {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1.5rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.scroll-hint::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

/* ============================================================
   PROJECTS
   ============================================================ */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
}

.section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--accent2);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
}

/* Link wrapper — strips decoration */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

/* Clickable cards get pointer; non-linked ones don't */
.card-link .project-card { cursor: pointer; }
.no-link { cursor: default; }

.card-link .project-card:hover { background: #00202d; }

.card-link .project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(200,240,60,0) 0%, rgba(200,240,60,0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card-link .project-card:hover::before { opacity: 1; }

/* Dimmed style for coming-soon cards */
.no-link .proj-visual,
.no-link .proj-info { opacity: 0.55; }

.proj-visual {
  border-right: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.proj-placeholder {
  width: 120px;
  height: 120px;
  transition: filter 0.3s;
}

.card-link .project-card:hover .proj-placeholder {
  filter: drop-shadow(0 0 16px rgba(200,240,60,0.5))
          drop-shadow(0 0 32px rgba(200,240,60,0.25));
}

.proj-info {
  padding: 2rem 2rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.proj-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.proj-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.proj-desc {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  border: 0.5px solid rgba(200,240,60,0.35);
  padding: 3px 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proj-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  font-size: 18px;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}

.card-link .project-card:hover .proj-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.coming-soon-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  border: 0.5px dashed rgba(120,120,100,0.4);
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.75rem;
  display: inline-block;
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about-strip {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 3rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-block h3 {
  font-size: 11px;
  font-family: 'Share Tech Mono', monospace;
  color: var(--accent2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.about-block p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  font-family: 'Share Tech Mono', monospace;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 2rem 2.5rem;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

footer span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1rem; }

  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 2rem;
  }

  .hero-right { text-align: left; }
  .hero-stats { align-items: flex-start; }

  .project-card { grid-template-columns: 1fr; }

  .proj-visual {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }

  .about-strip { grid-template-columns: 1fr; }

  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links { justify-content: center; }
  .scroll-hint { padding: 1rem 1.5rem; }
  section { padding: 2rem 1.5rem; }
  .about-strip { padding: 2rem 1.5rem; }
}