/*
Theme Name: Endorfyn
Theme URI: https://endorfyn.com
Author: Endorfyn
Version: 1.0
Description: ENDORFYN için özel geliştirilmiş WordPress teması.
*/

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

header {
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  position: sticky;
  top: 0;
}

header img.logo {
  width: 250px; /* Logo boyutunu 120px olarak ayarladık */
  height: auto; /* Yüksekliği orantılı tutuyor */
  transition: width 0.3s ease; /* Yumuşak geçiş efekti */
}

/* Mobil uyum için logo boyutunu daha da küçültme */
@media (max-width: 768px) {
  header img.logo {
    width: 170px; /* Mobilde daha küçük logo */
  }
}

nav.desktop {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav.desktop a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav.desktop a:hover,
.lang-link:hover {
  color: #bb86fc;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10000;
}

.hamburger div {
  width: 30px; /* Daha büyük bir genişlik */
  height: 3px; /* Çizgi boyutu */
  background-color: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease; /* Yumuşak geçiş */
}

.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(6.5px, 5px);
}

.hamburger.active div:nth-child(2) {
  opacity: 0; /* Orta çizgi kaybolur */
}

.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(6.5px,-5px); /* Alt çizgi */
}

/* Menü */
nav.mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.95);
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: flex-start;
  padding-left: 30px;
  gap: 1rem;
  z-index: 9999;
}

/* Menü aktif olduğunda */
nav.mobile.active {
  display: flex;
}

/* Menü öğeleri */
nav.mobile a {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
}

.lang-link.active {
  color: #bb86fc;
  pointer-events: none;
}

.language-switcher {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #fff;
}

nav.mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.95);
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: flex-start;
  padding-left: 30px;
  gap: 1rem;
  z-index: 9999;
}

nav.mobile.active {
  display: flex;
}

nav.mobile a {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav.desktop {
    display: none;
  }
}

#hero {
  min-height: 50px;  
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
padding: 2rem 8vw;  box-sizing: border-box;
  position: relative;
  text-align: left;
}

.hero-content {
  max-width: 650px;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

#hero h1 {
  font-size: clamp(28px, 2rem + 1vw, 48px);
  color: #fff;
  margin-bottom: 20px;
}

#hero p {
  font-size: clamp(14px, 1rem + 0.8vw, 20px);
  color: #ddd;
  line-height: 1.6;
}

@media (max-width: 768px) {
  #hero {
    padding: 4rem 5vw; /* mobilde biraz daha az boşluk */
  }
}

.about-section {
  background-color: #fff;
  color: #000;
  padding: 60px 20px;
}

.about-section .section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.about-section .about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 20px;
  color: #333;
}

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

#career {
  padding-top: 80px;
  padding-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
  scroll-margin-top: 80px;
  background-color: #ffffff;
}


/* Animasyon */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

.service-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

.service-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
  padding: 0 15px;
  box-sizing: border-box;
}

.service-card-container {
  background-color: #000; /* Arka planı siyah yapar */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
  padding: 60px 15px;
  box-sizing: border-box;
}

/* Kartlar (beyaz zemin) */
.service-card {
  background-color: #fff; /* Kart zemini beyaz */
  color: #000;            /* Yazılar siyah */
  width: 100%;
  max-width: 320px;
  height: 360px;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* Kart başlığı */
.service-title {
  font-size: 1.2rem;
  color: #000; /* Kart içi yazı siyah */
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

/* Kart ikonları */
.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  filter: none; /* Beyaz kartlarda invert kaldırıldı */
}


.default-content,
.hover-content {
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}


.hover-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  color: #fff;
  opacity: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: justify;
  overflow-y: auto;
  padding: 20px 25px;
  overflow-wrap: break-word;
  hyphens: auto;
  box-sizing: border-box;
}

.service-card:hover .default-content {
  opacity: 0;
}

.service-card:hover .hover-content {
  opacity: 1;
}


/* Responsive düzeltmeler */
@media (max-width: 992px) {
  .service-card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .service-card-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .career-image-container {
    display: none; /* Bu sınıfa sahip resimleri gizleriz */
  }
}

.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

#about,
#services,
#career,
#contact,
#references {
  padding-top: 80px;
  scroll-margin-top: 80px;
}
