

@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;
}

/* --- Overall Page --- */
.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: center;
  gap: 2.5rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-pic {
  width: 140px;
  height: 140px;
  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.25rem;
}

.hero-text .tagline {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-dim);
  margin-bottom: 1rem;
}

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

.status-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--green-dim);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-dim);
}

.section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-dim), var(--text-dim), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeSlide 0.5s forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }
.timeline-item:nth-child(4) { animation-delay: 0.7s; }
.timeline-item:nth-child(5) { animation-delay: 0.9s; }

@keyframes fadeSlide {
  to { opacity: 1; transform: translateX(0); }
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 10px;
  height: 10px;
  background: var(--bg-dark);
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0.25rem 0;
}

.timeline-title a {
  color: inherit;
  text-decoration: none;
}

.timeline-title a:hover {
  text-decoration: underline;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
}

/* --- Skills Grid --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent-dim);
}

.skill-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

.skill-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Certifications --- */
.certifications-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.certification-item {
  width: 100px;
  text-align: center;
}

.certification-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s, opacity 0.2s;
  opacity: 0.85;
}

.certification-item img:hover {
  transform: scale(1.1);
  opacity: 1;
  border-color: var(--accent-dim);
}

.certification-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* --- Navigation Links --- */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-link:hover {
  background: var(--accent-glow);
  border-color: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.nav-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
  .nav-link {
    width: 100%;
    justify-content: center;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }

  .profile-pic {
    width: 140px;               
    height: 140px;              
    border-radius: 50%;         
    border: 2px solid var(--border);
    box-shadow: 0 0 30px var(--accent-glow);
    object-fit: cover;          
    flex-shrink: 0;             
    display: block;             
  }
} /* ← Tämä sulkee media queryn oikein */


