*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  color: #434455;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1.5;
  font-weight: 400;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
  margin-bottom: 0;
  border-bottom: 1 #e7e9fc;
}
h1 {
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: 2%;
  text-align: center;
}
h2 {
  font-weight: 700;
  font-size: 36px;
  color: #2e2f42;
  letter-spacing: 2%;
  text-align: center;
}
h3 {
  font-weight: 500;
  font-size: 20px;
  color: #2e2f42;
  letter-spacing: 2%;
  line-height: 2.5;
}

ul,
ol {
  list-style-type: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}

.sayfa-genel {
  width: 1440px;
  height: 100%;
  margin: 0;
  padding: 0;
}

.page-header {
  justify-content: space-between;
  width: calc(100% - 312px) max-width 1440px;
  border-bottom: 1px solid #e7e9fc;
  padding: 25.5px 156px 25.5px 156px;
  align-items: center;
  margin: 0 auto;
  display: flex;
  height: 72px;
}

.page-header-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  max-width: 1440px;
  height: 72px;
  margin: 0 auto;
}

.page-header-logo {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 76px;
}

.logo-web {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 21px;
  color: #4d5ae5;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-decoration: none;
}

.logo-studio {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 21px;
  color: #2e2f42;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-decoration: none;
}

.web-logo,
.web-logo-2 {
  color: #4d5ae5;
  line-height: 1.16;
  font-size: 18px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.footer-web {
  color: #4d5ae5;
  line-height: 1.16;
  font-size: 18px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.portfolio-allcards {
  display: block;
  width: 1128px;
  margin-top: 72px;
  margin-bottom: 72px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 sütun */
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.portfolio-image-wrapper {
  position: relative;
  width: 360px;
  height: 300px;
}

.portfolio-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  /* Dikey hizalama */
  position: relative;
  overflow: hidden;
  width: 360px;
  height: 420px;
  margin: 0;
  gap: 0;
  padding: 0;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-overlay-text {
  position: absolute;
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  font-size: 14px;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(77, 90, 229, 1);
  /* Mavi ve yarı saydam */
  color: #fff;
  opacity: 0;
  /* Başta görünmez */
  display: flex;
  text-align: left;
  cursor: pointer;
  box-shadow: 0px 2px 1px 0px #2e2f4214;
  box-shadow: 0px 1px 1px 0px #2e2f4229;
  box-shadow: 0px 1px 6px 0px #2e2f4214;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  /* Geçiş efekti */

  z-index: 2;
  /* Kartın üstünde olsun */
}

.portfolio-card:hover,
.portfolio-card:focus {
  cursor: pointer;
  box-shadow: 0px 2px 1px 0px #2e2f4214;
  box-shadow: 0px 1px 1px 0px #2e2f4229;
  box-shadow: 0px 1px 6px 0px #2e2f4214;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:active .portfolio-overlay-text {
  opacity: 1;
}

.portfolio-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  width: 360px;
  height: 120px;
  padding: 32px 16px 32px 16px;
  gap: 8px;
  align-items: flex-start;
  box-sizing: border-box;
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
}

.footer-section {
  background-color: #2e2f42;
  width: 100%;
  margin: 0 auto;
}
.footer-main {
  display: flex;
  flex-direction: row; /* yatay üç sütun */
  justify-content: space-between;
  gap: 40px; /* sütun arası boşluk */
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 150px; /* footer iç boşluğu (üst/alt ile sağ/sol) */
  box-sizing: border-box;
}
.footer {
  width: 100%;
  background-color: #2e2f42;
  color: #ffffff;
  padding: 0; /* tüm büyük iç boşlukları .footer-main üzerinde kontrol edeceğiz */
  box-sizing: border-box;
}
.footer-form-container {
  display: flex;
  gap: 24px;
  position: relative;
}

.footer-container > * {
  flex: 1 1 0;
  min-width: 0;
}

.footer-text {
  width: 264px;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
}

.footer-social-title {
  color: #ffffff;
  display: flexbox;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-social-text {
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.footer-icon-link {
  display: flex;
  padding: 8px;
  background-color: #4d5ae5;
  border-radius: 50px;
  width: 40px;
  height: 40px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-icon-link:hover,
.footer-icon-link:focus {
  background-color: #31d0aa;
}
.active:active::after {
  content: "";
  position: absolute;
  display: block;
  width: 48px;
  height: 4px;
  color: #404bbf;
  background-color: #404bbf;
  border-radius: 2px;
  margin-top: 20px;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.logo-studio-footer {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 21px;
  color: #f4f4fd;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-decoration: none;
}

.footer-logotext {
  margin-top: 18px;
  font-size: 12px;
  color: #f4f4fd;
  font-weight: 300;
  letter-spacing: 2%;
  line-height: 24px;
}

.icon-clock,
.icon-antenna,
.icon-astronaut,
.icon-diagram {
  width: 64px;
  height: 64px;
}

.iconlarim-item {
  border: 1px solid #8e8f99;
  display: flex;
  width: 264px;
  height: 112px;
  border-radius: 4px;
  background-color: #f4f4fd;
  justify-content: center;
  align-items: center;
}

.iconlarim {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.iconlarim-text {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 12px;
  display: flex;
  width: 264px;
  height: 112px;
  background-color: #ffffff;
  justify-content: center;
  align-content: center;
  font-family: "Roboto", sans-serif;
  text-align: center;
}

.iconlarim-main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding: 0 156px;
}

.section {
  padding: 120px 0;
}

.sosyal-medya {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.sosyal-medya .sosyal-medya-item {
  list-style-type: none;
  width: 40px;
  height: 40px;
  background-color: #4d5ae5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.sosyal-medya-item:hover {
  background-color: #404bbf;
}

.sosyal-medya .sosyal-medya-items-footer {
  border-radius: 50%;
  list-style-type: none;
  width: 40px;
  height: 40px;
  background-color: #4d5ae5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sosyal-medya .sosyal-medya-items-footer:hover {
  background-color: #31d0aa;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-twitter,
.icon-facebook,
.icon-instagram,
.icon-linkedin {
  width: 16px;
  height: 16px;
}

.footer-studio {
  color: #f4f4fd;
  line-height: 1.16;
  font-size: 18px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.studio-logo {
  color: #2e2f42;
  line-height: 1.16;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.footer {
  color: #ffffff;
  background-color: #2e2f42;
}

.navbar:hover {
  color: #2e2f42;
}

.address:hover {
  color: #434455;
}

.page-nav .link {
  color: #2e2f42;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-size: 16px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.contacts {
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.page-nav .link:hover,
.page-nav .link:focus,
.page-nav .link:active,
.contacts:hover {
  color: #404bbf;
}
.active::after {
  position: absolute;
  display: block;
  content: "";
  width: 48px;
  height: 4px;
  background-color: #404bbf;
  border-radius: 2px;
  margin-top: 20px;
}
.hero-page {
  display: flex; /* Flexbox kullanımı */
  justify-content: center; /* Dikey ortalama */
  align-items: center; /* Yatay ortalama */
  flex-direction: column; /* Dikey hizalama */
  gap: 20px; /* Elemanlar arası boşluk */
  line-height: 2.5;
  margin: 0 auto; /* Ortalamak için */
  background: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url("../images/people-office.jpg");
  width: 1440px; /* Genişlik 1440px */
  height: 600px;
  text-align: center;
}

.page-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 56px;
  letter-spacing: 0.02em;
  line-height: 1.07;
  text-align: center;
  padding: 188px;
}

.button {
  width: 169px;
  height: 56px;
  cursor: pointer;
  margin: left 636px;
  margin-top: 48px;
  border: none;
  font-family: "Roboto", sans-serif;
  color: #ffffff;
  background-color: #4d5ae5;
  gap: 10px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0px 2px 1px #2e2f42;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 4%;
  vertical-align: middle;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover,
.button:focus .footer-button-input:hover,
.modal-button-input:hover {
  background-color: #404bbf;
}

.order-button:hover {
  background-color: #404bbf;
}
.button-text,
.modal-button-input,
.footer-button-input {
  color: #ffffff;
  line-height: 1.5;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.our-team li {
  list-style: none;
}
.team {
  background-color: #f4f4fd;
}
.team-section {
  background-color: #ffffff;
  box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08),
    0px 1px 1px rgba(46, 47, 66, 0.16), 0px 1px 6px rgba(46, 47, 66, 0.08);
  border-radius: 0 0 4px 4px;
}

.our-team {
  background-color: #f4f4fd;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.team-full-cards {
  display: flex;
}
.our-teams-text {
  text-align: center;
  margin-top: 10px;
}
.portfolio-functions,
.team-position,
.features-text,
.contacts {
  color: #434455;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.page-footer {
  background-color: #2e2f42;
  width: 1440px;
}

.studio-logo-2 {
  color: #f4f4fd;
  line-height: 1.16;
  font-family: "Raleway", sans serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.copyright-text,
.overlay-text {
  color: #f4f4fd;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.header-main {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 100px;
  border: 1px solid black;
  font-size: 24px;
}

.page-nav,
.address {
  display: flex;
  gap: 40px;
}

.page-nav {
  margin-left: 76px;
}

.address {
  margin: left 332px;
}

.features-list-ul {
  display: flex;
  gap: 24px;
}

.features-list-li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
}
.portfolio-box {
  overflow: hidden;
  position: relative;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(100%);
  background-color: #4d5ae5;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px 32px 164px;
}
.portfolio-hover-area:hover .overlay {
  transform: translateY(0);
}
.portfolio-hover-area:hover {
  box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08),
    0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 1px 6px 0 rgba(46, 47, 66, 0.08);
  cursor: pointer;
}
.team-title,
.portfolio-title {
  text-align: center;
  margin-bottom: 72px;
}

.team-list,
.portfolio-list-ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.team-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 32px 0;
  text-align: center;
}

.portfolio-container {
  padding: 32px;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
}

.footer-container {
  display: flex;
  width: 1280px;
  gap: 40px;
  padding: 60px 156px; /* üst/alt daha makul */
  align-items: center; /* burada dikey hizalama sağlanır */
  justify-content: space-between;
  box-sizing: border-box;
}

.footer-about {  
  width: 264px;
}
.footer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.footer-form-container {
  display: flex;
  gap: 24px;
  position: relative;
}
.container {
  margin: 0 auto;
  width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
.features-icon-box {
  padding: 24px 100px;
  border: 1px solid #8e8f99;
  border-radius: 4px;
  background-color: #f4f4fd;
}
.team-icon-link {
  display: flex;
  padding: 12px;
  border-radius: 50px;
  width: 40px;
  height: 40px;
  background-color: #4d5ae5;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.team-icon {
  display: flex;
  gap: 24px;
}
.team-icon-link:hover,
.team-icon-link:focus {
  background-color: #404bbf;
}

.order-button {
  background-color: #4d5ae5;
  color: #ffffff;
  cursor: pointer;
}

.button-hover {
  background-color: #404bbf;
}

.hero.image-dark-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2e2f42;
  opacity: 0.5;
}

.hero .info {
  text-align: center;
  z-index: 999;
}

ul {
  list-style: none;
}

.contacts {
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.input-field-subscribe {
  width: 264px;
  height: 40px;
  background-color: #2e2f42;
  border: #ffffff 1px solid;
  border-radius: 4px;
  font-size: 14px;
  color: #ffffff;
  padding: 0 12px; /* içeriği kenarlardan ayır */
}

.subscribe-form {
  display: flex;
  gap: 12px; /* input ile buton arasındaki boşluk */
  align-items: center;
}

.subscribe-btn {
  display: flex;
  height: 40px;
  align-items: center;
  gap: 8px; /* yazı ile ikon arası */
  background: #4d5ae5;
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
}

.form-wrapper,
.modal-overlay {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
}

.form-wrapper {
  display: none;
  position: fixed;
  font-family: "Roboto", sans-serif;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 408px;
  height: 584px;
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  box-sizing: border-box;
  font-family: Roboto;
  font-style: Medium;
  line-height: 24px;
  letter-spacing: 2%;
  color: #2e2f42;
  align-items: center;
  z-index: 999;
}

#formModal:target {
  display: block;
}
#formModal:target ~ .modal-overlay {
  display: block;
}

.centered-text {
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.8px;
}

.open-btn {
  padding: 10px 20px;
  background: #4d5ae5;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}
.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #e7e9fc;
  border: 1px solid #0000001a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal__close .icon {
  width: 8px;
  height: 8px;
  opacity: 1;
}

.form {
  width: 360px;
  margin: 0 auto 16px;
}

.form_label {
  display: block; /* kendi satırına gelsin */
  text-align: left; /* sola hizala */
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 14px;
  color: #8e8f99;

  padding: 0px 0px; /* yazıya oturan arka plan */
  margin-bottom: 8px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon__field {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #2e2f4266;
  padding: 0 12px 0 36px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.input-with-icon__field:focus {
  border: 1px solid #4d5ae5;
}

.input-with-icon__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  opacity: 1;
  fill: currentColor;
  color: #2e2f42;
}
.input-with-icon:focus-within .input-with-icon__icon {
  color: #4d5ae5;
  /* veya istediğiniz mavi tonu */
}
.form-textarea {
  width: 100%;
  border: 1px solid #2e2f4266;
  border-radius: 4px;
  padding: 5px 5px;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  height: auto;
}

.send-btn {
  margin-top: 20px;
  width: 169px;
  height: 56px;
  padding: 16px 24px;
  border-radius: 4px;
  background: #4d5ae5;
  color: #fff;
  text-decoration: none;
  box-shadow: 0px 4px 4px 0px #00000026;
  display: flex;              
  align-items: center;        
  justify-content: center;    
  gap: 8px;                   
  box-sizing: border-box;
}

.send-button-container {
  display: flex;
  justify-content: center;
}

.send-btn:hover {
  background: #3b49c9; /* üzerine gelince biraz koyulaşsın */
}
.form__actions {
  display: flex;
  justify-content: center; /* yatay ortalama */
  margin-top: 24px; /* üstten biraz boşluk */
}
.form__consent {
  width: 360px; /* diğer inputlarla aynı genişlik */
  margin: 12px auto 0; /* üstten boşluk, ortalı */
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.form__checkbox {
  width: 16px;
  height: 16px;
  margin-top: 2px; /* metinle hizalama */
}

.form__consent-text {
  font-family: Roboto, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #8e8f99;
  letter-spacing: 0.5px;
}

.form__privacy-link {
  color: #4d5ae5;
  text-decoration: underline;
  letter-spacing: 0.5px;
}

.hero-order {
  padding: 12px 24px;
  border-radius: 8px;
  background: #4d5ae5;
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

.modal__close:hover {
  background-color: #4D5AE5;
  /* veya istediğiniz mavi tonu */
  }
.footer-label {
  color:#fff;
}