/* ===== RESET / BASE ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: #434455;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* ===== CONTAINER ===== */

.container {
  width: 1158px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== SECTION ===== */

.section {
  padding: 120px 0;
}

/* ===== VISUALLY HIDDEN ===== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  overflow: hidden;
}

/* ===== HEADER ===== */

.header {
  border-bottom: 1px solid #e7e9fc;
  background-color: #ffffff;
}

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

.menu-nav {
  display: flex;
  align-items: center;
}

.logo {
  text-decoration: none;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.17;
  color: #4d5ae5;
  margin-right: 76px;
}

.logo span {
  color: #2e2f42;
}

.menu-link {
  display: flex;
  gap: 40px;
}

.link {
  position: relative;
  display: block;
  padding: 16px 0;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #2e2f42;
  line-height: 40px;
}
.link::after {
  content: "";
  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 4px;

  background-color: #404bbf;
  border-radius: 2px;

  opacity: 0;
}

.link:hover,
.link:focus {
  color: #404bbf;
}
.link:hover::after,
.link:focus::after {
  opacity: 1;
}

.contacts {
  font-style: normal;
}

.contact-list {
  display: flex;
  gap: 40px;
}

.contact-link {
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #434455;
  line-height: 24px;
}

.contact-link:hover,
.contact-link:focus {
  color: #404bbf;
}

/* ===== HERO ===== */

.hero {
  max-width: 1440px;
  margin: 0 auto;
  background-color: #2e2f42;

  background-image:
    linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url("../images/hero-bg.jpg");

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-position: center center;

  padding: 188px 0;
  text-align: center;
}

.hero-title {
  max-width: 496px;
  margin: 0 auto 48px;
  font-size: 56px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: 0.02em;
  color: #ffffff;
}

/* ===== BUTTON ===== */

.button {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.04em;
  background-color: #4d5ae5;
  color: #ffffff;
  padding: 16px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.button:hover,
.button:focus {
  background-color: #404bbf;
}

/* ===== TYPOGRAPHY ===== */

.section-title {
  text-align: center;
  margin-bottom: 72px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 40px;
}

.card-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 24px;
  color: #2e2f42;
}

.card-text {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: #434455;
}

/* ===== FEATURES ===== */

.features-list {
  display: flex;
  gap: 24px;
}

.features-list li {
  flex: 1;
}

.features-list .card-title {
  margin-bottom: 8px;
}

/* ===== TEAM ===== */

.our-team {
  background-color: #f4f4fd;
}

.team-list {
  display: flex;
  gap: 24px;
}

.team-card {
  width: 264px;
  background-color: #ffffff;
  border-radius: 0 0 4px 4px;
  box-shadow:
    0px 2px 1px rgba(46, 47, 66, 0.08),
    0px 1px 1px rgba(46, 47, 66, 0.16),
    0px 1px 6px rgba(46, 47, 66, 0.08);
}

.team-card-content {
  padding: 32px; /* burada revize */
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ===== PORTFOLIO ===== */

.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 24px;
}

.portfolio-card {
  width: calc((100% - 48px) / 3);

  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-card:hover {
  box-shadow:
    0px 1px 6px rgba(46, 47, 66, 0.08),
    0px 1px 1px rgba(46, 47, 66, 0.16),
    0px 2px 1px rgba(46, 47, 66, 0.08);
}

.portfolio-card-content {
  padding: 32px 16px;
  border: 1px solid #e7e9fc;
  border-top: none;
}

.portfolio-card-content .card-title {
  margin-bottom: 8px;
}
.portfolio-img-wrapper {
  position: relative;
  overflow: hidden;
}
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  padding: 40px 32px;

  background-color: rgba(77, 90, 229, 0.9);
  color: #f4f4fd;

  font-size: 16px;
  line-height: 24px;

  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-card:hover .portfolio-overlay {
  transform: translateY(0);
}

/* ===== FOOTER ===== */

.footer {
  background-color: #2e2f42;
  padding: 100px 0;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo span {
  color: #f4f4fd;
}

.footer-text {
  max-width: 264px;
  color: #f4f4fd;
  line-height: 24px;
}
.feature-icon-wrapper svg {
  fill: #2e2f42;
}

/* burasi tamamen hero altindaki icon olaylari*/

.feature-card {
  width: 264px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-icon-wrapper {
  height: 112px;
  background-color: #f4f4fd;
  border: 1px solid #8e8f99;
  border-radius: 4px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-wrapper svg {
  fill: #2e2f42;
}
/* icon olaylari bitti*/

/* instagram falan */
.social-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 0;
}
.social-item {
  width: 40px;
  height: 40px;
}

.social-link {
  width: 40px;
  height: 40px;
  color: #f4f4fd;
  background-color: #4d5ae5;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover,
.social-link:focus {
  background-color: #404bbf;
}

.social-icon {
  width: 24px;
  height: 24px;

  fill: #f4f4fd;
}
/* footer icons */

.footer-container {
  display: flex;
  align-items: baseline;
  gap: 120px;
}
.footer-left {
  max-width: 264px;
}

.footer-social-title {
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 16px;
}
.footer-social-list {
  display: flex;
  gap: 16px;
}
.footer-social-link {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4f4fd;
  background-color: #4d5ae5;
  border-radius: 50%;

  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-link:hover,
.footer-social-link:focus {
  background-color: #31d0aa;
}
.footer-social-icon {
  width: 24px;
  height: 24px;
}
.footer-social-icon path {
  fill: #ffffff;
}
