h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

/* Genel */

body {
  font-family: "Roboto", sans-serif;
  color: #2e2f42;
}

.container {
  max-width: 1158px;
  margin: 0 auto;
}

/* Ortak Padding */
.section {
  padding: 120px 80px;
}

/* HEADER */

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

.top-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 80px;
}

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

.logo {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  text-decoration: none;
  color: #4d5ae5;
}

.logo .studio {
  color: #2e2f42;
}

/* MENU */

.menu ul {
  display: flex;
  gap: 40px;
}

.menu a {
  font-weight: 500;
  font-size: 16px;
  color: #2e2f42;
  text-decoration: none;
  line-height: 1.7;
}

.menu a:hover,
.menu a:focus {
  color: #404bbf;
}

.menu .link {
  position: relative;
  display: inline-block;
}

.menu .link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -24px;
  width: 100%;
  height: 4px;
  background-color: #404bbf;
  border-radius: 2px;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 250ms cubic-bezier (0.4, 0, 0.2, 1),
    opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu .link.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* NAV RIGHT */

.nav-right ul {
  display: flex;
  gap: 20px;
}

.contact a {
  font-size: 16px;
  text-decoration: none;
  color: #2e2f42;
}

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

/* HERO */

.hero {
  background-color: #2e2f42;
  background-size: 1440px auto;
  background-position: center top;
  color: white;
  text-align: center;
  background-repeat: no-repeat;
  background: linear-gradient(
      180deg,
      rgba(46, 47, 66, 0.7) 0%,
      rgba(46, 47, 66, 0.7) 100%
    ),
    radial-gradient(
      120% 90% at 50% 10%,
      rgba(77, 90, 229, 0.45) 0%,
      rgba(77, 90, 229, 0) 60%
    ),
    url("./images/hero-background.png") center/cover no-repeat;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 48px;
}

.btn {
  background-color: #4d5ae5;
  color: white;
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* FEATURES */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.feature {
  flex: 1;
}

.feature .feature-icon {
  height: 120px;
  margin-bottom: 12px;
  background-color: #f4f4fd;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #8e8f99;
  border-radius: 4px;
}

.feature .feature-icon svg {
  width: 64px;
  height: 64px;
  fill: currentColor;
}

.feature h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 10px;
  color: #2e2f42;
}

.feature p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #434455;
}

/* TEAM */

.team {
  background-color: #f4f4fd;
  text-align: center;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.team h2 {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.5;
  padding-bottom: 72px;
}
.member {
  background-color: white;
  flex: 1;
  padding-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 1px rgba(46, 47, 66, 0.08), 0 1px 1px rgba(46, 47, 66, 0.16),
    0 1px 6px rgba(46, 47, 66, 0.08);
}

.member h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.member p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 10px;
}

.member img {
  margin-bottom: 20px;
  width: 100%;
  height: auto;
}

/* Sosyal medya ikon satırı */

.team .social {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px 20px;
}

/* Yuvarlak butonlar */

.team .social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #4d5ae5;
  width: 40px;
  height: 40px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.team .social .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* PORTFOLIO */

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

.portfolio h2 {
  text-align: center;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.5;
  padding-bottom: 72px;
}

.portfolio-grid .card {
  width: calc(33.333% - 16px);
  justify-content: space-between;
  border-bottom: 1px solid #e7e9fc;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-grid .card:hover,
.portfolio-grid .card:focus {
  box-shadow: 0 2px 1px rgba(46, 47, 66, 0.08), 0 1px 1px rgba(46, 47, 66, 0.16),
    0 1px 6px rgba(46, 47, 66, 0.08);
}

.card-wrapper {
  position: relative;
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.overlay {
  position: absolute;
  inset: auto 0 0 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #4d5ae5;
  color: #f4f4fd;
  font-size: 16px;
  line-height: 1.5;
  padding: 20px;
  opacity: 0;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .overlay,
.card:focus .overlay {
  opacity: 1;
}

.card:hover img,
.card:focus img {
  opacity: 0;
}

.card h3 {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  margin: 10px;
}

.card p {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  margin: 10px;
  padding-bottom: 10px;
}

/* Footer */

.footer {
  background-color: #2e2f42;
  color: #f4f4fd;
}

.footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 125px;
}

.footer-text {
  max-width: 300px;
}

.footer-social {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.footer .social {
  display: flex;
  gap: 16px;
}

.footer .social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #4d5ae5;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer .social a:hover,
.footer .social a:focus {
  background-color: #31d0aa;
}

.footer .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer .logo {
  margin-bottom: 10px;
}

.footer .logo .studio2 {
  color: #f4f4fd;
}

.footer p {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
}
