:root {
  --primary-color: #800000; /* Bordo */
  --secondary-color: #f5451f; /* Kırmızı */
  --light-color: #ffffff; /* Beyaz */
  --dark-color: #333333;
  --gray-color: #f4f4f4;
  --font-primary: 'Roboto', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

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

a:hover {
  color: var(--secondary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Hero Section Styles - Animasyonlu ve İyileştirilmiş */
.hero {
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center 30% !important; /* Resmin üst kısmını göstermek için ayarlandı */
  background-repeat: no-repeat !important;
  height: 80vh;
  display: flex;
  align-items: center; 
  justify-content: center; 
  color: white;
  text-align: center;
  animation: gradualFade 1s ease-in-out;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)); /* Sadece hafif bir ton */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Arkaplan efektlerini kaldırıyoruz */
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Sadece metin gölgesi tutuyoruz */
  animation: slideUp 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Sadece metin gölgesi tutuyoruz */
  animation: slideUp 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.4s;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn {
  margin-top: 1rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  font-size: 1.1rem;
  padding: 12px 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Butonların daha belirgin olması için gölge */
  animation: fadeIn 1s ease-out forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

/* Animasyonlar */
@keyframes gradualFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* İkinci seviye sayfalar için daha kısa banner */
.hero-subpage {
  height: 50vh;
}

.hero-subpage h1 {
  font-size: 2.5rem;
}

/* Responsive Styles for Hero Sections */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
    text-align: center;
    background-position: center 30% !important;
    justify-content: center;
  }
  
  .hero-subpage {
    height: 45vh;
    background-position: center 30% !important;
  }
  
  .hero .container {
    justify-content: center;
    /* Padding değerini koruyor, margin kaldırıyoruz */
    padding: 0 20px;
    width: 100%;
    max-width: 600px;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }
  
  .hero .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin: 5px;
  }
  
  .hero .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 60vh; 
    background-position: center 35% !important;
  }
  
  .hero-subpage {
    height: 40vh;
    background-position: center 25% !important;
  }
  
  .hero .container {
    padding: 0 15px;
    width: 100%;
  }
  
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
  }
  
  .hero::before {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
  }
  
  /* Hero içindeki butonlar için özel stil */
  .hero .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin: 5px auto;
    min-width: 150px; /* Minimum buton genişliği */
    display: block;
  }
  
  /* Hero içindeki buton container'ı flexbox ile düzenleme */
  .hero .d-flex {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  /* Butonlar için stil değişmez */
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  /* Normal butonlar için stil değişmez */
  .btn:not(.hero .btn) {
    display: inline-block;
    width: auto;
    margin: 5px;
  }
  
  .logo img {
    height: 35px; /* Mobil logoyu biraz küçültür */
  }
  
  .mobile-menu {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  
  .section-title h2 {
    font-size: 26px;
  }
  
  /* Butonları mobilde ortalıyoruz */
  .section .text-center .btn {
    display: block;
    margin: 10px auto;
    max-width: 250px;
  }
  
  /* CTA bölümlerindeki buton container div'ini düzenliyoruz */
  .section .container.text-center div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Tüm butonlar için margin değerleri ayarlıyoruz */
  .btn {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 10px !important;
  }
  
  /* İkonlu butonları düzenliyoruz */
  .btn i {
    margin-right: 8px;
  }
}

/* Header Styles */
.header {
  background-color: var(--light-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 0;
}

.logo span {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  padding: 5px 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
  color: var(--secondary-color);
}

.mobile-menu {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  border-radius: 5px;
  background-color: var(--primary-color);
  color: var(--light-color);
  transition: all 0.3s ease;
}

.mobile-menu:hover {
  background-color: var(--secondary-color);
}

/* Footer Styles */
.footer {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 40px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-logo img {
  height: 40px;
  margin-right: 0;
  filter: brightness(0) invert(1);
}

.footer-logo span {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
}

.footer-info p {
  margin-bottom: 10px;
  color: var(--light-color); /* Tüm footer metinleri için beyaz renk */
}

/* Footer telefon numarası stilini Safari dahil tüm tarayıcılarda beyaz yapmak için */
.footer-info p i.fa-phone,
.footer-info p i.fa-envelope,
.footer-info p i.fa-map-marker-alt {
  color: var(--light-color);
  margin-right: 8px;
}

/* Safari için telefon numarası özel stilini etkisizleştirme - bu tüm a taglerini etkileyecek */
.footer-info p a,
.footer-info p i.fa-phone + a,
.footer-info p i.fa-envelope + a {
  color: var(--light-color) !important;
  text-decoration: none !important;
  -webkit-text-fill-color: var(--light-color) !important;
}

/* Safari telefon numarası stilini geçersiz kılmak için */
.footer-info p {
  color: var(--light-color);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

/* Telefon numarasını Safari dahil tüm tarayıcılarda beyaz yapmak */
.footer-info a[href^="tel:"] {
  color: var(--light-color) !important;
  text-decoration: none !important;
  -webkit-text-fill-color: var(--light-color) !important;
}

.footer-links h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--light-color);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button Styles - İyileştirilmiş */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 30px; /* Daha yuvarlak butonlar */
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 14px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
  background-color: #600000;
  color: var(--light-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
  background-color: #d13d1b;
  color: var(--light-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 12px;
}

/* Hero butonları için özel stil */
.hero .btn {
  margin: 8px;
}

/* Section Styles */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 25%;
}

.section-title p {
  color: #666;
  font-size: 16px;
}

/* Card Styles */
.card {
  background-color: var(--light-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-img {
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.card:hover .card-img img {
  transform: scale(1.1);
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.card-text {
  margin-bottom: 20px;
  color: #666;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-primary);
  font-size: 16px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

/* Mobile Nav Styles - Improved */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--light-color);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  padding: 50px 20px;
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.mobile-nav li {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 15px;
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav a {
  color: var(--dark-color);
  font-size: 18px;
  font-weight: 500;
  display: block;
  padding: 10px 0;
  transition: all 0.2s ease;
}

.mobile-nav a:hover, 
.mobile-nav a:active {
  color: var(--secondary-color);
  padding-left: 5px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--gray-color);
  color: var(--dark-color);
  transition: all 0.3s ease;
}

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

/* Modal backdrop for mobile nav */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
  display: block;
  opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu {
    display: flex;
  }
  
  .header-container {
    padding: 0 10px;
  }
  
  .logo img {
    height: 40px;
  }

  /* Fix for mobile view */
  .header {
    padding: 10px 0;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .hero {
    height: 60vh;
    padding: 20px 0;
  }
  
  .hero-subpage {
    height: 40vh;
    padding: 20px 0;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .card-img {
    height: 200px;
  }
}

/* Mobil navigasyon başlık ve altbilgi için stiller */
.mobile-nav-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav-footer {
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.mobile-nav-footer p {
  color: var(--light-color);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* Mobil menüdeki telefon numarası için Safari dahil tüm tarayıcılarda beyaz renk */
.mobile-nav-footer p a,
.mobile-nav-footer p i.fa-phone + a {
  color: var(--light-color) !important;
  text-decoration: none !important;
  -webkit-text-fill-color: var(--light-color) !important;
}

/* Mobil menüdeki telefon numarası için özel Safari stil iptal etme */
.mobile-nav-footer a[href^="tel:"] {
  color: var(--light-color) !important;
  text-decoration: none !important;
  -webkit-text-fill-color: var(--light-color) !important;
}

.mobile-nav a.active {
  color: var(--secondary-color);
  font-weight: bold;
  padding-left: 5px;
}

/* Telefon butonu için özel stil */
.btn.btn-phone {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color); /* Beyaz yerine bordo renk */
}

.btn.btn-phone:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Herodan sonra gelen butonları ortalama */
.section .text-center .btn {
  margin: 8px auto;
  display: inline-block;
}

@media (max-width: 480px) {
  /* Butonları mobilde ortalıyoruz */
  .section .text-center .btn {
    display: block;
    margin: 10px auto;
    max-width: 250px;
  }
}

/* Hero bölümü için özel beyaz outline buton stili */
.hero .btn-outline {
  background-color: transparent;
  border: 2px solid var(--light-color); /* Hero alanında beyaz sınır */
  color: var(--light-color); /* Hero alanında beyaz yazı */
}

.hero .btn-outline:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

/* Butonları ortalama konteyner */
.text-center-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .text-center-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .text-center-buttons .btn {
    margin: 5px auto;
    width: 100%;
    max-width: 250px;
  }
} 