/* ARS Gün Isı & Solar Enerji - Özel Stiller */

/* ===== Genel ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --sari: #F59E0B;
  --turuncu: #EA580C;
  --lacivert: #1E293B;
  --koyu-gri: #334155;
  --acik-gri: #F1F5F9;
  --beyaz: #FFFFFF;
  --gradient-gunes: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--koyu-gri);
  overflow-x: hidden;
}

/* ===== Navbar ===== */
.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(30, 41, 59, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-gunes);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}

/* ===== Hero Slider ===== */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(30, 41, 59, 0.4) 100%);
}

.hero-text {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide.active .hero-text {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide.active .hero-text:nth-child(1) { transition-delay: 0.2s; }
.hero-slide.active .hero-text:nth-child(2) { transition-delay: 0.4s; }
.hero-slide.active .hero-text:nth-child(3) { transition-delay: 0.6s; }

/* Slider göstergeleri */
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--sari);
  transform: scale(1.3);
}

/* ===== Scroll Animasyonları ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Kart Efektleri ===== */
.service-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.service-card .icon-box {
  transition: all 0.4s ease;
}

.service-card:hover .icon-box {
  background: var(--gradient-gunes);
  color: white;
}

/* ===== Galeri Lightbox ===== */
.gallery-item {
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.5s ease;
}

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

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 41, 59, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
}

/* ===== Blog Kartları ===== */
.blog-card {
  transition: all 0.3s ease;
}

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

.blog-card .blog-image img {
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

/* ===== İletişim Formu ===== */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--sari);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* ===== WhatsApp Butonu ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* ===== Telefon Arama Butonu ===== */
.call-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.call-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

/* ===== Sayfa Başlık Bölümü ===== */
.page-header {
  background: linear-gradient(135deg, var(--lacivert) 0%, #0F172A 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* ===== Footer ===== */
.footer-link {
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--sari);
  padding-left: 5px;
}

/* ===== Sayaç Animasyonu ===== */
.counter-number {
  font-variant-numeric: tabular-nums;
}

/* ===== Özel Butonlar ===== */
.btn-gunes {
  background: var(--gradient-gunes);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-gunes:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  border: 2px solid var(--sari);
  color: var(--sari);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--sari);
  color: white;
  transform: translateY(-3px);
}

/* ===== Mobil Menü ===== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--lacivert);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(245, 158, 11, 0.2);
  border-top-color: var(--sari);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== Genel Overflow Koruması ===== */
.fade-left,
.fade-right {
  max-width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .whatsapp-btn {
    width: 52px;
    height: 52px;
    font-size: 24px;
    bottom: 16px;
    right: 16px;
  }

  .call-btn {
    width: 52px;
    height: 52px;
    font-size: 20px;
    bottom: 16px;
    left: 16px;
  }

  /* Hero sections optimized for mobile */
  .hero-slide h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  .hero-slide p {
    font-size: 0.95rem !important;
  }

  /* Page headers optimized */
  .page-header h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  /* Better spacing for mobile */
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* Service cards spacing */
  .service-card {
    padding: 1.5rem !important;
  }

  /* Logo size */
  .navbar img[alt*="ARS"] {
    height: 2.5rem !important;
  }

  /* Mobile menu improvements */
  .mobile-menu {
    width: 85vw;
  }

  /* Form inputs */
  .form-input {
    font-size: 16px !important;
  }

  /* Button improvements */
  .btn-gunes, .btn-outline {
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
  }

  /* Footer improvements */
  footer .grid {
    gap: 2rem !important;
  }

  /* Counter numbers */
  .counter-number {
    font-size: 2rem !important;
  }

  /* Icon boxes */
  .icon-box {
    width: 3.5rem !important;
    height: 3.5rem !important;
    font-size: 1.25rem !important;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .hero-slide h1 {
    font-size: 1.75rem !important;
  }

  .page-header h1 {
    font-size: 1.75rem !important;
  }

  .mobile-menu {
    width: 90vw;
  }
}
