@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #00ff41;
  --green-dim: #00c832;
  --green-dark: #003b00;
  --gold: #ffd700;
  --gold-dim: #b8960c;
  --bg: #020c02;
  --surface: rgba(0, 255, 65, 0.04);
  --border: rgba(0, 255, 65, 0.15);
  --text: #c8ffc8;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  overflow-x: hidden;
}

#matrix {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.18;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(2, 12, 2, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold-dim);
  letter-spacing: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--green-dim);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s, text-shadow 0.2s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

nav a:hover, nav a.active {
  color: var(--gold);
  text-shadow: 0 0 8px var(--gold-dim);
}

nav a:hover::after, nav a.active::after { width: 100%; }

/* PAGES */
.page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 100px 2.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* HOME */
.glitch-wrapper { margin-bottom: 0.5rem; }

.glitch {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--green);
  text-shadow: 0 0 20px var(--green), 0 0 40px var(--green-dark);
  position: relative;
  display: inline-block;
  letter-spacing: 4px;
}

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
}

.glitch::before {
  color: var(--gold);
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  opacity: 0.7;
}

.glitch::after {
  color: #00ffff;
  animation: glitch2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  opacity: 0.5;
}

@keyframes glitch1 {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-3px, 1px); }
  94% { transform: translate(3px, -1px); }
  96% { transform: translate(-2px, 2px); }
}

@keyframes glitch2 {
  0%, 88%, 100% { transform: translate(0); }
  90% { transform: translate(3px, -2px); }
  93% { transform: translate(-3px, 1px); }
  96% { transform: translate(2px, -1px); }
}

.subtitle {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  letter-spacing: 2px;
  text-shadow: 0 0 8px var(--gold-dim);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.4rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--green));
}

.skill-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
  transform: translateY(-3px);
}

.skill-icon {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
  text-shadow: 0 0 10px var(--gold-dim);
}

.skill-card h3 {
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 0.8rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.skill-bar {
  height: 3px;
  background: var(--green-dark);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(to right, var(--green), var(--gold));
  box-shadow: 0 0 8px var(--green);
  animation: fillBar 1.5s ease-out forwards;
  transform-origin: left;
}

@keyframes fillBar {
  from { width: 0; }
  to { width: var(--w); }
}

/* TERMINAL */
.terminal-box {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  max-width: 600px;
}

.terminal-header {
  background: rgba(0, 255, 65, 0.06);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(200, 255, 200, 0.4);
}

.terminal-body {
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
}

.prompt { color: var(--gold); }
.cmd { color: var(--green); }

.cursor {
  color: var(--green);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* PROFILE */
.profile-container {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.avatar-frame {
  position: relative;
  width: 200px; height: 200px;
}

.avatar-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--gold);
  filter: saturate(0.8) contrast(1.1);
  position: relative;
  z-index: 1;
}

.avatar-glow {
  position: absolute;
  inset: -6px;
  border-radius: 6px;
  background: transparent;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), 0 0 60px rgba(0, 255, 65, 0.15);
  z-index: 0;
}

.motto-box {
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  max-width: 220px;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.08);
}

.motto {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text);
}

.motto strong {
  color: var(--gold);
  text-shadow: 0 0 8px var(--gold-dim);
  font-size: 0.82rem;
}

.profile-right { flex: 1; min-width: 260px; }

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold-dim);
  margin-bottom: 1.8rem;
  letter-spacing: 2px;
}

.info-list { display: flex; flex-direction: column; gap: 0.8rem; }

.info-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.info-row:hover {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.08);
}

.info-key {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 2px;
  min-width: 80px;
}

.info-sep { color: var(--green-dim); }

.info-val {
  color: var(--text);
  font-size: 0.9rem;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--green));
}

.contact-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.12);
  transform: translateX(4px);
}

.contact-icon {
  width: 40px; height: 40px;
  color: var(--gold);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--gold-dim));
}

.contact-icon svg { width: 100%; height: 100%; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.contact-platform {
  font-size: 0.7rem;
  color: var(--green-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-handle {
  font-size: 0.9rem;
  color: var(--text);
}

.contact-arrow {
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.contact-card:hover .contact-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ACHIEVEMENT */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.achievement-card {
  display: flex;
  gap: 1.2rem;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.achievement-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.12), 0 0 60px rgba(0, 255, 65, 0.05);
  transform: translateY(-4px);
}

.ach-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(255, 215, 0, 0.04), transparent 60%);
  pointer-events: none;
}

.ach-badge {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 2rem;
  color: var(--gold);
  text-shadow: 0 0 15px var(--gold-dim);
  opacity: 0.6;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 0.2rem;
}

.ach-content { flex: 1; }

.ach-tag {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--green-dim);
  margin-bottom: 0.4rem;
}

.ach-title {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  color: var(--gold);
  text-shadow: 0 0 8px var(--gold-dim);
  margin-bottom: 0.6rem;
  letter-spacing: 1px;
}

.ach-desc {
  font-size: 0.8rem;
  color: rgba(200, 255, 200, 0.65);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.ach-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.ach-tech {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--green-dim);
  letter-spacing: 1px;
}

.ach-link {
  font-size: 0.72rem;
  color: var(--gold);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.achievement-card:hover .ach-link { opacity: 1; }

/* RESPONSIVE */
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  nav ul { gap: 1rem; }
  .page { padding: 90px 1rem 2rem; }
  .profile-container { flex-direction: column; align-items: center; }
  .profile-right { width: 100%; }
}

::selection {
      background: rgb(24, 225, 24);
      color: black;
    }
