/* ============================================================
   DotHotSun.tech v2 — style.css
   Theme: Mad Max × Blade Runner
   Scorched desert wasteland meets neon-drenched cyberpunk
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────── */
:root {
  /* Base */
  --void:      #050404;
  --ash:       #0e0b09;
  --char:      #161210;
  --cinder:    #201a16;
  --rust-dark: #1a0e08;

  /* Warm — Mad Max fire/desert */
  --ember:     #ff4e00;
  --blaze:     #ff7a1a;
  --amber:     #ffaa00;
  --dusk:      #c45a00;
  --sand:      #a07850;
  --rust:      #7a2e10;

  /* Cool — Blade Runner neon */
  --cyan:      #00d4ff;
  --cyan-dim:  #007a99;
  --cyan-glow: rgba(0, 212, 255, 0.15);
  --acid:      #aaff00;

  /* Text */
  --text:      #d4c4b0;
  --text-dim:  #7a6a58;
  --text-mute: #3a2e24;

  /* Borders */
  --b-warm:    rgba(255, 120, 0, 0.2);
  --b-bright:  rgba(255, 120, 0, 0.5);
  --b-cyan:    rgba(0, 212, 255, 0.3);

  /* Fonts */
  --f-display: 'Barlow Condensed', sans-serif;
  --f-ui:      'Rajdhani', sans-serif;
  --f-mono:    'Share Tech Mono', monospace;

  /* Misc */
  --radius:    1px;
  --ease:      0.22s ease;
}

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

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: crosshair;
}

a { color: var(--amber); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--cyan); }
strong { color: var(--text); font-weight: 600; }
em { color: var(--amber); font-style: normal; }

/* ── OVERLAYS ──────────────────────────────────────── */
#ember-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.overlay-scanlines {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
}

.overlay-vignette {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    transparent 40%,
    rgba(5, 4, 4, 0.7) 100%
  );
}

.overlay-grain {
  position: fixed;
  inset: -100px;
  z-index: 9996;
  pointer-events: none;
  opacity: 0.04;
  width: calc(100% + 200px);
  height: calc(100% + 200px);
  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");
  animation: grain-shift 0.5s steps(1) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3px, 2px); }
  40%  { transform: translate(2px, -3px); }
  60%  { transform: translate(-2px, 4px); }
  80%  { transform: translate(3px, -1px); }
  100% { transform: translate(0, 0); }
}

/* ── HEADER ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(5, 4, 4, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.header-line {
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    var(--ember) 20%,
    var(--amber) 50%,
    var(--cyan) 80%,
    transparent
  );
  opacity: 0.6;
}

/* LOGO */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  color: var(--amber);
  font-size: 1.1rem;
  animation: logo-pulse 3s ease-in-out infinite;
  line-height: 1;
}

@keyframes logo-pulse {
  0%, 100% { color: var(--amber); text-shadow: 0 0 8px var(--amber); }
  50%       { color: var(--cyan);  text-shadow: 0 0 12px var(--cyan); }
}

.logo-text {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.l-dot { color: var(--text); }
.l-hot { color: var(--ember); }
.l-sun { color: var(--amber); text-shadow: 0 0 20px rgba(255,170,0,0.4); }
.l-tld { color: var(--text-dim); font-size: 0.6em; font-weight: 400; vertical-align: middle; letter-spacing: 0; }

/* NAV */
.site-nav {
  display: flex;
  gap: 2rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--ease);
  position: relative;
  padding-bottom: 3px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--cyan);
  transition: width var(--ease);
}

.site-nav a:hover { color: var(--cyan); }
.site-nav a:hover::after { width: 100%; }

.nav-num {
  color: var(--ember);
  font-size: 0.65rem;
}

/* HEADER STATUS */
.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}

.status-pip {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
  animation: pip-pulse 2.5s ease-in-out infinite;
}

@keyframes pip-pulse {
  0%, 100% { box-shadow: 0 0 4px var(--acid); opacity: 1; }
  50%       { box-shadow: 0 0 14px var(--acid); opacity: 0.7; }
}

.status-text {
  color: var(--text-mute);
  letter-spacing: 0.12em;
}

/* ── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 100px 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 4rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  z-index: 2;
}

/* Atmosphere: desert sun glow */
.hero-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atm-sun {
  position: absolute;
  bottom: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  max-width: 900px;
  height: 80vw;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 78, 0, 0.12) 0%,
    rgba(255, 120, 0, 0.06) 30%,
    transparent 70%
  );
  animation: sun-breathe 8s ease-in-out infinite;
}

@keyframes sun-breathe {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50%       { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

.atm-haze {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40vh;
  background: linear-gradient(to top,
    rgba(20, 8, 0, 0.6) 0%,
    transparent 100%
  );
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: reveal-fade 0.6s 0.2s ease both;
}

.eyebrow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ember));
  max-width: 60px;
}
.eyebrow-line:last-child {
  background: linear-gradient(to left, transparent, var(--ember));
}

.eyebrow-text {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--ember);
  white-space: nowrap;
}

/* BIG TITLE */
.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--f-display);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0.01em;
  font-size: clamp(6rem, 14vw, 13rem);
  margin-bottom: 1.5rem;
}

.ht-line {
  display: block;
  opacity: 0;
  transform: translateX(-30px);
  animation: slide-in 0.5s ease forwards;
}

.ht-dot { color: var(--text);  animation-delay: 0.3s; }
.ht-hot {
  color: var(--ember);
  text-shadow:
    0 0 40px rgba(255, 78, 0, 0.5),
    0 0 80px rgba(255, 78, 0, 0.2);
  animation-delay: 0.45s;
}
.ht-sun {
  color: var(--amber);
  text-shadow:
    0 0 40px rgba(255, 170, 0, 0.4),
    0 0 80px rgba(255, 170, 0, 0.15);
  animation-delay: 0.6s;
}

@keyframes slide-in {
  to { opacity: 1; transform: translateX(0); }
}

.hero-rule {
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, var(--ember), var(--cyan));
  margin-bottom: 1.5rem;
  animation: reveal-fade 0.5s 0.8s ease both;
}

.hero-sub {
  font-family: var(--f-ui);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  animation: reveal-fade 0.5s 0.9s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: reveal-fade 0.5s 1.05s ease both;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  background: var(--ember);
  color: var(--void);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background var(--ease), box-shadow var(--ease);
}

.btn-primary:hover {
  background: var(--amber);
  color: var(--void);
  box-shadow: 0 0 30px rgba(255, 120, 0, 0.6);
}

.btn-icon { font-size: 0.7rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.75rem;
  border: 1px solid var(--b-cyan);
  color: var(--cyan-dim);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: border-color var(--ease), color var(--ease), box-shadow var(--ease);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}

/* TERMINAL */
.hero-terminal {
  position: relative;
  z-index: 2;
  background: rgba(14, 11, 9, 0.9);
  border: 1px solid var(--b-warm);
  animation: reveal-fade 0.7s 0.5s ease both;
  overflow: hidden;
}

.hero-terminal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ember), transparent);
}

.term-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(22, 18, 16, 0.8);
  border-bottom: 1px solid var(--b-warm);
}

.term-dots {
  display: flex;
  gap: 0.35rem;
}
.term-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.term-dots span:nth-child(1) { background: #ff5f57; }
.term-dots span:nth-child(2) { background: var(--amber); }
.term-dots span:nth-child(3) { background: var(--acid); }

.term-title {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  flex: 1;
}

.term-badge {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--cyan-dim);
  border: 1px solid var(--b-cyan);
  padding: 0.1rem 0.4rem;
}

.term-body {
  padding: 1.25rem 1.25rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.9;
  min-height: 220px;
  max-height: 260px;
  overflow: hidden;
}

.term-footer {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 1.25rem;
  border-top: 1px solid var(--b-warm);
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  background: rgba(22, 18, 16, 0.6);
}

/* Corner brackets */
.corner-bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 3;
}

.corner-bracket.tl {
  top: 90px; left: 0;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  opacity: 0.4;
}

.corner-bracket.br {
  bottom: 30px; right: 0;
  border-bottom: 2px solid var(--ember);
  border-right: 2px solid var(--ember);
  opacity: 0.4;
}

/* ── SLASH DIVIDER ──────────────────────────────────── */
.slash-divider {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.sd-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--b-warm));
}
.sd-line:last-child {
  background: linear-gradient(to left, transparent, var(--b-warm));
}

.sd-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  white-space: nowrap;
}

/* ── SECTION HEADERS ─────────────────────────────────── */
.section-header {
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.sh-tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ember);
  margin-bottom: 0.5rem;
}

.sh-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.sh-sub {
  color: var(--text-dim);
  font-weight: 300;
  font-size: 0.95rem;
  max-width: 500px;
}

/* ── PROJECTS ────────────────────────────────────────── */
.projects {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* PROJECT CARD */
.pcard {
  position: relative;
  background: var(--ash);
  border: 1px solid var(--b-warm);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.pcard:hover {
  border-color: var(--ember);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(255, 78, 0, 0.1);
}

.pcard--featured {
  grid-column: span 2;
  border-color: rgba(255, 78, 0, 0.35);
}

.pcard--featured:hover {
  border-color: var(--amber);
  box-shadow: 0 8px 60px rgba(255, 120, 0, 0.12);
}

.pcard--ghost {
  opacity: 0.45;
  cursor: default;
}
.pcard--ghost:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--b-warm);
}

.pcard-inner {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.pcard-tag {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--cyan-dim);
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid var(--b-cyan);
  padding: 0.2rem 0.6rem;
  display: inline-block;
  width: fit-content;
}

.pcard-num {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
}

.pcard-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1;
}

.pcard--featured .pcard-title {
  font-size: 2.6rem;
}

.pcard-desc {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  flex-grow: 1;
}

.pcard-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pcard-stack span {
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  background: var(--cinder);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 0.15rem 0.55rem;
}

.pcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.pcard-link {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ember);
  text-transform: uppercase;
  transition: color var(--ease), letter-spacing var(--ease);
}

.pcard-link:hover {
  color: var(--amber);
  letter-spacing: 0.16em;
}

.pcard-link.muted {
  color: var(--text-mute);
  pointer-events: none;
}

.pcard-status {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 0;
}

.pcard-status--dev {
  color: var(--acid);
  border: 1px solid rgba(170, 255, 0, 0.25);
  background: rgba(170, 255, 0, 0.05);
}

/* Decorative corner cut detail */
.pcard-corner {
  position: absolute;
  bottom: 0; right: 0;
  width: 16px;
  height: 16px;
  background: var(--b-warm);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
  transition: background var(--ease);
}

.pcard:hover .pcard-corner {
  background: var(--ember);
}

/* ── ABOUT ───────────────────────────────────────────── */
.about {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem 8rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-dim);
  font-weight: 300;
  margin-bottom: 1.2rem;
  font-size: 0.98rem;
  line-height: 1.85;
}

/* STATS */
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stat {
  padding: 1.5rem 0;
  position: relative;
}

.stat::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--ember), var(--amber));
}

.stat-val {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 3rem;
  color: var(--amber);
  text-shadow: 0 0 30px rgba(255, 170, 0, 0.3);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-unit {
  font-size: 0.5em;
  color: var(--ember);
  vertical-align: middle;
}

.stat-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.stat-divider {
  height: 1px;
  background: var(--b-warm);
  margin-left: 0;
}

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--ash);
}

.footer-top-line {
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    var(--ember) 30%,
    var(--cyan) 70%,
    transparent
  );
  opacity: 0.5;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.footer-copy {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

.footer-copy a:hover { color: var(--cyan); }

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}

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

/* ── ANIMATIONS ──────────────────────────────────────── */
@keyframes reveal-fade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
  }
  .hero-terminal { max-width: 500px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .pcard--featured { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-stats { padding-left: 1.5rem; }
}

@media (max-width: 700px) {
  .site-header { padding: 0 1rem; }
  .header-status { display: none; }
  .site-nav { gap: 1.2rem; }
  .hero { padding: 90px 1rem 4rem; }
  .projects { padding: 1rem 1rem 4rem; }
  .about { padding: 1rem 1rem 5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .pcard--featured { grid-column: span 1; }
  .hero-cta-row { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .corner-bracket { display: none; }
}
