/*
 * AKTEKNİK Web Sitesi
 * Ana Stil Dosyası (Güncellenmiş)
 */

/* ==========================================
   Genel Stil
========================================== */
:root {
  --primary-color: #db6009;
  --primary-dark: #004c99;
  --primary-light: #e6f0ff;
  --secondary-color: #120278;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --muted-color: #6c757d;
  --font-family-body: 'Playfair Display', 'Georgia', serif;
  --font-family-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --border-radius: 4px;
  --box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

body {
  font-family: var(--font-family-body);
  color: var(--secondary-color);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: .5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

/* ==========================================
   Header ve Navigasyon
========================================== */
.top-bar {
  font-size: 0.85rem;
}

.top-bar a {
  text-decoration: none;
}

.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-brand img {
  max-height: 50px;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link.btn-primary {
  color: #fff;
}

/* ==========================================
   WhatsApp Butonu
========================================== */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

.whatsapp-button img {
  width: 100%;
  height: 100%;
}

/* ==========================================
   Slider Temiz ve Uyarlanabilir CSS
========================================== */

#mainSlider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Başlık alanı - Masaüstü */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%); /* Dikeyde ortala ama sabit yukarıda */
    width: auto;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.65);
    padding: 30px 35px;
    border-radius: 20px;
    text-align: left;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    display: inline-block;
}

.carousel-caption h2 {
  font-size: 2.8rem;     /* Eskiden: 1.6rem veya clamp() ile küçülmüş olabilir */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.carousel-caption p {
  font-size: 1.2rem;     /* Daha rahat okunur */
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.carousel-caption .btn {
  padding: 0.7rem 1.8rem;
  font-size: 1rem;
  border-radius: 6px;
  background-color: #25D366;
  color: #fff;
  border: none;
  transition: all 0.3s ease-in-out;
}

.carousel-caption .btn:hover {
  background-color: #1ebd5c;
  color: #fff;
}

/* Slider Kontrolleri */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

/* ==========================================
   Slider Geliştirilmiş Masaüstü Görünüm
========================================== */

@media (min-width: 992px) {
  .carousel-caption h2 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  }

  .carousel-caption p {
    font-size: 1.4rem; /* Net okunur */
    font-weight: 400;
    line-height: 1.8;
    max-width: 700px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  }

  .carousel-caption .btn {
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
  }
}

/* Mobil Görünüm */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .navbar-brand img {
    max-height: 40px;
  }

  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
  }

  .navbar-collapse {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

  #mainSlider {
    height: 60vh;
  }

  .carousel-caption {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 15px;
    margin: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.75);
  }

  .carousel-caption h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .carousel-caption .btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .service-box, .portfolio-card, .blog-card {
    margin-bottom: 1rem;
  }

  .page-header {
    padding: 1.5rem 0;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .whatsapp-button {
    width: 45px;
    height: 45px;
    bottom: 10px;
    right: 10px;
  }

  /* Reklam Container Mobil Stilleri */
  .ad-container {
    margin: 0.5rem 0;
    padding: 0.5rem !important;
    background: #fff;
    border: none;
    box-shadow: none;
  }

  .ad-container ins {
    min-height: 60px !important;
  }

  /* Genel Mobil İyileştirmeler */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-title p {
    font-size: 0.9rem;
  }

  .card {
    margin-bottom: 1rem;
  }

  .btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .carousel-caption h2 {
    font-size: 1.3rem;
  }

  .carousel-caption p {
    font-size: 0.85rem;
  }

  .ad-container {
    margin: 0.25rem 0;
    padding: 0.25rem !important;
  }

  .ad-container ins {
    min-height: 50px !important;
  }

  .btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (min-width: 992px) {
  .carousel-caption h2 {
    font-size: 3rem !important;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  }
}

/* ==========================================
   Ana Sayfa Servis Kutuları
========================================== */
.main-services .service-box {
  transition: all 0.3s ease;
}

.main-services .service-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.icon-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ==========================================
   Portföy Kartları
========================================== */
.portfolio-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.portfolio-card img {
  height: 200px;
  object-fit: cover;
}

/* ==========================================
   Blog Kartları
========================================== */
.blog-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.blog-card img {
  height: 200px;
  object-fit: cover;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--muted-color);
}

/* ==========================================
   Müşteri Yorumları
========================================== */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.testimonial-text {
  font-style: italic;
  position: relative;
}

.testimonial-text:before {
  content: '\201C';
  font-size: 4rem;
  color: var(--primary-light);
  position: absolute;
  top: -2rem;
  left: -1rem;
  z-index: -1;
  opacity: 0.5;
}

/* ==========================================
   Sayfa Başlıkları
========================================== */
.page-header {
  padding: 4rem 0;
  background-color: var(--primary-color);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header .lead {
  font-size: 1.25rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   Hizmet Kartları
========================================== */
.service-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.service-card .icon-box {
  margin: 0 auto;
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  border-radius: 50%;
}

/* ==========================================
   Takım Üyeleri
========================================== */
.team-member {
  transition: all 0.3s ease;
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.team-image img {
  transition: all 0.3s ease;
}

.team-member:hover .team-image img {
  transform: scale(1.05);
}

/* ==========================================
   İletişim ve Form Stilleri
========================================== */
.contact-info .icon-box {
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
}

.form-control {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid #ced4da;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(219, 96, 9, 0.25);
}

.search-form .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.search-form .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ==========================================
   Sidebar Stilleri
========================================== */
.sidebar-box {
  margin-bottom: 1.5rem;
}

.sidebar-title {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.sidebar-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.categories-list a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.categories-list a:hover {
  padding-left: 0.5rem;
  text-decoration: none;
}

.recent-posts li:last-child {
  margin-bottom: 0 !important;
}

/* ==========================================
   Fiyat Tablosu ve Kartları
========================================== */
.pricing-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.price {
  margin: 1.5rem 0;
}

/* ==========================================
   Web Tasarım Süreci
========================================== */
.process-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* ==========================================
   Footer Stilleri
========================================== */
footer {
  background-color: var(--secondary-color);
  color: #fff;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
  color: #fff;
  text-decoration: none;
}

footer h4, footer h5 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.copyright {
  font-size: 0.85rem;
}

/* ==========================================
   Responsive Ayarlar
========================================== */
@media (max-width: 767.98px) {
  .carousel-item {
    height: calc(var(--vh, 1vh) * 100) !important;
  }
  
  .carousel-caption {
    bottom: 1rem;
    padding: 1rem;
  }
  
  .carousel-caption h2 {
    font-size: 1.5rem;
  }
  
  .page-header {
    padding: 2rem 0;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .top-bar .text-md-end,
  .page-header .text-md-end {
    text-align: left !important;
    margin-top: 1rem;
  }
}

/* ==========================================
   Utility Sınıfları
========================================== */
.shadow-sm {
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}

.shadow {
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

.rounded-sm {
  border-radius: .2rem !important;
}

.rounded {
  border-radius: var(--border-radius) !important;
}

.rounded-lg {
  border-radius: .5rem !important;
}

.bg-light {
  background-color: #f8f9fa !important;
}

.bg-white {
  background-color: #fff !important;
}

/* ==========================================
   Genel İyileştirmeler
========================================== */
.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-box, .portfolio-card, .blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(219, 96, 9, 0.25);
}

/* ==========================================
   Reklam Stilleri
========================================== */
.ad-container {
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.ad-container:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .ad-container {
    margin: 1rem 0;
    padding: 0.5rem !important;
  }
}