/* ========================================
   LOKZWERY - CYBERSECURITY LINKTREE THEME
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --green:       #00ff41;
  --green-dim:   #00c832;
  --green-dark:  #003b00;
  --black:       #0a0a0a;
  --panel:       rgba(0, 255, 65, 0.04);
  --border:      rgba(0, 255, 65, 0.2);
  --glow:        0 0 8px #00ff41, 0 0 20px rgba(0,255,65,0.4);
  --glow-btn:    0 0 12px #00ff41, 0 0 30px rgba(0,255,65,0.3);
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---- Body & Matrix Canvas ---- */
body {
  min-height: 100vh;
  background: var(--black);
  color: var(--green);
  font-family: 'Share Tech Mono', monospace;
  overflow-x: hidden;
  position: relative;
}

/* Matrix canvas sits behind everything */
#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.18;
}

/* ---- Scanline overlay ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ---- Main layout wrapper ---- */
.wrapper {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Header / Avatar area ---- */
.profile-header {
  text-align: center;
  margin-bottom: 36px;
}

/* Hacker skull icon container */
.avatar-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 2px solid var(--green);
  box-shadow: var(--glow), inset 0 0 20px rgba(0,255,65,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: radial-gradient(circle at 50% 50%, rgba(0,255,65,0.07), transparent 70%);
  animation: pulse-ring 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.avatar-ring svg {
  width: 70px;
  height: 70px;
  fill: var(--green);
  filter: drop-shadow(0 0 6px var(--green));
  animation: flicker 5s step-end infinite;
}

/* Rotating dashed orbit */
.avatar-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(0,255,65,0.35);
  animation: spin 12s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: var(--glow), inset 0 0 20px rgba(0,255,65,0.1); }
  50%       { box-shadow: 0 0 16px #00ff41, 0 0 40px rgba(0,255,65,0.6), inset 0 0 30px rgba(0,255,65,0.15); }
}

@keyframes flicker {
  0%, 92%, 94%, 96%, 100% { opacity: 1; }
  93%, 95% { opacity: 0.3; }
}

/* ---- Name / Title ---- */
.profile-name {
  font-family: 'Orbitron', monospace;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--green);
  text-shadow: var(--glow);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.profile-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(0,255,65,0.6);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Blinking cursor after tagline */
.profile-tagline::after {
  content: '_';
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---- Status bar ---- */
.status-bar {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 0.72rem;
  color: rgba(0,255,65,0.55);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.status-bar .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
  display: inline-block;
  margin-right: 7px;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ---- Link Buttons ---- */
.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--green);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
  text-align: left;
}

/* Left accent bar */
.link-btn::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

/* Sweep hover effect */
.link-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,255,65,0.06), transparent);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.link-btn:hover {
  background: rgba(0,255,65,0.08);
  border-color: var(--green);
  box-shadow: var(--glow-btn);
  transform: translateX(4px);
  color: #fff;
}

.link-btn:hover::before { transform: scaleY(1); }
.link-btn:hover::after  { transform: translateX(100%); }

/* Icon inside button */
.link-btn .btn-icon {
  font-size: 1.1rem;
  margin-right: 14px;
  min-width: 20px;
  text-align: center;
  opacity: 0.8;
}

.link-btn .btn-label {
  flex: 1;
}

.link-btn .btn-arrow {
  font-size: 0.8rem;
  opacity: 0.4;
  transition: opacity 0.2s, transform 0.2s;
  font-family: 'Orbitron', monospace;
}

.link-btn:hover .btn-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Shake animation for featured button */
.link-btn.featured {
  border-color: var(--green);
  box-shadow: 0 0 6px rgba(0,255,65,0.3);
  animation: shake-btn 5s ease infinite;
}

@keyframes shake-btn {
  0%, 90%, 100% { transform: translateX(0); }
  91%, 93%, 95% { transform: translateX(5px); }
  92%, 94%      { transform: translateX(-3px); }
}

/* ---- Footer ---- */
.footer {
  margin-top: 44px;
  font-size: 0.7rem;
  color: rgba(0,255,65,0.3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
}

.footer span {
  color: rgba(0,255,65,0.55);
}