:root {
  --bg-color: #0d0d0d;
  --card-bg: rgba(20, 20, 20, 0.85);
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --accent: #0f0; /* Matrix Green */
  --border: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

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

.container {
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.lang-toggle {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-bottom: 20px;
}

.lang-btn {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
}

.lang-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
}

.lang-btn.active {
  color: #000;
  background-color: var(--accent);
  border-color: var(--accent);
  font-weight: bold;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.avatar {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #333, #111);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

h2, h3 {
  color: var(--text-main);
  margin-bottom: 1rem;
}

h2 { margin-top: 0; font-size: 1.5rem; border-left: 4px solid var(--accent); padding-left: 12px; }
h3 { font-size: 1.2rem; margin-top: 1.5rem; color: var(--accent); }

p {
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 1rem;
}

strong { color: #fff; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 1.2rem;
}

.photo {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  aspect-ratio: 3/2;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo:hover img { transform: scale(1.1); }
.photo:hover { border-color: var(--accent); }

.btn.instagram {
  display: inline-block;
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 15px;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.btn.instagram:hover { opacity: 0.9; }

aside { font-size: 0.95rem; }
aside h3:first-child { margin-top: 0; }

aside a {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-muted);
  transition: color 0.2s;
}

aside a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

aside ul { list-style: none; padding-left: 0; }
aside li { margin-bottom: 8px; display: flex; align-items: center; }
aside li::before { content: "▹"; color: var(--accent); margin-right: 8px; }

@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; gap: 2rem; }
  header { flex-direction: column; text-align: center; }
  .lang-toggle { justify-content: center; }
  h2 { border-left: none; border-bottom: 2px solid var(--accent); padding-bottom: 5px; padding-left: 0; display: inline-block;}
}