/**
 * Custom CSS - Tüm Sayfalarda Kullanılır
 * Author: Royal Bey
 * Date: 2025-01-24
 */

:root {
  --primary-red: #ff1a38;
  --primary-purple: #971a91;
  --secondary-purple: #631abd;
  --accent-yellow: #ffb41a;
  --navy-blue: #000049;
  --black: #000;
  --white: #fff;
  --font-main: 'Poppins', 'Inter', 'Roboto', Arial, sans-serif;
}

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--navy-blue);
}

/* Slider Styles */
.main-slider { 
  min-height: 480px; 
}

.slider-img { 
  object-fit: cover; 
  height: 60vh; 
  min-height: 400px; 
  max-height: 700px; 
}

.carousel-caption { 
  bottom: 0; 
  top: 0; 
  left: 0; 
  right: 0; 
  background: rgba(0,0,0,0.25); 
}

.text-shadow { 
  text-shadow: 0 2px 16px #000, 0 1px 2px #000; 
}

/* Footer Styles */
.footer { 
  position: relative; /* veya static */
  width: 100%;
  z-index: 10;
}



/* Card Hover Effects */
.service-card:hover,
.reference-card:hover,
.blog-card:hover,
.product-card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

/* CTA Section */
.cta-gradient {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-purple) 100%);
}

.cta-title {
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

.btn-primary:hover {
  background-color: #e01732;
  border-color: #e01732;
}

/* Form Styles */
.form-control:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(255, 26, 56, 0.25);
}

/* Badge Styles */
.badge {
  background-color: var(--navy-blue) !important;
}


/* Card Görünümü ve Sabit Resim Boyutu */
.reference-card {
  display: block;
  height: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25); /* Gölgeyi arttırdık */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.reference-card img.card-img-top {
  width: 100%;
  height: 220px; /* Sabit yükseklik */
  object-fit: cover; /* Görseli kırpmadan kapsama alanına sığdırır */
}

.reference-card .card-body {
  padding: 1rem;
}



/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

/* Responsive Styles */
@media (max-width: 767.98px) { 
  .slider-img { 
    height: 240px; 
    min-height: 180px; 
  } 
  
  .display-3 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .navbar-brand img {
    height: 30px;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e01732;
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  #cookieBanner {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .container {
    width: 100% !important;
    max-width: none !important;
  }
}
