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

html {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f5f5f5;
}

html.dark {
  background: #1a1a1a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.background {
  background-size: cover;
  background-position: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: -1;
  transition: background-image 0.3s ease;
}

body.light .background,
html.light .background {
  background-image: url(./assets/background-light.webp);
}

body.dark .background,
html.dark .background {
  background-image: url(./assets/background-dark.webp);
}

body.dark,
html.dark body {
  color: #e0e0e0;
}

body.dark .container,
html.dark .container {
  background: rgba(26, 26, 26, 0.85);
}

body.dark h1,
body.dark .skill-group h3,
html.dark h1,
html.dark .skill-group h3 {
  color: #e0e0e0;
}

body.dark .intro p,
html.dark .intro p {
  color: #b0b0b0;
}

body.dark .skill-group p,
html.dark .skill-group p {
  color: #999;
}

body.dark footer a,
html.dark footer a {
  color: #e0e0e0;
}

body.dark footer a:hover,
html.dark footer a:hover {
  color: #b0b0b0;
}

#theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#theme-toggle:hover {
  transform: scale(1.05);
}

body.dark #theme-toggle,
html.dark #theme-toggle {
  background: rgba(26, 26, 26, 0.9);
  color: #e0e0e0;
}

body.light .moon-icon,
html.light .moon-icon {
  display: none;
}

body.dark .sun-icon,
html.dark .sun-icon {
  display: none;
}

.container {
  max-width: 680px;
  margin: 80px auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 -4px 6px rgba(0, 0, 0, 0.1);
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

header {
  margin-bottom: 24px;
  text-align: center;
}

h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

section {
  margin-bottom: 48px;
}

.intro p {
  font-size: 18px;
  color: #333;
  line-height: 1.7;
}

.skills {
  display: grid;
  gap: 24px;
}

.skill-group h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.skill-group p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

footer {
  margin-top: 48px;
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}

footer a {
  color: #1a1a1a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #666;
}

footer svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 640px) {
  .container {
    padding: 48px 20px;
    margin: 24px 16px;
  }

  h1 {
    font-size: 28px;
  }

  .intro p {
    font-size: 17px;
  }

  #theme-toggle {
    top: 12px;
    right: 8px;
  }
}
