:root {
  --background-color: #15162b;
  --text-color: #ffffff;
  --subtext-color: #a0a0b2;
  --footer-color: #666;
}

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

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  padding: 1rem;
  margin: 0;
  text-align: center;
  overflow: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

img.logo {
  width: 330px;
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
}

p {
  font-size: 1.25rem;
  color: var(--subtext-color);
  margin-bottom: 2rem;
}

footer {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--footer-color);
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1rem;
  }
}

html,
body {
  scroll-behavior: smooth;
}

main#carousel {
  height: 100dvh;
  width: 100vw;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-behavior: smooth;
  position: fixed;
  top: 0;
  left: 0;
}

.carousel-section {
  height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  max-width: min(960px, 92vw);
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.section-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-illustration {
  width: min(480px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.section-illustration[data-section="about"] {
  gap: 0.75rem;
  text-align: center;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.contact-item {
  margin: 0;
}

.contact-link {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 34px rgba(8, 12, 36, 0.34);
  color: rgba(255, 255, 255, 0.96);
  font-size: 2.35rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-link:hover,
.contact-link:focus {
  transform: translateY(-3px);
  box-shadow: 0 26px 40px rgba(8, 12, 36, 0.4);
  background: rgba(255, 255, 255, 0.23);
  color: #ffffff;
}

.contact-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.section-illustration img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 12px 24px rgba(8, 12, 36, 0.28));
}

.section-illustration[data-section="about"] img {
  width: min(320px, 80%);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.section-illustration[data-section="about"] .about-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

@media (max-width: 900px) {
  .section-inner {
    gap: 2rem;
  }
}

.language-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: 999px;
}

.language-switcher::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  pointer-events: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  transform: translateY(-50%) rotate(45deg);
  transition: border-color 0.2s ease;
}

.language-switcher:hover::after,
.language-switcher:focus-within::after {
  border-color: rgba(255, 255, 255, 0.9);
}

#language-selector {
  appearance: none;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.55rem 2.75rem 0.55rem 1rem;
  min-width: 150px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
  backdrop-filter: blur(8px);
}

#language-selector:focus,
#language-selector:hover {
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 30px rgba(10, 11, 26, 0.45);
  transform: translateY(-1px);
}

#language-selector:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

#language-selector::-ms-expand {
  display: none;
}
