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

:root {
  --accent: #e4e4e7;
  --accent-dim: #a1a1aa;
  --accent-glow: rgba(255, 255, 255, 0.05);
  --bg-dark: #09090b;
  --bg-card: rgba(255, 255, 255, 0.02);
  --border: rgba(255, 255, 255, 0.08);
  --text: #d4d4d8;
  --text-dim: #52525b;
  --green-dim: #22c55e;
}

.hacker-page {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid var(--border);
  box-shadow: 0 0 30px var(--accent-glow);
  object-fit: cover;
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem;
  position: relative;
  display: inline-block;
}

/* Glitch Effect */
.hero-text h1:hover {
  animation: glitch-skew 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  color: var(--green-dim);
  text-shadow: 2px 0 var(--accent-dim), -2px 0 #ff00c1;
}

@keyframes glitch-skew {
  0% { transform: skew(0deg); }
  20% { transform: skew(-2deg); }
  40% { transform: skew(2deg); }
  60% { transform: skew(-1deg); }
  80% { transform: skew(1deg); }
  100% { transform: skew(0deg); }
}

.hero-text .bio {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

/* Status Dot Animation */
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--green-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green-dim);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green-dim);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* Tech Focus List */
.tech-focus-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.tech-focus-list li {
  color: var(--accent);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gallery-item img {
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  transition: transform 0.2s ease;
}

.gallery-item img:hover {
  transform: scale(1.02);
  border-color: var(--accent-dim);
}

figcaption sub {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.section-header {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--green-dim);
  padding-left: 1rem;
}

/* Arsenal Badges */
.arsenal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.tool-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  cursor: default;
}

.tool-badge:hover {
  border-color: var(--green-dim);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.1);
  transform: translateY(-2px);
}

/* Terminal Footer */
.terminal-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-size: 0.85rem;
}

.terminal-header {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ef4444; }
.yellow { background: #eab308; }
.green { background: #22c55e; }

.prompt { color: var(--green-dim); margin-right: 8px; }
.cmd { color: var(--accent); }
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--text-dim);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .tech-focus-list {
    text-align: left;
    display: block;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* --- PROGRESS BAR STYLES (KORJATTU) --- */
.progress-wrapper {
  margin: 20px 0;
  font-family: inherit;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.9em;
  color: var(--accent);
}

.progress-bg {
  background-color: #3b3f4e;
  border-radius: 10px;
  height: 20px;
  width: 100%;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.progress-bar {
  background: linear-gradient(90deg, #00b4db, #0083b0);
  height: 100%;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 0 10px rgba(0, 180, 219, 0.5);
  
  /* TÄRKEÄ: Käytetään muuttujaa, joka asetetaan HTML:ssä */
  width: var(--target-width);
  animation: loadProgress 2s ease-out forwards;
}

@keyframes loadProgress {
  from { width: 0; }
  to { width: var(--target-width); }
}