:root {
  --primary-color: #D32F2F;
  --bg-color: #F8F9FA;
  --text-color: #1C1C1C;
  --secondary-color: #F4F4F4;
  --accent-color: #FF6B6B;
  --card-bg-glass: rgba(255, 255, 255, 0.45);
  --card-border-glass: rgba(255, 255, 255, 0.8);
  --card-hover-glass: rgba(255, 255, 255, 0.85);
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-scrolled-bg: #FFFFFF;
  --font-base: 'Inter', 'Segoe UI', sans-serif;
}

:root.dark-theme {
  --bg-color: #0F172A;
  --text-color: #F8FAFC;
  --secondary-color: #1E293B;
  --accent-color: #38BDF8;
  --card-bg-glass: rgba(30, 41, 59, 0.45);
  --card-border-glass: rgba(255, 255, 255, 0.1);
  --card-hover-glass: rgba(30, 41, 59, 0.85);
  --header-bg: rgba(15, 23, 42, 0.85);
  --header-scrolled-bg: #0F172A;
}

/* --- Mobile Menu & Utility Defaults --- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.mobile-menu-btn:hover {
  color: var(--primary-color);
}

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

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

body {
  font-family: var(--font-base);
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at 10% 20%, rgba(211,47,47,0.03) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(0,0,0,0.02) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- Premium Glassmorphism Kart Eklemeleri --- */
a[style*="grid-column: span"], a[href^="/blog/"] {
  background: var(--card-bg-glass) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid var(--card-border-glass) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.04) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

a[style*="grid-column: span"]:hover, a[href^="/blog/"]:hover {
  background: var(--card-hover-glass) !important;
  border-color: var(--card-border-glass) !important;
  box-shadow: 0 16px 48px rgba(211,47,47,0.08) !important;
  transform: translateY(-8px) !important;
}

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

a:hover {
  color: var(--accent-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Corporate SaaS Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  height: 80px;
  transition: height 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
  height: 64px;
  background: var(--header-scrolled-bg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding: 0 40px;
  max-width: 100%; /* Uses full width so centers are geometrically true */
  margin: 0 auto;
}

.navbar .logo {
  justify-self: center; /* Exactly centers the logo between Left Edge and About Us */
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar .logo img {
  height: 52px; /* Prominent size inside 80px */
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.03));
}

.header.scrolled .navbar .logo img {
  height: 42px; /* Smooth scale down */
}

.navbar .logo:hover img {
  transform: scale(1.03);
}

/* Center Menu */
.nav-links-center {
  justify-self: center; /* Keeps nav in absolute middle block */
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover {
  color: #E53935;
}

.nav-links .dropdown a:hover {
  color: #E53935;
}

/* Right CTA */
.btn-primary.header-cta {
  justify-self: center; /* Exactly centers the CTA between İletişim and Right Edge! */
  padding: 0 26px; /* Pill padding */
  height: 44px; /* Perfect oval height */
  background-color: var(--primary-color);
  color: #FFFFFF !important;
  border-radius: 50px; /* pill shape */
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(211,47,47,0.15);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.header.scrolled .btn-primary.header-cta {
  height: 38px;
  font-size: 14px;
}

.btn-primary.header-cta:hover {
  background-color: var(--accent-color);
  box-shadow: 0 8px 20px rgba(211,47,47,0.25);
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff !important;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s ease, border-radius 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--accent-color);
  border-radius: 8px; /* micro interaction */
}

/* Dropdown */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-width: 280px;
  box-shadow: 0px 20px 40px rgba(0,0,0,0.08);
  z-index: 1000;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.04);
  top: 100%;
  left: -20px;
  padding: 0.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-content a {
  color: #444;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  margin-bottom: 2px;
  border-bottom: none;
}

.dropdown-content a:last-child {
  margin-bottom: 0;
}

.dropdown-content a i {
  color: var(--primary-color);
  font-size: 1.1rem;
  opacity: 0.8;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.dropdown-content a:hover {
  background-color: rgba(211,47,47,0.05);
  color: var(--primary-color);
  transform: translateX(4px);
}

.dropdown-content a:hover i {
  transform: scale(1.1);
  opacity: 1;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(20px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color) !important;
  padding: 0.75rem 1.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #e2e2e2;
}

/* Footer Section */
.footer {
  background-color: var(--secondary-color);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.footer-col p, .footer-col ul {
  font-size: 0.95rem;
  color: var(--text-color);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul a {
  color: var(--text-color);
}

.footer-col ul a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  color: var(--accent-color);
  font-size: 1.5rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #ddd;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: #555;
}

/* Sections Global */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-inline: auto;
}

.motto-text {
  font-family: 'Great Vibes', cursive;
  font-size: 4.8rem;
  color: var(--text-color);
  margin: 0;
  line-height: 1;
  letter-spacing: 1.5px;
  transform: rotate(-2deg);
  opacity: 0.85;
  text-shadow: 2px 2px 4px rgba(211,47,47,0.1);
}

@media (max-width: 600px) {
  .motto-text {
    font-size: 3rem;
    letter-spacing: 0.5px;
  }
}

.card {
  background-color: var(--secondary-color);
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}

/* Mobile Navbar Styles */
@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
  }
  
  .nav-links-center {
    position: fixed;
    top: 80px; /* Below header */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-color); /* Katı arka plan */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 2rem 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 999;
    pointer-events: none;
    overflow-y: auto;
  }
  
  .nav-links-center.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }
  
  .nav-links a {
    font-size: 1.2rem;
    padding: 0.5rem 2rem;
    width: 100%;
    justify-content: flex-start;
  }
  
  .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,0.02);
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding: 0.5rem 0;
    display: none; /* Hide dropdown content by default in mobile */
  }
  
  .dropdown:hover .dropdown-content {
    display: block; /* Show on hover (or click if JS is improved) */
    transform: none;
  }
  
  .dropdown-content a {
    padding: 0.5rem 3rem;
    font-size: 1rem;
  }
  
  .header-cta {
    display: none !important; /* Hide Free Consulting button on very small screens to fit logo and toggle */
  }
}

@media (max-width: 450px) {
    .header-cta { display: none !important; }
}
/* Hero Section Base */
.hero-section {
  padding: 6rem 0;
  text-align: center;
  background-color: #fafafa;
  border-bottom: 1px solid #eee;
}

.hero-title {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* --- Dark Mode Logo Smart Invert & Comprehensive UI Fixes --- */
.dark-theme .navbar .logo img {
  /* Siyahtan beyaza geçişi sağlar ancak logonun kurumsal renk tonunu (ör. kırmızı) ekstra doygunlukla korur */
  filter: invert(1) hue-rotate(180deg) saturate(350%) brightness(1.1);
}

.dark-theme *[style*="color: #666"], .dark-theme *[style*="color: rgb(102, 102, 102)"],
.dark-theme *[style*="color: #555"], .dark-theme *[style*="color: rgb(85, 85, 85)"],
.dark-theme *[style*="color: #444"], .dark-theme *[style*="color: rgb(68, 68, 68)"],
.dark-theme *[style*="color: #333"], .dark-theme *[style*="color: rgb(51, 51, 51)"],
.dark-theme *[style*="color: #1a1a1a"], .dark-theme *[style*="color: rgb(26, 26, 26)"],
.dark-theme *[style*="color: #1C1C1C"], .dark-theme *[style*="color: rgb(28, 28, 28)"],
.dark-theme *[style*="color: #000"], .dark-theme *[style*="color: rgb(0, 0, 0)"],
.dark-theme *[style*="color: #777"], .dark-theme *[style*="color: rgb(119, 119, 119)"],
.dark-theme *[style*="color: #888"], .dark-theme *[style*="color: rgb(136, 136, 136)"],
.dark-theme *[style*="color: #999"], .dark-theme *[style*="color: rgb(153, 153, 153)"] {
  color: #E2E8F0 !important; /* Daha açık ve okunabilir koyu tema gri (Slate 200) */
}

/* Sayfa içindeki hardcoded beyaz kartlar veya elementler için otomatik uyum (Sıradan Hex ve Tarayıcı RGB Dönüşümüne Uygun) */
.dark-theme *[style*="background: #fff"], .dark-theme *[style*="background-color: #fff"],
.dark-theme *[style*="background: rgb(255, 255, 255)"], .dark-theme *[style*="background-color: rgb(255, 255, 255)"],
.dark-theme *[style*="background: #f9f9f9"], .dark-theme *[style*="background-color: #f9f9f9"],
.dark-theme *[style*="background: rgb(249, 249, 249)"], .dark-theme *[style*="background-color: rgb(249, 249, 249)"],
.dark-theme *[style*="background: #fafafa"], .dark-theme *[style*="background-color: #fafafa"],
.dark-theme *[style*="background: rgb(250, 250, 250)"], .dark-theme *[style*="background-color: rgb(250, 250, 250)"],
.dark-theme *[style*="background: #fcfcfc"], .dark-theme *[style*="background-color: #fcfcfc"],
.dark-theme *[style*="background: rgb(252, 252, 252)"], .dark-theme *[style*="background-color: rgb(252, 252, 252)"] {
  background: var(--secondary-color) !important;
  color: var(--text-color) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Bölümler ve Section'lar çok aydınlık kalmasın diye en alt zemin arka planına çekilir */
.dark-theme section[style*="background: #fff"], .dark-theme section[style*="background-color: #fff"],
.dark-theme section[style*="background: rgb(255, 255, 255)"], .dark-theme section[style*="background-color: rgb(255, 255, 255)"],
.dark-theme section[style*="background: #f9f9f9"], .dark-theme section[style*="background-color: #f9f9f9"],
.dark-theme section[style*="background: rgb(249, 249, 249)"], .dark-theme section[style*="background-color: rgb(249, 249, 249)"] {
  background: var(--bg-color) !important;
}

/* Form, Input ve Textarea elemanlarının karanlık modda inline js (onfocus/onblur) sebebiyle beyazlaşmasını engelle */
.dark-theme input, 
.dark-theme textarea, 
.dark-theme select {
  background: var(--bg-color) !important;
  color: var(--text-color) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.dark-theme input:focus, 
.dark-theme textarea:focus, 
.dark-theme select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(211,47,47,0.2) !important;
}

.dark-theme .hero-subtitle,
.dark-theme .section-subtitle,
.dark-theme .footer-bottom {
  color: #94A3B8 !important;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.dark-theme .cookie-banner {
  background: rgba(28, 28, 28, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  flex: 1;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

.dark-theme .cookie-content {
  color: #e2e8f0;
}

.cookie-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  background: #b71c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
  }
}
