/* style.css - Tam Sürüm */
:root {
  --primary-color: #0b1d3a; /* Logo Lacivert */
  --secondary-color: #f15a24; /* Logo Turuncu */
  --light-bg: #f8f9fa;
  --text-dark: #333333;
  --text-muted: #6c757d;
  --white: #ffffff;
  --font-family: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Breakpoints */
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* Sayfa Açılış Animasyonu (Preloader) */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--light-bg);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader img {
  height: 60px;
  animation: pulseLogo 1.5s infinite ease-in-out;
}

@keyframes pulseLogo {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Yeni Dinamik Header & Navigasyon */
.main-header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
}

.logo img {
  max-height: 50px;
  display: block;
  transition: var(--transition);
}

/* Masaüstü Navigasyon (Sağa Yaslı Tek Parça) */
.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.desktop-nav ul li a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.desktop-nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--secondary-color);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateX(-50%);
}

.desktop-nav ul li a:hover::after {
  width: 100%;
}

.desktop-nav ul li a:hover {
  color: var(--secondary-color);
}

.mobile-nav-overlay {
  display: none;
}

/* Masaüstü Görünüm */
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobil Görünüm (Hamburger Menü, Animasyonlar ve Ortalanmış Logo) */
@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }
  
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .mobile-menu-toggle {
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1002;
    margin-left: auto;
  }
  
  /* Gradyan Animasyonlu Açılır Mobil Menü */
  .mobile-nav-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: all 0.4s ease-in-out;
  }
  
  .mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }
  
  .mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 30px;
    color: var(--white);
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .mobile-menu-close:hover {
    transform: rotate(90deg);
  }
  
  .mobile-menu-list {
    list-style: none;
    text-align: center;
    margin-bottom: 30px;
  }
  
  /* Animasyon Başlangıç Durumu */
  .mobile-menu-list li {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
  }
  
  /* Menü Açıldığında Sırayla Gelen Linkler (Staggered Effect) */
  .mobile-nav-overlay.active .mobile-menu-list li {
    animation: slideUpFade 0.4s ease forwards;
  }
  .mobile-nav-overlay.active .mobile-menu-list li:nth-child(1) { animation-delay: 0.1s; }
  .mobile-nav-overlay.active .mobile-menu-list li:nth-child(2) { animation-delay: 0.15s; }
  .mobile-nav-overlay.active .mobile-menu-list li:nth-child(3) { animation-delay: 0.2s; }
  .mobile-nav-overlay.active .mobile-menu-list li:nth-child(4) { animation-delay: 0.25s; }
  .mobile-nav-overlay.active .mobile-menu-list li:nth-child(5) { animation-delay: 0.3s; }
  .mobile-nav-overlay.active .mobile-menu-list li:nth-child(6) { animation-delay: 0.35s; }
  .mobile-nav-overlay.active .mobile-menu-list li:nth-child(7) { animation-delay: 0.4s; }
  .mobile-nav-overlay.active .mobile-menu-list li:nth-child(8) { animation-delay: 0.45s; }

  /* Dinamik Hover Özellikli Mobil Linkler */
  .mobile-menu-list li a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    padding: 5px 15px;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .mobile-menu-list li a:hover {
    color: var(--secondary-color);
    transform: scale(1.15);
  }

  .mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 80%;
    max-width: 300px;
    opacity: 0;
  }
  
  .mobile-nav-overlay.active .mobile-nav-buttons {
    animation: slideUpFade 0.5s ease forwards;
    animation-delay: 0.6s;
  }

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

/* Yukarı Kayma Animasyonu Keyframes */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero-section {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
  color: var(--white);
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  margin: 5px;
}

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

.btn-primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

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

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

/* Yüzen Butonlar */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.15) rotate(10deg);
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.scroll-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* Hizmetlerimiz Bölümü */
.services-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
}

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

.service-card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  border-bottom: 3px solid var(--secondary-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

/* Sektörel Çözümler Bölümü */
.sectors-section {
  padding: 80px 0;
  background-color: var(--white);
}

.sectors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.sector-badge {
  background-color: var(--light-bg);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  cursor: default;
}

.sector-badge:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

/* Çözüm Avantajlarımız Bölümü */
.advantages-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a365d 0%, var(--primary-color) 100%);
  color: var(--white);
}

.advantages-section .section-title {
  color: var(--white);
}

.advantages-section .section-title::after {
  background-color: var(--secondary-color);
}

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

.advantage-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255,255,255,0.1);
  padding: 15px 20px;
  border-radius: 8px;
}

.advantage-item i {
  color: var(--secondary-color);
  font-size: 24px;
}

/* Referanslar Bölümü */
.references-section {
  padding: 80px 0;
  background-color: var(--white);
}

.reference-card {
  padding: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  background: var(--light-bg);
  height: 120px;
}

.reference-card img {
  max-width: 100%;
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.reference-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.reference-card:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--secondary-color) !important;
}

/* Blog Bölümü */
.blog-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

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

.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.blog-image {
  position: relative;
  height: 200px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-date {
  position: absolute;
  bottom: -15px;
  right: 20px;
  background: var(--secondary-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
}

.blog-content {
  padding: 30px 20px 20px;
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.blog-read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.blog-read-more:hover {
  color: var(--primary-color);
}

/* SSS (Akordiyon) Bölümü */
.faq-section {
  padding: 80px 0;
  background-color: var(--white);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 5px;
  overflow: hidden;
}

.faq-header {
  padding: 20px;
  background: var(--light-bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-header h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin: 0;
}

.faq-header i {
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-header.active {
  background: var(--primary-color);
}

.faq-header.active h3, .faq-header.active i {
  color: var(--white);
}

.faq-header.active i {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  background: var(--white);
}

.faq-body p {
  margin: 0;
  padding: 0 20px;
  color: var(--text-muted);
}

.faq-body.show {
  padding: 20px;
}

/* Footer Tasarımı */
.main-footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0 20px;
}

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

.footer-logo {
  max-height: 50px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1); /* Logoyu beyaz yapar, orijinal renk istersen bu satırı sil */
}

.footer-about p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 50%;
  margin-right: 10px;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary-color);
}

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

.footer-links ul li, .footer-contact ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-contact ul li {
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact ul li i {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}
