/* Genel Stil Ayarları */
:root {
  --primary-color: #F1738B; /* Mercan rengi, şeftali tonlarına yakın */
  --secondary-color: #f8f8f8;
  --accent-color: #4a4a4a;
  --text-color: #333;
  --light-text-color: #f8f8f8;
  --bg-light: #ffffff;
  --bg-dark: #2c3e50;
  --border-radius: 8px;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s ease;
  --hover-scale: 1.05; /* Yeni: Hover efekti için ölçek */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-light);
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-speed);
}

a:hover {
  color: #e6673a; /* Primary color slightly darker */
}

ul {
  list-style: none;
}

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

.section-padding {
  padding: 80px 0;
}

.section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: #666;
}

/* Butonlar */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 700;
  text-align: center;
  transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.btn-primary:hover {
  background-color: #F1738B;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--accent-color);
  color: var(--light-text-color);
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background-color: #333;
  transform: translateY(-2px);
}

/* Header */
.header {
  background-color: var(--bg-light);
  padding: 20px 0;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex; /* Görsel ve metni yan yana hizalamak için */
  align-items: center; /* Dikeyde ortalamak için */
  gap: 10px; /* Görsel ile metin arasına boşluk */
}

.peach-logo {
  width: 40px; /* Şeftali görselinin boyutu */
  height: 40px;
  object-fit: cover;
  border-radius: 50%; /* Yuvarlak yapmak için */
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-item {
  position: relative;
}

.nav-item a {
  color: var(--accent-color);
  font-weight: 500;
  padding: 10px 0; /* Daha fazla tıklama alanı */
  position: relative;
  display: block; /* Tam alanı kaplaması için */
  transition: color var(--transition-speed), transform var(--transition-speed); /* Yeni: Transform geçişi */
}

.nav-item a:hover {
  color: var(--primary-color);
  transform: translateY(-2px); /* Yeni: Hafif yukarı kayma efekti */
}

.nav-item a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed);
}

.nav-item a:hover::after {
  width: 100%;
}

/* Mega Menu */
.nav-item.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 10px); /* Menü öğesinden biraz daha aşağıda */
  left: 50%; /* Ortalamak için */
  transform: translateX(-50%) translateY(10px); /* Ortala ve başlangıçta biraz aşağıda */
  background-color: var(--bg-light);
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  min-width: 220px; /* Genişletilmiş min-width */
  padding: 10px 0; /* Daha az padding */
  z-index: 10;
  opacity: 0;
  visibility: hidden; /* Yeni: Görünürlük kontrolü */
  transition: opacity var(--transition-speed), transform var(--transition-speed), visibility var(--transition-speed);
}

.nav-item.has-submenu:hover .submenu {
  display: block; /* Gerekli, ancak opacity/transform ile kontrol edilecek */
  opacity: 1;
  visibility: visible; /* Yeni: Görünür yap */
  transform: translateX(-50%) translateY(0); /* Yukarı kaydır */
}

.submenu li a {
  display: block;
  padding: 10px 25px; /* Daha fazla padding */
  color: var(--accent-color);
  white-space: nowrap;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.submenu li a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: none; /* Alt menüde ayrı bir transform olmasın */
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--accent-color);
  cursor: pointer;
  transition: transform var(--transition-speed); /* Yeni: Toggle butonu için geçiş */
}

.menu-toggle:hover {
  transform: scale(1.1); /* Yeni: Toggle butonu hover efekti */
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.pexels.com/photos/7700/pexels-photo-7700.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text-color);
}

.hero-content {
  max-width: 800px;
  padding: 20px;
}

.hero-content h1 {
  color: var(--light-text-color);
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Services Section */
.services {
  text-align: center;
  background-color: var(--secondary-color);
}

.services h2 {
  margin-bottom: 20px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  text-align: left;
  transition: transform var(--transition-speed);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.service-card h3 {
  padding: 20px 20px 10px;
  margin-bottom: 0;
  color: var(--primary-color);
}

.service-card p {
  padding: 0 20px 20px;
  font-size: 0.95rem;
  color: #555;
}

.service-card .btn-secondary {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
}

/* About Section */
.about {
  background-color: var(--bg-light);
  text-align: center;
}

.about p {
  max-width: 800px;
  margin: 20px auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* Contact Section */
.contact {
  background-color: var(--secondary-color);
  text-align: center;
}

.contact-info {
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact-info p {
  margin-bottom: 10px;
  color: #555;
}

.contact-info i {
  color: var(--primary-color);
  margin-right: 10px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form button {
  align-self: flex-start;
}

/* Footer */
.footer {
  background-color: var(--accent-color);
  color: var(--light-text-color);
  padding: 40px 0;
  text-align: center;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}

.social-links a {
  color: var(--light-text-color);
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color var(--transition-speed);
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Floating Buttons */
.whatsapp-float, .call-float {
  position: fixed;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--light-text-color);
  box-shadow: var(--box-shadow);
  z-index: 999;
  transition: transform var(--transition-speed);
}

.whatsapp-float:hover, .call-float:hover {
  transform: scale(1.1);
}

.whatsapp-float {
  background-color: #25D366; /* WhatsApp Green */
  bottom: 90px; /* Call button'ın üstünde */
}

.call-float {
  background-color: #007bff; /* Mavi */
  bottom: 20px;
  display: none; /* Varsayılan olarak gizli, mobil için gösterilecek */
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  .nav-list {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  .header .container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
  }

  .nav {
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: block;
    margin: 0 auto 15px;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    display: none; /* Varsayılan olarak gizli */
    background-color: var(--bg-light);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 20px 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 990;
    transform: translateY(-10px); /* Yeni: Mobil menü başlangıç pozisyonu */
    opacity: 0; /* Yeni: Mobil menü başlangıç opaklığı */
    transition: opacity var(--transition-speed), transform var(--transition-speed);
  }

  .nav-list.active {
    display: flex; /* Aktif olduğunda göster */
    opacity: 1; /* Yeni: Aktif olduğunda tam opaklık */
    transform: translateY(0); /* Yeni: Aktif olduğunda normal pozisyon */
  }

  .nav-item {
    width: 100%;
    text-align: center;
    padding: 0; /* Mobil menüde padding'i sıfırla */
  }

  .nav-item a {
    padding: 12px 0; /* Mobil menüde daha fazla dikey padding */
    display: block;
  }

  .nav-item.has-submenu:hover .submenu {
    display: none; /* Mobil menüde mega menü açılmasın */
  }

  .submenu {
    position: static; /* Mobil menüde alt menü normal akışta olsun */
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background-color: var(--secondary-color);
    margin-top: 10px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible; /* Mobil menüde her zaman görünür */
    display: none; /* JS ile kontrol edilecek */
  }

  .submenu li a {
    padding: 8px 0 8px 40px; /* İçeriye doğru girinti */
  }

  .hero {
    height: 60vh;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

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

  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    align-self: stretch;
  }

  .footer .container {
    flex-direction: column;
  }

  .social-links {
    margin-top: 15px;
  }

  .call-float {
    display: flex; /* Mobilde göster */
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 0.9rem;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .whatsapp-float, .call-float {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    right: 15px;
  }
  .whatsapp-float {
    bottom: 80px;
  }
  .call-float {
    bottom: 15px;
  }
}
