/* ==========================================================================
   POLİMAN YALITIM — COMPONENTS & UI SYSTEM
   ========================================================================== */

/* ==========================================================================
   BUTTONS (Yüksek Dönüşümlü & Endüstriyel)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* Primary Accent Button (Teklif & Keşif) */
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #FF6D00 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(230, 81, 0, 0.4);
  color: #FFFFFF;
}

/* Primary Navy Button */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 59, 102, 0.35);
  color: #FFFFFF;
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

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

.btn-outline-white {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* WhatsApp Direct Button */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2EE673 0%, #15A090 100%);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   BADGES & EYEBROWS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-3);
}

.badge-accent {
  background-color: var(--accent-subtle);
  color: var(--accent-hover);
  border: 1px solid rgba(230, 81, 0, 0.2);
}

.badge-primary {
  background-color: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(15, 59, 102, 0.15);
}

.badge-white {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.35rem;
  color: var(--dark);
  margin-top: 6px;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Sayfa Üst Başlık & Hero Bölümlerini Ortala */
.section-py.bg-surface-alt {
  text-align: center;
}

.section-py.bg-surface-alt .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-py.bg-surface-alt .section-title,
.section-py.bg-surface-alt .section-subtitle,
.section-py.bg-surface-alt .badge {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-py.bg-surface-alt .breadcrumb {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   CARDS (Services, Projects, Blogs)
   ========================================================================== */
.service-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: transparent;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 59, 102, 0.2);
  box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
  background-color: var(--accent);
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  background-color: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-wrap {
  background-color: var(--accent);
  color: #FFFFFF;
  transform: scale(1.05);
}

.service-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.service-card-badge {
  align-self: flex-start;
  margin-bottom: 12px;
}

.service-card-title {
  font-size: 1.28rem;
  color: var(--dark);
  margin-bottom: var(--space-3);
}

.service-card-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card-link {
  color: var(--accent);
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   PROJECT CARDS (Portföy)
   ========================================================================== */
.project-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.project-img-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  background-color: #1E293B;
  overflow: hidden;
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #94A3B8;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 16px;
  text-align: center;
}

.project-badge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 59, 102, 0.9);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.project-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.18rem;
  margin-bottom: var(--space-3);
}

.project-summary {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: var(--space-5);
  flex-grow: 1;
}

/* ==========================================================================
   FORMS & INPUTS (Keşif & İletişim)
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-label span.req {
  color: var(--error);
}

.form-control {
  width: 100%;
  height: 52px;
  padding: 12px 18px;
  font-size: 0.96rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  color: var(--dark);
}

textarea.form-control {
  height: auto;
  min-height: 120px;
  padding-top: 14px;
}

.form-control::placeholder {
  color: #94A3B8;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 59, 102, 0.14);
  outline: none;
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* ==========================================================================
   MODAL & POPUP (AJAX Keşif Formu)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 39, 68, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: var(--space-4);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-width: 580px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
  border-top: 4px solid var(--accent);
  overflow: hidden;
}

.modal-backdrop.is-open .modal-box {
  transform: translateY(0);
}

.modal-header {
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.modal-title {
  font-size: 1.35rem;
  color: var(--primary-dark);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background-color: var(--surface-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--error-bg);
  color: var(--error);
}

.modal-body {
  padding: var(--space-8);
  max-height: 80vh;
  overflow-y: auto;
}

/* ==========================================================================
   TOAST NOTIFICATION (Bildirimler)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: #FFFFFF;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.92rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 420px;
  animation: slideIn 0.3s ease-out forwards;
}

.toast.toast-success {
  border-left-color: var(--success);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   DESKTOP FLOATING WHATSAPP & COOKIE BANNER
   ========================================================================== */
.desktop-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 2500;
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
}

.desktop-whatsapp-float:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #FFFFFF;
}

.whatsapp-float-tooltip {
  position: absolute;
  right: 70px;
  background-color: var(--primary-dark);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

.desktop-whatsapp-float:hover .whatsapp-float-tooltip {
  opacity: 1;
  visibility: visible;
  right: 74px;
}

@media (max-width: 768px) {
  .desktop-whatsapp-float {
    display: none !important;
  }
}

/* KVKK Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  z-index: 2800;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.88rem;
  color: #E2E8F0;
  line-height: 1.5;
  margin: 0;
  max-width: 850px;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}

/* ==========================================================================
   ÇALIŞMA SÜRECİ & TEKNİK KARTLAR
   ========================================================================== */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .process-steps-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.process-step-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.process-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.step-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-block;
  line-height: 1;
}

.step-title {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.tech-spec-box {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.tech-spec-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.tech-spec-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-family: var(--font-heading);
  text-align: center;
}

.tech-spec-label {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 8px;
  text-align: center;
}

.tech-spec-box p {
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   LIGHTBOX GALERİ MODALI
   ========================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 14px;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: #FFFFFF;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--accent);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

