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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #f4f6f8;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.profile-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.main-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  cursor: pointer;
}

.main-text {
  width: 100%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  justify-items: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.gallery img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
}

.back-button {
  display: inline-block;
  margin-top: 2rem;
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  background-color: #3498db;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.back-button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.language-switcher {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.95rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-family: 'Helvetica Neue', sans-serif;
}

.language-switcher a {
  margin: 0 0.4rem;
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.language-switcher a:hover {
  text-decoration: underline;
  color: #2980b9;
}

.hidden {
  display: none !important;
}

#modal.hidden {
  display: none !important;
}

#modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  z-index: 1000;
}

#modal img {
  max-width: 90vw;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
}

#modal .image-title {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #2c3e50;
  text-align: center;
}

#modal .back-button {
  margin-top: 1.5rem;
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  background-color: #3498db;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
