/* Enhanced References Page Styles */

/* Hero Section */
.referanslar-hero {
  background: linear-gradient(135deg, #dc143c 0%, #b22222 50%, #8b0000 100%);
  min-height: 350px;
  position: relative;
  margin-bottom: 3rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  z-index: 2;
}

.hero-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-contact .btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-contact .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Stats Section */
.stats-section {
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(45deg, #dc143c, #ff6b6b);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #dc143c, #ff6b6b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.stat-experience .stat-icon { background: linear-gradient(45deg, #007bff, #0056b3); }
.stat-customers .stat-icon { background: linear-gradient(45deg, #28a745, #20c997); }
.stat-satisfaction .stat-icon { background: linear-gradient(45deg, #ffc107, #ff8c00); }
.stat-districts .stat-icon { background: linear-gradient(45deg, #17a2b8, #138496); }

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

/* Section Headers */
.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, #dc143c, #ff6b6b);
  border-radius: 2px;
}

/* References Grid */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.reference-item {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.reference-item:nth-child(1) { animation-delay: 0.1s; }
.reference-item:nth-child(2) { animation-delay: 0.2s; }
.reference-item:nth-child(3) { animation-delay: 0.3s; }
.reference-item:nth-child(4) { animation-delay: 0.4s; }
.reference-item:nth-child(5) { animation-delay: 0.5s; }
.reference-item:nth-child(6) { animation-delay: 0.6s; }

.reference-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.reference-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.reference-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reference-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  padding: 10px;
  box-sizing: border-box;
}

.reference-card:hover .reference-image {
  transform: scale(1.05);
}

.reference-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.8), rgba(255, 107, 107, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.reference-card:hover .reference-overlay {
  opacity: 1;
}

.overlay-content {
  color: white;
  font-size: 2rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.reference-card:hover .overlay-content {
  transform: scale(1);
}

.reference-info {
  padding: 1.5rem;
  text-align: center;
}

.reference-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.reference-badge {
  display: inline-block;
  background: linear-gradient(45deg, #dc143c, #ff6b6b);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Why Choose Section */
.why-choose-section {
  margin-bottom: 3rem;
}

.choose-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.choose-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.choose-icon-header {
  background: linear-gradient(45deg, #dc143c, #ff6b6b);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.choose-icon-header i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.choose-icon-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.choose-content {
  padding: 1.5rem;
}

.choose-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.choose-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.choose-list li:last-child {
  border-bottom: none;
}

.choose-list li:hover {
  background: #f8f9fa;
  padding-left: 0.5rem;
}

.choose-list i {
  color: #28a745;
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

/* Service Areas Section */
.service-areas-section {
  margin-bottom: 3rem;
}

.service-areas-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-areas-header {
  background: linear-gradient(45deg, #dc143c, #ff6b6b);
  color: white;
  padding: 2rem;
  text-align: center;
}

.service-areas-header i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-areas-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.service-areas-content {
  padding: 2rem;
}

.service-areas-intro {
  text-align: center;
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.region-column h4 {
  color: #0066cc;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.region-column p {
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

.service-areas-cta {
  text-align: center;
  margin-top: 2rem;
}

.service-areas-cta .btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
}

.service-areas-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(220, 20, 60, 0.4);
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .referanslar-hero {
    min-height: 300px;
  }
  
  .hero-icon {
    font-size: 3rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .references-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .referanslar-hero {
    min-height: 250px;
    margin-bottom: 2rem;
  }
  
  .hero-content {
    padding: 2rem !important;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-contact .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .stat-card {
    padding: 1.5rem 1rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .references-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
  }
  
  .reference-image-container {
    height: 150px;
  }
  
  .reference-image {
    padding: 8px;
  }
  
  .reference-info {
    padding: 1rem;
  }
  
  .regions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-areas-header {
    padding: 1.5rem;
  }
  
  .service-areas-header i {
    font-size: 2rem;
  }
  
  .service-areas-header h3 {
    font-size: 1.2rem;
  }
  
  .service-areas-content {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .references-grid {
    grid-template-columns: 1fr;
  }
  
  .reference-image-container {
    height: 180px;
  }
  
  .reference-image {
    padding: 6px;
  }
  
  .service-areas-cta .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
