:root {
  --monero: #F26822;
  /* Pure monero orange */
  --monero-glow: rgba(242, 104, 34, 0.4);
  --bg: #030303;
  --panel: rgba(12, 12, 12, 0.85);
  --border: rgba(242, 104, 34, 0.25);
  --text: #e0e0e0;
  --text-dim: #777777;
  --green: #00ff41;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background & Scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(30, 30, 30, 0.6) 0%, rgba(3, 3, 3, 1) 100%);
  z-index: 0;
}

.scanline {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background-color: rgba(242, 104, 34, 0.1);
  opacity: 0.6;
  animation: scanline 8s linear infinite;
  z-index: 999;
  pointer-events: none;
}

@keyframes scanline {
  0% {
    top: -5%;
  }

  100% {
    top: 105%;
  }
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.cyber-lines {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 104, 34, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 104, 34, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 1;
  pointer-events: none;
}

/* Container */
.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 600px;
  padding: 40px 15px;
}

.cyber-card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(242, 104, 34, 0.05);
  border-radius: 4px;
  padding: 35px 30px;
  position: relative;
  overflow: hidden;
}

/* Cyber card corner lines */
.cyber-card::before,
.cyber-card::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--monero);
  pointer-events: none;
}

.cyber-card::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.cyber-card::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/* Header */
.card-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.status-chip {
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.3);
  color: var(--green);
  padding: 4px 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

.blink-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Profile Config */
.profile-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 25px;
}

.avatar-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 20px;
  border: 2px solid var(--border);
  box-shadow: 0 0 25px var(--monero-glow);
  overflow: hidden;
}

.scanner-line {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--monero);
  box-shadow: 0 0 10px var(--monero), 0 0 20px var(--monero);
  animation: scanAvatar 3s ease-in-out infinite alternate;
  z-index: 5;
  opacity: 0.6;
}

@keyframes scanAvatar {
  0% {
    top: -10%;
  }

  100% {
    top: 110%;
  }
}

.avatar-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(242, 104, 34, 0.8));
  pointer-events: none;
}

.glitch-name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 38px;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 5px;
  text-shadow: 0 0 15px var(--monero-glow);
}

.role {
  font-size: 18px;
  color: var(--monero);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.matrix-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
}

.separator {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 30px 0;
}

/* Sections */
.cv-section {
  margin-bottom: 40px;
  padding: 0 15px;
}

.section-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 16px;
  color: var(--monero);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.brackets {
  color: var(--text-dim);
  font-weight: normal;
}

/* Skills Grid */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-bar {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: #fff;
}

.skill-percent {
  color: var(--monero);
}

.bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.bar-fill {
  height: 100%;
  background: var(--monero);
  box-shadow: 0 0 8px var(--monero);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 25px;
  border-left: 1px dashed var(--border);
  padding-left: 15px;
  margin-left: 5px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 5px;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1px solid var(--monero);
}

.time-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.time-title {
  font-size: 17px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.time-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Action Button */
.action-section {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.cyber-btn {
  position: relative;
  display: inline-block;
  background: transparent;
  padding: 18px 40px;
  color: var(--monero);
  font-family: 'Share Tech Mono', monospace;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  overflow: hidden;
}

.cyber-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--monero);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.cyber-btn:hover {
  color: var(--bg);
  box-shadow: 0 0 20px var(--monero-glow);
  border-color: var(--monero);
}

.cyber-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Glitch Effect Name */
.glitch-name {
  position: relative;
}

.glitch-name::before,
.glitch-name::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
}

.glitch-name::before {
  left: 2px;
  text-shadow: -1px 0 red;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-name::after {
  left: -2px;
  text-shadow: -1px 0 var(--monero);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(31px, 9999px, 94px, 0);
  }

  20% {
    clip: rect(62px, 9999px, 42px, 0);
  }

  40% {
    clip: rect(16px, 9999px, 78px, 0);
  }

  60% {
    clip: rect(89px, 9999px, 13px, 0);
  }

  80% {
    clip: rect(55px, 9999px, 66px, 0);
  }

  100% {
    clip: rect(8px, 9999px, 34px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 100px, 0);
  }

  20% {
    clip: rect(12px, 9999px, 52px, 0);
  }

  40% {
    clip: rect(88px, 9999px, 20px, 0);
  }

  60% {
    clip: rect(34px, 9999px, 76px, 0);
  }

  80% {
    clip: rect(90px, 9999px, 11px, 0);
  }

  100% {
    clip: rect(43px, 9999px, 85px, 0);
  }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .cyber-card {
    padding: 25px 20px;
  }

  .glitch-name {
    font-size: 30px;
  }

  .role {
    font-size: 15px;
  }

  .cyber-btn {
    padding: 15px 30px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }

  .cv-section {
    padding: 0 5px;
  }
}