:root {
  --font-main: "Roboto", sans-serif;
  --color-dark: #000;
  --color-light: #fff;
  --letter-3: 0.03em;
  --letter-6: 0.06em;
}

body {
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}


.header {
  padding: 40px 0;
}

.header-title {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: var(--letter-3);
  margin-bottom: 20px;
}

.header-nav {
  display: flex;
  gap: 30px;
}

.header-links {
  display: flex;
  gap: 30px;
}

.header-link {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
}


.filter-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.filter-link {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: var(--letter-3);
}


.gallery-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.gallery-item {
  width: calc((100% - 60px) / 3);
}

.gallery-img {
  width: 100%;
  display: block;
}

.gallery-figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 2;
  letter-spacing: var(--letter-6);
}

.gallery-caption {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: var(--letter-3);
}


.footer {
  padding: 40px 0;
  background-color: var(--color-dark);
}

.footer-title {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: var(--letter-3);
  color: var(--color-light);
}

.footer-text {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: var(--letter-3);
  color: var(--color-light);
}
.gallery-item:nth-child(1) {
  background: white;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.header {
  padding: 20px 0;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between; 
}

.header-title {
  font-weight: 700;
  font-size: 26px;
}

.header-links {
  display: flex;
  gap: 40px;
  margin-left: 40px;
}

.header-link {
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  color: #212121;
   color: #212121;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}


.header-link:hover {
  color: #2196f3;
}
.header-link[href="portfolio.html"] {
  color: #2196f3;
}

.header-link[href="portfolio.html"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 4px;
  background-color: #2196f3;
  border-radius: 2px;
}
.gallery-thumb {
  position: relative;
  overflow: hidden;
}

.gallery-thumb img {
  display: block;
  width: 100%;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(33, 150, 243, 0.9);
  color: #fff;
  display: block; 
  padding-left: 10px;
  text-align: left;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-thumb:hover .gallery-overlay {
  transform: translateY(0);
}