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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

:root {
  --bg: #121212;
  --text: #e0e0e0;
  --accent: #bb86fc;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --text: #111111;
  --accent: #bb86fc;
}

html, body, main, .container {
  transition: background-color 1s ease, color 1s ease;
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.container {
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  margin: 0 auto;
}

section {
  margin-bottom: 2rem;
}

header, footer {
  margin-bottom: 3rem;
  text-align: center;
}

a {
  color: #bb86fc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

main {
  animation: fadeIn 0.6s ease-in-out;
}

.lang-switcher {
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 9999;
  display: flex;
  gap: 6px;
}

.lang-switcher .lang-btn,
.lang-switcher a.lang-btn {
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  color: white;
  font-weight: 600;
}

.lang-btn--theme {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content:center;
  visibility: visible;
}

.lang-btn--theme [aria-pressed="true"] {
  box-shadow: 0 0 0 3px rgba(187,134,252,0.12); 
}

.lang-btn--theme img {
  display: block;
  width: 20px;
  height: 20px;
  transition: opacity 1s ease-in-out;
  opacity: 1;
}


.lang-btn--theme {
  background: transparent;
  padding: 6px;
}

.lang-switcher .lang-btn:focus {
  outline: 2px solid rgba(187,134,252,0.25);
}

.lang-switcher .lang-btn[visible] {
  display: visible !important;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}
