/* === General Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

/* === Navbar === */
.navbar {
  background-color: #000000;
  padding: 10px 0;
}

.navbar ul {
  display: flex; /*yatayda hizzayı ortaya aldı*/
  flex-wrap: wrap;/*taşma durumunda otomatik olarak alt satıra geç*/
  justify-content: center; 
  list-style: none;
}

.navbar li {
  margin: 10px 20px;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;/*renk değişimini keskin değil uyumusak sekılde yaptık*/
  display: inline-block;
}

.navbar a:hover, /*:hover burda pseudoclass özel durum ıcın anlık değişimi gösteriyor*/
.navbar a.active {
  color: #ccc;
  transform: scale(1.1); /*ustune gelınce ya da aktıfse %10 buyuttuk*/
  
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(180deg, #000, #222);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  color: #ccc;
}

/* === Content Sections === */
.page-content, .content {
  padding: 40px 20px;
  text-align: center;
}

.photo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.photo-strip img {
  width: 280px;
  border: 3px solid #fff;
  filter: grayscale(100%);
  transition: transform 0.3s, filter 0.3s;
}

.photo-strip img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* === Footer === */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #999;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
  }

  .photo-strip img {
    width: 90%;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
/* === Orientation Adaptive Rules === */

/* Dikey (portrait) görünümde */
@media (orientation: portrait) {
  .photo-strip img {
    width: 90%;
    margin-bottom: 15px;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* Yatay (landscape) görünümde */
@media (orientation: landscape) {
  .photo-strip img {
    width: 30%;
  }

  .navbar ul {
    flex-direction: row;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}
/* === Memories Page === */
.intro {
  color: #ccc;
  margin-bottom: 30px;
}

.memories-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}
.memory-card {
  position: relative;
  background-color: #111;
  border: 2px solid #fff;
  
  width: 320px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* gizli metni gizler */
  max-height: 350px; /* başlangıçta sınırlı yükseklik */
}

.memory-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  max-height: 1000px; /* hover olunca kart büyür ve gizli metin görünür */
}

.memory-card .text {
  color: #ddd;
  font-size: 1rem;
  line-height: 1.5;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.memory-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 15px;
  display: block;
}

.memory-card h2 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.memory-card .date {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 10px;
}


/* Orientation-specific for Memories */
@media (orientation: landscape) {
  .memories-container {
    flex-direction: row;
  }
}

@media (orientation: portrait) {
  .memories-container {
    flex-direction: column;
    align-items: center;
  }
}
/* === About Me Page === */
.about-section {
  padding: 50px 20px;
  display: flex;
  justify-content: center;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  max-width: 1000px;
  gap: 20px;
}

.about-photo-vertical img {
  width: 260px;
  height: 100%;
  object-fit: cover;
  border: 3px solid #fff;
}

.about-text-photos {
  flex: 1; /*boş alan buldugunda buyutebılsın alttakı yatay fotoları dıye*/
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-text {
  background-color: #000000;
  padding: 20px;
  color: #ddd;
  line-height: 1.6;
}

.about-text h1 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 15px;
}

.about-photo-horizontal {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.about-photo-horizontal img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border: 3px solid #fff;
}

/* === Responsive Design === */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .about-photo-vertical img {
    width: 90%;
    height: auto;
    align-items: center;
    margin: 0 auto;
  }

  .about-photo-horizontal {
    flex-direction: column;
    align-items: center;
  }

  .about-photo-horizontal img {
    width: 90%;
    height: auto;
  }

  .about-photo-vertical{
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

.gallery-container {
  padding: 50px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.gallery-masonry {
  columns: 4;             /* kaç sütun olacağını belirler */
  column-gap: 20px;       /* sütunlar arası boşluk */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.gallery-masonry img {
  width: 100%;
  margin-bottom: 20px;    /* alt alta fotoğraflar arası boşluk */
  border: 3px solid #fff;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-masonry img:hover {
  transform: scale(1.05);
}

/* Tablet görünümü */
@media (max-width: 992px) {
  .gallery-masonry { columns: 3; }
}

/* Telefon görünümü */
@media (max-width: 768px) {
  .gallery-masonry { columns: 2; }
}

/* Çok küçük ekran */
@media (max-width: 480px) {
  .gallery-masonry { columns: 1; }
}

