/* ========== COLOR SYSTEM ========== */
:root{
  --bg: #070a0f;
  --panel: rgba(6,12,20,0.6);
  --panel-strong: rgba(8,14,24,0.85);
  --text: #e6f7ff;
  --muted: #6f8ba1;
  --accent: #00d1ff;      /* hologram cyan */
  --accent-2: #7cf1ff;    /* mint highlight */
  --line: rgba(0,209,255,0.18);
  --glow: 0 6px 30px rgba(0,209,255,0.08);
  --hud-border: rgba(0,209,255,0.14);
  --radius: 12px;
}

/* ========== BASE ========== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  min-height:100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(0,209,255,0.02), transparent 8%),
    radial-gradient(1000px 400px at 90% 85%, rgba(124,241,255,0.02), transparent 6%),
    var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
  padding-bottom:4rem;
}

/* faint scanlines for subtle texture */
body::after{
  content:"";
  pointer-events:none;
  position:fixed;
  inset:0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.007) 0px,
    rgba(255,255,255,0.007) 1px,
    transparent 2px
  );
  mix-blend-mode: overlay;
  opacity:0.6;
}

/* ========== CONTAINER ========== */
.content{
  max-width:1100px;
  margin:2.25rem auto;
  padding:0 1.25rem;
}

/* ========== HEADER / NAV ========== */
.site-header{
  display:flex;
  gap:1rem;
  align-items:center;
  justify-content:space-between;
  padding:1.1rem 1.25rem;
  margin:1rem auto 0;
  max-width:1100px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.02);
  box-shadow: var(--glow);
}

.site-title{
  font-weight:600;
  letter-spacing:1px;
  font-size:1.05rem;
  color:var(--accent-2);
}

.site-sub{
  display:block;
  color:var(--muted);
  font-size:0.86rem;
  margin-top:3px;
}

/* nav */
.site-nav{
  display:flex;
  gap:1rem;
  align-items:center;
}
.site-nav a{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  padding:6px 8px;
  border-radius:8px;
  transition: color .18s ease, box-shadow .18s ease, transform .12s ease;
  position:relative;
}
.site-nav a:hover{
  color:var(--accent-2);
  box-shadow: 0 6px 24px rgba(0,209,255,0.04);
  transform: translateY(-2px);
}
.site-nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  height:2px;
  background: linear-gradient(90deg, rgba(124,241,255,0.0), var(--accent-2));
  width:0%;
  transition: width .28s ease;
}
.site-nav a:hover::after{ width:100%; }

/* ========== HERO ========== */
.hero{
  position:relative;
  margin:1.25rem 0;
  padding:1.4rem;
  border-radius:12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.05));
  border:1px solid var(--hud-border);
  overflow:hidden;
}
.hero h1{
  margin:0 0 .25rem 0;
  font-size:1.9rem;
  letter-spacing:1px;
  color:var(--accent-2);
}
.hero p{
  margin:0;
  color:var(--muted);
}

/* small accent line under hero */
.hero::after{
  content:"";
  position:relative;
  left:2rem;
  right:2rem;
  bottom:0.5rem;
  height:1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  opacity:0.9;
}

/* ========== HUD CARD (generic) ========== */
.hud-card{
  position:relative;
  background: linear-gradient(180deg, rgba(6,12,20,0.55), rgba(6,12,20,0.45));
  border:1px solid var(--hud-border);
  border-radius:12px;
  padding:1rem;
  box-shadow: var(--glow);
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* corner accents */
.hud-card::before,
.hud-card::after{
  content:"";
  position:absolute;
  width:18px; height:18px;
  pointer-events:none;
}
.hud-card::before{
  top:0; left:0;
  border-top:2px solid var(--accent);
  border-left:2px solid var(--accent);
  border-right:none;
  border-bottom:none;
  opacity:0.9;
  filter: blur(.2px);
}
.hud-card::after{
  bottom:0; right:0;
  border-bottom:2px solid var(--accent-2);
  border-right:2px solid var(--accent-2);
  border-top:none;
  border-left:none;
  opacity:0.9;
  filter: blur(.2px);
}

/* ========== PROJECT LIST (home / projects) ========== */
.project-grid{
  display:grid;
  gap:1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top:1rem;
}
.project-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px;
}
.project-thumb{
  width:120px;
  height:80px;
  border-radius:8px;
  object-fit:cover;
  flex-shrink:0;
  border:1px solid rgba(255,255,255,0.03);
  box-shadow: 0 8px 26px rgba(0,0,0,0.6), 0 0 18px rgba(0,209,255,0.02) inset;
}
.project-meta{
  flex:1 1 auto;
}
.project-title{
  margin:0;
  font-size:1.05rem;
  color:var(--accent-2);
  font-weight:700;
  letter-spacing:0.3px;
}
.project-summary{
  margin:.35rem 0 0;
  color:var(--muted);
  font-size:0.92rem;
  line-height:1.4;
}

/* tech chips */
.tech-chips{
  margin-top:.6rem;
  display:flex;
  gap:.4rem;
  flex-wrap:wrap;
}
.chip{
  background: rgba(0,209,255,0.06);
  color:var(--accent-2);
  border:1px solid rgba(0,209,255,0.08);
  padding:.25rem .55rem;
  font-size:0.78rem;
  border-radius:999px;
  backdrop-filter: blur(3px);
}

/* CTA */
.project-cta{
  display:inline-block;
  margin-top:.8rem;
  padding:.45rem .7rem;
  border-radius:8px;
  background: linear-gradient(90deg, rgba(124,241,255,0.06), rgba(0,209,255,0.09));
  color:var(--accent-2);
  font-weight:700;
  text-decoration:none;
  border:1px solid rgba(124,241,255,0.08);
  transition: transform .16s ease, box-shadow .16s ease;
}
.project-cta:hover{
  transform:translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,209,255,0.06);
}

/* ========== TYPOGRAPHY ACCENTS ========== */
strong{
  color:var(--accent-2);
  font-weight:700;
  text-shadow: 0 0 8px rgba(124,241,255,0.06);
}
em{
  color:var(--muted);
  font-style:italic;
  padding-left:8px;
  border-left:2px solid rgba(0,209,255,0.06);
  margin-left:6px;
  opacity:.95;
}

/* links */
a{
  color:var(--accent-2);
  text-decoration:none;
  font-weight:700;
  position:relative;
}
a::after{
  content:"";
  position:absolute; left:0; bottom:-3px;
  height:2px; width:0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .24s ease;
  box-shadow: 0 6px 24px rgba(0,209,255,0.06);
}
a:hover::after{ width:100%; }

/* code blocks / inline code */
pre, code{
  background: rgba(0,0,0,0.6);
  border:1px solid rgba(255,255,255,0.02);
  color:var(--accent-2);
  padding:.2rem .4rem;
  border-radius:6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  font-size:0.92rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width:720px){
  .project-thumb{display:none}
  .site-header{flex-direction:column; gap:.6rem; align-items:flex-start}
  .hero h1{font-size:1.5rem}
}

/* ===========================================
   HUD Corner Flicker
   =========================================== */

@keyframes hud-flicker-a {
  0%, 92%, 100% { opacity: 0.95; }
  93% { opacity: 0.55; }
  95% { opacity: 0.25; }
}

@keyframes hud-flicker-b {
  0%, 90%, 100% { opacity: 0.95; }
  91% { opacity: 0.35; }
  92% { opacity: 0.65; }
  94% { opacity: 0.2; }
}

.hud-card.pulse-0::before,
.hud-card.pulse-0::after{
  animation: hud-flicker-a 4.5s linear infinite;
}

.hud-card.pulse-1::before,
.hud-card.pulse-1::after{
  animation: hud-flicker-b 5.2s linear infinite;
}

.hud-card.pulse-2::before,
.hud-card.pulse-2::after{
  animation: hud-flicker-a 6s linear infinite;
}
