a {
  text-decoration: none;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
button {
  cursor: pointer;
}

address {
  font-style: normal;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

/* Базова світла тема */
:root {
  --subheader-color: #0e1f39;
  --header-color: #0e1f39;
  --bg-color: #fff9f3;
  --text-color: #313234;
  --link-color: #0077ff;
  --font-main: "Open Sans", sans-serif;
  --font-accent: "Playfair Display", sans-serif;
  --border-color: #0e1f39;
}

/* Темна тема */
.dark-theme {
  --subheader-color: #fff9f3;
  --bg-color: #0e1f39;
  --text-color: #b0b5bc;
  --link-color: #5da9ff;
  --header-color: #fff;
  --border-color: #fff9f3;
}

body {
  position: relative;
  flex-direction: column;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  transition: background-color 0.3s, color 0.3s;
}

.container {
  max-width: 320px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}

.section {
}

a {
  color: var(--subheader-color);
}

button {
  background: none;
  border: 1px solid var(--text-color);
  color: var(--text-color);
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 4px;
}

button:hover {
  opacity: 0.8;
}

header {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  padding-bottom: 12px;
  z-index: 10;
}

.controls {
  display: flex;
  gap: 6px;
}

.header-nav-list {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.header-nav-list-item {
  /* width: 25%; */
  font-size: 10px;
  text-align: center;
  color: var(--subheader-color);
}

#theme-toggle {
  margin-left: auto;
}

.hero-section {
  height: 80vh;
  position: relative;
  padding-top: 24px;
  padding-bottom: 12px;
}

.hero-intro {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #ff31ad;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--header-color);
}

.hero-paragraf {
  margin-bottom: 54px;
  color: var(--text-color);
  font-size: 22px;
  font-weight: 400;
  font-family: var(--font-accent);
}

.hero-scroll-singt {
  text-decoration: underline;
  position: absolute;
  bottom: 120px;
  right: 10px;
  font-size: 10px;
  font-weight: 300;

  transform: rotate(270deg);
}

.contact-btn {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ff31ad;
  width: 120px;
  height: 30px;
}

.footer {
  background-color: var(--bg-color);
  width: 85%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  position: fixed;
  padding-top: 12px;
  padding-bottom: 12px;
  z-index: 99;
}

.footer-social-links-container {
  text-align: center;
  justify-content: space-between;
  display: flex;
  margin-bottom: 12px;
}

.contacts-item-icon,
.footer-social-icon {
  width: 28px;
  height: 28px;
  fill: var(--header-color);
}

.about-section {
  padding-top: 12px;
  padding-bottom: 24px;
}

.section-header {
  font: 600 30px var(--font-main);
  letter-spacing: 0.05em;
  color: var(--subheader-color);
}

.section-about-main-container,
.section-project-main-container,
.section-contacts-main-container {
  padding: 12px 0;
  position: relative;
  border-top: 1px solid #ff31ad;
}

.section-text {
  margin-top: 24px;
  font: 400 16px var(--font-accent);
  color: var(--text-color);
}

.list-item-icon {
  width: 6px;
  height: 6px;
  margin-right: 12px;
}

.tools-list {
  margin-top: 24px;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tools-list-item {
  padding-left: 12px;
  display: flex;
  align-items: center;

  font: 400 14px var(--font-accent);
}

.astronaut-image {
  border: 1px solid #ff31ad;
}

.project-section {
  height: 100vh;
}

.projects-list {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  border: 1px solid #ff31ad;
}

.projects-list-item {
  cursor: pointer;
  padding-left: 12px;
  display: flex;
  align-items: center;
  width: 45%;
  transition: background 0.3s;
  font: 400 14px var(--font-accent);
}

.projects-list-item:hover {
  background: #968a92;
}

.section-project-main-container {
  display: flex;
  flex-direction: column;
}

.decor-rectangle-1 {
  background-color: var(--bg-color);
  position: absolute;
  left: 50%;
  top: 20%;
  border: 1px solid var(--border-color);
  width: 130px;
  height: 230px;
}

.decor-rectangle-2 {
  padding: 0 12px;
  display: flex;
  position: absolute;
  bottom: 30%;
  left: 20%;
  border: 1px solid #ff31ad;
  width: 180px;
  height: 45px;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
}

/* спливаючий опис проекту */
.decor-rectangle-1 p {
  padding: 12px;
  font: 400 12px var(--font-accent);
  display: none; /* ховаємо всі тексти */
  transition: opacity 0.3s;
}
.decor-rectangle-1 p.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* показуємо тільки активний */
}

.contacts-section {
  height: 110vh;
}

.contacts-list {
  display: flex;
  margin-top: 24px;
  flex-direction: column;
  gap: 24px;
}

.contacts-messangers-list {
  display: flex;
  margin-top: 12px;
  flex-direction: column;
  gap: 12px;
}

.contacts-item-link {
  display: flex;
  align-items: center;
  gap: 24px;
}

.contacts-list p {
  margin-bottom: 12px;
}
