/* Tüm renkler style guide kısmından root olarak yazılmıştır */
:root {
  --color-primary: #4d5ae5; /* Ana mavi - butonlar, hoverlar */
  --color-primary-pressed: #404bbf; /* Hover durumları */
  --colof-brand: #4d5ae5; /* Markanın ana rengi */
  --color-dark: #2e2f42; /* Arka plan için koyu renk */
  --color-text: #434455; /* Gövde metin rengi */
  --color-muted: #8e8f99; /* Yardımcı açıklama metni */
  --color-accent: #e7e9fc; /* Hafif vurgular */
  --color-light-bg: #f4f4fd; /* Açık arka planlar */
  --color-white: #ffffff;
  --color-modal: #fcfcfc;
  --color-success: #31d0aa; /* Başarı mesajı */
}

/* Global reset: Başlıklar, paragraflar ve listeler için (B1) */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

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

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

/* Ana gövde stili */
body {
  color: var(--color-text);
  background-color: var(--color-white);
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* Başlık stilleri */
h1 {
  color: var(--color-dark);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: 0.02em;
}

h2 {
  color: var(--color-dark);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.11; 
  letter-spacing: 0.02em;
  text-align: center; 
  text-transform: capitalize; 
  margin-bottom: 72px; 
}

h3 {
  color: var(--color-dark);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* Buton stili */
.order-btn {
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.3s;
  min-width: 169px;
  display: block; 
  margin: 0 auto; 
  transition-property: background-color, box-shadow;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.order-btn:hover,
.order-btn:focus {
  background-color: var(--color-primary-pressed);
}

/* Logo stili */
.logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-dark);
  text-decoration: none;
  margin-right: 76px;
}

.logo span {
  color: var(--color-primary); /* Sadece "WEB" kısmı mavi */
}

/* Navigation bağlantıları */
.nav-list {
  display: flex; 
  gap: 40px;
}

.nav-link {
  font-size: 16px;
  font-weight: 500px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.3s;
  padding: 24px 0;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-primary-pressed);
}

/* İletişim bağlantıları */
.contact-address {
  font-style: normal;
}

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

.email-link,
.phone-link {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
  padding: 24px 0;
}

.email-link:hover,
.email-link:focus,
.phone-link:hover,
.phone-link:focus {
  color: var(--color-primary-pressed);
}

/* Hero bölümü (Effective Solutions) */
.hero-section {
  background-color: var(--color-dark);
  color: var(
    --color-white
  );
  padding: 188px 0; 
  display: flex; 
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;

  background-image: linear-gradient(
      rgba(46, 47, 66, 0.7),
      /* Figma'daki gibi koyu renk ve %70 saydamlık */ rgba(46, 47, 66, 0.7)
    ),
    url("../images/people-office.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px; 
  max-width: 496px; 
}

.hero-content h1 {
  color: var(--color-white);
}

/* Footer stili */
.footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 100px 0;
}

.footer-container {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 72px;
}

.footer .logo {
  color: var(--color-primary);
  margin-right: 0; 
  margin-bottom: 16px; 
}

.footer .logo span {
  color: var(--color-light-bg); 
}

.footer-text {
  max-width: 264px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-light-bg); 
}

/* Yardımcı metin renkleri - Genel tanımlar */
/* .helper-text {
  color: var(--color-muted);
}

.success-message {
  color: var(--color-success);
} */

/* ÖDEV 3 aşağı kısımdan başlamaktadır. */

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

.section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.header {
  border-bottom: 1px solid var(--color-accent); 
  padding: 0; 
}

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

/* Features Section (Gizli H2 başlığı) */
.features-container {
  display: flex; 
  gap: 24px; 
}

.feature-item {
  flex-basis: calc((100% - 3 * 24px) / 4); 
}

.feature-item h3 {
  margin-bottom: 8px; 
}

.feature-icon-wrapper {
  width: 264px; 
  height: 112px;
  background-color: var(--color-light-bg); 
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px; 
}

/* Team Section */
.team-section {
  background-color: var(--color-light-bg); 
}

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

.team-list-item {
  box-shadow: 0px 2px 1px rgba(0, 0, 0, 0.08), 0px 1px 1px rgba(0, 0, 0, 0.16),
    0px 1px 3px rgba(0, 0, 0, 0.08);
}

.team-member-card {
  background-color: var(--color-white);
  border-radius: 0px 0px 4px 4px; 
  box-shadow: 0px 2px 1px 0px rgba(46, 47, 66, 0.08),
    0px 1px 1px 0px rgba(46, 47, 66, 0.16),
    0px 1px 6px 0px rgba(46, 47, 66, 0.08); 
  flex-basis: calc((100% - 3 * 24px) / 4); 
  text-align: center;
}

.team-member-card img {
  margin-bottom: 32px; 
}

.team-member-card .member-info {
  padding: 32px 0; 
}

.team-member-card h3 {
  margin-bottom: 8px; 
}

/* Portfolio Section */
.portfolio-list {
  display: flex; 
  flex-wrap: wrap; 
  column-gap: 24px;
  row-gap: 48px; 
}

.portfolio-item {
  flex-basis: calc((100% - 2 * 24px) / 3); 
  border: 1px solid var(--color-accent); 
  border-bottom: 1px solid var(--color-accent); 
  transition: box-shadow 0.3s ease; 
}

.portfolio-list-item:hover {
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

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

.portfolio-item .item-info {
  padding: 32px 16px; 
  text-align: left; 
}

.portfolio-item h3 {
  margin-bottom: 8px; 
}

.feature-icon {
  fill: var(--color-dark);
}

.feature-icon-wrapper:hover .feature-icon,
.feature-icon-wrapper:focus-within .feature-icon {
  fill: var(--color-primary);
}

/* Takım üyeleri sosyal medya ikonları */
.team-member-card .member-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background-color: #fff;
  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);
  border-radius: 0px 0px 4px 4px;
}

.team-member-card .member-info h3 {
  margin-bottom: 8px;
}

.team-member-card .member-info p {
  margin-bottom: 8px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}

.social-link {
  width: 40px;
  height: 40px;
  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 {
  fill: #f4f4fd;
}

.social-icon:hover {
  fill: #2196f3;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Altbilgi sosyal medya ikonları */
.footer-left {
  width: 264px;
}

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

.footer-logo span {
  color: #f4f4fd;
  /* Footer logosunun "WEB" kısmı için renk */
}

.footer-text {
  color: #f4f4fd;
  width: 264px;
  line-height: 1.5;
  margin-bottom: 0;
}

.footer-social {
  margin-left: 120px;
}

.footer-social-title {
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.social-list {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

/* Genel geçiş tanımı */
a,
button,
.social-link,
.feature-icon-wrapper,
.portfolio-item {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header navigasyon bağlantıları */
.nav-link {
  color: var(--color-dark);
  transition-property: color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-brand);
}

/* İletişim bağlantıları (email, telefon) */
.contact-address .email-link,
.contact-address .phone-link {
  color: var(--color-text);
  transition-property: color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-address .email-link:hover,
.contact-address .email-link:focus,
.contact-address .phone-link:hover,
.contact-address .phone-link:focus {
  color: var(--color-brand);
}

/* Özellik ikon sarmalayıcıları (feature-icon-wrapper) */
.feature-icon-wrapper {
  transition-property: background-color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sosyal medya bağlantıları (takım ve altbilgi) */
.social-link {
  transition-property: background-color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item {
  transition-property: box-shadow;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Ana navigasyon bağlantıları */
.nav-list .nav-link {
  position: relative;
  color: var(--color-dark);
  padding: 24px 0;
}

.nav-list .nav-link.current::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 4px;
  background-color: var(--color-brand);
  border-radius: 2px;
}

/* Portfolio öğesi */
.portfolio-item {
  overflow: hidden;
  position: relative; 
}

.portfolio-image-wrapper {
  position: relative; 
  overflow: hidden; 
}

.overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(77, 90, 229, 0.9); /* Mavi kaplama rengi */
  color: var(--color-light); 
  padding: 40px 32px; 
  display: flex;
  align-items: center; 
  justify-content: center; 
  transform: translateY(100%); 
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1); 
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* Kartın üzerine gelindiğinde kaplamayı gösterme işlemi */
.portfolio-item:hover .overlay-content,
.portfolio-item:focus-within .overlay-content {
  transform: translateY(0);
}