/* Genel sayfa stilleri aynı kalacak */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  background: linear-gradient(135deg, #000000 25%, #0f5b3e 75%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header */
header {
  width: 100%;
  height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url(/images/p.jpeg) no-repeat center center;
  background-size: cover;
  position: relative;
}

#greeting {
  font-size: 3.75rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: white;
  margin: 0;
  z-index: 1;
  font-weight: 300;
  letter-spacing: 0.5px;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  overflow-x: hidden;
}

/* Değiştirilen kart düzeni */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 100%;
}


.card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  width: 100%;
  min-width: 0;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: min(100%, 200px);
  max-width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
}

.card-title {
  margin-top: 1rem;
  font-size: 1.25rem;
  text-decoration: underline;
  color: white; /* Arka plan koyu olduğu için başlıkları beyaz yapıyorum */
}

.card-desc {
  margin-top: 0.5rem;
  color: #ccc; /* Arka plan koyu olduğu için açıklamaları açık gri yapıyorum */
  overflow-wrap: anywhere;
}

/* Footer */
footer {
  color: #fff;
  padding: 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 1rem;
}

.footer-content > div {
  margin: 1rem;
}

.footer-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-content p,
.footer-content a {
  font-size: 1rem;
  color: #ccc;
  text-decoration: none;
}

.footer-content a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

.social-media a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Instagram */
.social-media a[href*="instagram"]:hover svg {
  fill: #E1306C;
  transform: scale(1.2);
}

/* Pinterest */
.social-media a[href*="pinterest"]:hover svg {
  fill: #BD081C;
  transform: scale(1.2);
}

/* Twitter (X) */
.social-media a[href*="x.com"]:hover svg {
  fill: #ffffff;
  transform: scale(1.2);
}

/* TikTok */
.social-media a[href*="tiktok"]:hover svg {
  fill: #4cb7bf;
  transform: scale(1.2);
}

nav {
  padding: 15px 0;
  text-align: center;
  position: relative;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav ul li {
  display: inline-block;
  position: relative;
}

nav ul li a {
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  font-weight: bold;
  color: rgb(255, 255, 255);
  text-decoration: none;
  padding: 10px;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: black;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: rgb(255, 254, 254);
}

/* ==== Mobil Hamburger Menü (index.html ile aynı mantık) ==== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 1100;
}

.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

footer,
.footer-content,
.footer-content > div {
  min-width: 0;
}

.footer-content p,
.footer-content a {
  overflow-wrap: anywhere;
}

/* Mobil görünüm için responsive düzenleme */
@media (max-width: 768px) {
  header {
    height: 40vh;
    min-height: 260px;
  }

  #greeting {
    font-size: 2.25rem;
    text-align: center;
    padding: 0 1rem;
    overflow-wrap: anywhere;
  }

  nav {
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    padding: 0 60px 0 16px;
    text-align: left;
    background: rgba(0, 0, 0, 0.35);
  }

  .menu-toggle {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.35);
  }

  nav ul.open {
    display: flex;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    display: block;
    font-size: 16px;
    padding: 10px 4px;
  }

  .container {
    margin: 1.25rem auto;
    padding: 0 1rem;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .card img {
    width: min(65%, 125px);
  }

  .card-title {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .card-desc {
    font-size: 0.85rem;
  }

  footer {
    padding: 1.25rem 1rem;
  }

  .footer-content {
    gap: 0.5rem;
  }

  .footer-content > div {
    max-width: 100%;
    margin: 0.75rem 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  nav {
    min-height: 48px;
    padding: 0 52px 0 12px;
  }

  .menu-toggle {
    right: 12px;
  }

  .cards {
    gap: 0.65rem;
  }

  .card img {
    width: min(60%, 100px);
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-desc {
    font-size: 0.75rem;
  }
}