/* ═══════════════════════════════════════
   AGENT ORAN — Personal Homepage
   Style: Industrial Minimal × Orange Flame
   ═══════════════════════════════════════ */

/* ── Reset & Variables ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #FF6B00;
  --orange-dim: #CC5500;
  --orange-glow: rgba(255, 107, 0, 0.15);
  --orange-glow-strong: rgba(255, 107, 0, 0.35);
  --black: #080808;
  --black-2: #0f0f0f;
  --black-3: #161616;
  --black-4: #1e1e1e;
  --white: #F2EDE8;
  --white-dim: rgba(242, 237, 232, 0.55);
  --white-faint: rgba(242, 237, 232, 0.18);
  --border: rgba(242, 237, 232, 0.08);

  --font-display: 'Sora', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-body: 'DM Sans', sans-serif;

  --section-pad: clamp(80px, 12vw, 160px);
  --max-w: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Noise overlay ── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.032;
  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: 256px;
}

/* ── Canvas ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 6vw, 80px);
  background: linear-gradient(to bottom, rgba(8,8,8,0.95) 0%, transparent 100%);
}

.nav-mark {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--orange);
}

.nav-links {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--orange);
}

/* ── Sections wrapper ── */
section {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) clamp(24px, 6vw, 80px);
}

/* ── Section label ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 32px);
  padding-top: 100px;
  padding-bottom: 80px;
}

/* Badge */
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--white-dim);
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Orb */
.hero-glyph {
  margin: clamp(8px, 2vw, 20px) 0;
}

.orange-orb {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-inner {
  font-size: 40px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(255,107,0,0.6));
  animation: orb-float 4s ease-in-out infinite;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--orange);
  animation: ring-expand 4s ease-out infinite;
  opacity: 0;
  will-change: transform, opacity;
}

.ring-1 { width: 60px; height: 60px; animation-delay: 0s; }
.ring-2 { width: 90px; height: 90px; animation-delay: 1.3s; }

@keyframes ring-expand {
  0% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* Name */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(90px, 16vw, 200px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
}

.name-line {
  color: var(--white);
}

.accent-line {
  color: var(--orange);
  text-shadow:
    0 0 60px rgba(255, 107, 0, 0.5),
    0 0 120px rgba(255, 107, 0, 0.25),
    0 0 200px rgba(255, 107, 0, 0.1);
  animation: hero-glow 3s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  0% { text-shadow: 0 0 40px rgba(255, 107, 0, 0.4), 0 0 80px rgba(255, 107, 0, 0.15); }
  100% { text-shadow: 0 0 80px rgba(255, 107, 0, 0.6), 0 0 160px rgba(255, 107, 0, 0.3), 0 0 240px rgba(255, 107, 0, 0.1); }
}

/* Tagline */
.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(13px, 2vw, 16px);
  letter-spacing: 0.22em;
  color: var(--white-dim);
  text-transform: uppercase;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-arrow {
  font-size: 24px;
  color: var(--white-faint);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(10px); opacity: 0.8; }
}

/* Big bg text */
.hero-bg-text {
  position: absolute;
  bottom: -0.1em;
  right: -0.05em;
  font-family: var(--font-display);
  font-size: clamp(160px, 28vw, 420px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 107, 0, 0.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
#about {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.about-headline h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.about-lead {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: var(--white-dim);
  margin-bottom: 32px;
}

.about-lead strong {
  color: var(--orange);
  font-weight: 500;
}

.about-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.about-items li {
  display: flex;
  gap: 14px;
  font-size: 15px;
  color: var(--white-dim);
}

.item-mark {
  color: var(--orange);
  font-weight: 400;
  flex-shrink: 0;
}

.about-items strong {
  color: var(--white);
  font-weight: 400;
}

.about-items em {
  color: var(--white-dim);
  font-style: italic;
}

.about-quote {
  padding-left: 20px;
  border-left: 2px solid var(--orange);
}

.about-quote blockquote {
  font-size: 14px;
  font-style: italic;
  line-height: 1.7;
  color: var(--white-dim);
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════
   WORK
   ═══════════════════════════════════════ */
#work {
  border-top: 1px solid var(--border);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.work-card {
  background: var(--black-2);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s ease;
  cursor: default;
}

.work-card:hover {
  background: var(--black-3);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--orange);
  text-transform: uppercase;
}

.work-card h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.1;
}

.work-card p {
  font-size: 14px;
  color: var(--white-dim);
  line-height: 1.65;
  flex: 1;
}

.work-card p em {
  color: var(--white);
  font-style: normal;
  font-weight: 400;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white-faint);
  margin-top: 8px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white-faint);
}

.status-dot.active {
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

.card-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-top: 4px;
  transition: opacity 0.2s;
}

.card-link:hover {
  opacity: 0.7;
}

/* ═══════════════════════════════════════
   CONNECT
   ═══════════════════════════════════════ */
#connect {
  border-top: 1px solid var(--border);
}

.connect-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.connect-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.connect-headline .accent {
  color: var(--orange);
}

.links-list {
  display: flex;
  flex-direction: column;
}

.social-link {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.social-link:first-child {
  border-top: 1px solid var(--border);
}

.social-link:hover .social-platform,
.social-link:hover .social-handle {
  color: var(--orange);
}

.social-link:hover .social-arrow {
  transform: translate(3px, -3px);
}

.social-platform {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.25s;
}

.social-handle {
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
  transition: color 0.25s;
}

.social-arrow {
  font-size: 16px;
  color: var(--orange);
  transition: transform 0.25s ease;
}

.social-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--white-faint);
  text-transform: uppercase;
  background: var(--black-3);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}

.wechat-entry {
  cursor: default;
}

/* QR Placeholder */
.wechat-qr {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
}

.qr-placeholder {
  text-align: center;
}

.qr-frame {
  width: 120px;
  height: 120px;
  border: 2px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--black-3);
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.qr-frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 4px;
}

.qr-dots {
  width: 60px;
  height: 60px;
  background-image:
    radial-gradient(circle, rgba(255,107,0,0.5) 1.5px, transparent 1.5px);
  background-size: 8px 8px;
}

.qr-frame span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--orange);
  text-transform: uppercase;
}

.qr-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--white-faint);
  margin-top: 10px;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px clamp(24px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--orange);
  opacity: 0.6;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white-faint);
  letter-spacing: 0.05em;
}

.footer-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white-faint);
}

/* ═══════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.32s; }
.delay-4 { transition-delay: 0.44s; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .connect-inner {
    grid-template-columns: 1fr;
  }

  .wechat-qr {
    justify-content: flex-start;
  }

  .social-link {
    grid-template-columns: 1fr 1fr auto;
  }

  .hero-bg-text {
    font-size: clamp(100px, 40vw, 200px);
    right: -0.1em;
    bottom: 0;
  }
}

@media (max-width: 480px) {
  .social-link {
    grid-template-columns: 1fr auto;
  }

  .social-handle {
    display: none;
  }
}

/* ═══════════════════════════════════════
   CURSOR GLOW (desktop only)
   ═══════════════════════════════════════ */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 50;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
