/* Header blur on scroll */
header.navbar-scrolled {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

body.dark-theme header.navbar-scrolled {
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
/* ========================================
   MECAV - INDUSTRIAL + PREMIUM THEME
   Sanayi Teknolojik + Modern Premium Karması
   ======================================== */

/* ========================================
   0. FOUNDATIONS (Typography, Spacing, Colors)
   ======================================== */

:root {
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --radius: 16px;
  --shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
}

/* Koyu tema değişkenleri */
body.dark-theme {
  --surface: #1a1a1a;
  --surface-muted: #2d2d2d;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.4);
}

body { color: var(--text); }
h1, .display-4 { letter-spacing: -0.02em; }
h2, h3 { letter-spacing: -0.01em; }
p { color: var(--text-muted); }

.section { padding: 3rem 0; }
.section-tight { padding: 2rem 0; }

/* ========================================
   1. INDUSTRIAL GRID PATTERN BACKGROUNDS
   ======================================== */

.industrial-bg {
  background-color: #0f172a;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  position: relative;
}

.industrial-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Blueprint Style */
.blueprint-bg {
  background-color: #1e3a8a;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 20px);
}

/* ========================================
   2. PREMIUM GLASSMORPHISM CARDS
   ======================================== */

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.25);
}

/* Premium Card with Glow */
.premium-card {
  position: relative;
  background: var(--surface);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  border-radius: 1.25rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.premium-card:hover::before {
  opacity: 0.5;
  animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.premium-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ========================================
   3. INDUSTRIAL HERO SECTION
   ======================================== */

.hero-industrial {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #3b82f6 100%);
  padding: 6rem 0;
  overflow: hidden;
}

.hero-industrial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 2px, transparent 2px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 2px, transparent 2px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-industrial h1 {
  color: white;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5),
               0 0 40px rgba(59, 130, 246, 0.3);
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-industrial p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========================================
   4. ANIMATED COUNTERS (Sayılar)
   ======================================== */

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.stat-card-premium {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s;
}

.stat-card-premium:hover::before {
  left: 100%;
}

.stat-card-premium:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

/* ========================================
   5. FLOATING WHATSAPP BUTTON
   ======================================== */

.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
  }
}

/* WhatsApp Tooltip */
.floating-whatsapp::before {
  content: 'Mesaj Gönderin';
  position: absolute;
  right: 70px;
  background: #1f2937;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.floating-whatsapp:hover::before {
  opacity: 1;
}

/* ========================================
   6. GLOWING EFFECTS (Teknoloji Hissi)
   ======================================== */

.glow-on-hover {
  position: relative;
  border: none;
}

.glow-on-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.glow-on-hover:hover::before {
  opacity: 1;
  animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Icon Glow */
.icon-glow {
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
  transition: all 0.3s ease;
}

.icon-glow:hover {
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8));
  transform: scale(1.1) rotate(5deg);
}

/* ========================================
   7. ANIMATED GEAR/COG BACKGROUND
   ======================================== */

.gear-decoration {
  position: absolute;
  opacity: 0.03;
  pointer-events: none;
}

.gear-decoration.gear-1 {
  top: 10%;
  right: 5%;
  font-size: 200px;
  animation: rotateGear 20s linear infinite;
}

.gear-decoration.gear-2 {
  bottom: 15%;
  left: 8%;
  font-size: 150px;
  animation: rotateGear 15s linear infinite reverse;
}

@keyframes rotateGear {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================
   8. SECTION DIVIDERS (Bölüm Ayırıcı)
   ======================================== */

.section-divider {
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(59, 130, 246, 0.3) 20%, 
    rgba(139, 92, 246, 0.5) 50%, 
    rgba(59, 130, 246, 0.3) 80%, 
    transparent 100%);
  margin: 4rem 0;
  position: relative;
}

.section-divider::after {
  content: '⚙️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* ========================================
   9. TECHNOLOGY BADGES
   ======================================== */

.tech-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  padding: 6px 15px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e3a8a;
  margin: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  transition: left 0.5s;
}

.tech-badge:hover::before {
  left: 100%;
}

.tech-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.6);
}

/* ========================================
   10. PREMIUM BUTTONS
   ======================================== */

.btn-premium-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border: none;
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
  transition: all 0.3s ease;
}

.btn-premium-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.btn-premium-primary:hover::before {
  left: 100%;
}

.btn-premium-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(30, 58, 138, 0.5);
  color: white;
}

.btn-premium-primary:active {
  transform: translateY(-1px);
}

/* Industrial Button */
.btn-industrial {
  background: #1f2937;
  border: 2px solid #3b82f6;
  color: #3b82f6;
  padding: 0.875rem 2rem;
  font-weight: 700;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.btn-industrial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-industrial:hover::before {
  opacity: 1;
}

.btn-industrial:hover {
  color: white;
  border-color: #8b5cf6;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-industrial span {
  position: relative;
  z-index: 1;
}

/* ========================================
   11. 3D CARD EFFECTS
   ======================================== */

.card-3d {
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-3d:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(2deg);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 50px rgba(59, 130, 246, 0.2);
}

.card-3d .card-body {
  transform: translateZ(50px);
}

.card-3d img {
  transform: translateZ(30px);
}

/* ========================================
   11.1 BLOG CARD
   ======================================== */

.blog-card {
  overflow: hidden;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform .35s ease, box-shadow .35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(59,130,246,.25);
}

.blog-card-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-card-thumb img { 
  width: 100%;
  height: 100%;
  object-fit: cover; 
  transform: scale(1.02);
  transition: transform .6s ease;
}

.blog-card:hover .blog-card-thumb img { transform: scale(1.08); }

.blog-card-overlay {
  position: absolute; inset: 0; 
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,.45) 100%);
}

.blog-tag-badges {
  position: absolute; left: 12px; bottom: 12px; 
  display: flex; gap: 6px; flex-wrap: wrap;
}

.blog-tag-badges .badge {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}

.blog-card .title-link { color: #0f172a; text-decoration: none; }
.blog-card .title-link:hover { color: #1e3a8a; }

.blog-meta {
  display: flex; align-items: center; gap: 10px; color: #64748b;
}

.blog-meta .dot { width:6px; height:6px; border-radius:50%; background:#cbd5e1; display:inline-block; }

/* ========================================
   12. PARALLAX SECTIONS
   ======================================== */

.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.8) 100%);
}

.parallax-content {
  position: relative;
  z-index: 1;
}

/* ========================================
   13. PROGRESS BARS & METRICS
   ======================================== */

.progress-industrial {
  height: 8px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-industrial-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 10px;
  position: relative;
  transition: width 1.5s ease;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.progress-industrial-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Metric Display */
.metric-display {
  text-align: center;
  padding: 2rem;
}

.metric-value {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 1rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* ========================================
   14. GLOWING ICONS
   ======================================== */

.icon-industrial {
  font-size: 3rem;
  color: #3b82f6;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.5));
  transition: all 0.4s ease;
  display: inline-block;
}

.icon-industrial:hover {
  filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.9));
  transform: scale(1.1) rotate(10deg);
  color: #8b5cf6;
}

/* Animated Icon */
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.icon-float {
  animation: iconFloat 3s ease-in-out infinite;
}

/* ========================================
   15. TESTIMONIAL CARDS PREMIUM
   ======================================== */

.testimonial-premium {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.testimonial-premium::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 120px;
  color: rgba(59, 130, 246, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ========================================
   16. BLUEPRINT BORDERS
   ======================================== */

.blueprint-border {
  position: relative;
  padding: 2rem;
  border: 2px dashed rgba(59, 130, 246, 0.3);
  border-radius: 1rem;
}

.blueprint-border::before,
.blueprint-border::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #3b82f6;
}

.blueprint-border::before {
  top: -3px;
  left: -3px;
  border-right: none;
  border-bottom: none;
}

.blueprint-border::after {
  bottom: -3px;
  right: -3px;
  border-left: none;
  border-top: none;
}

/* ========================================
   17. HOVER REVEAL EFFECTS
   ======================================== */

.hover-reveal-card {
  position: relative;
  overflow: hidden;
}

.hover-reveal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(59, 130, 246, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none; /* overlay tıklamayı engellemesin */
}

.hover-reveal-card:hover .hover-reveal-overlay {
  opacity: 1;
}

/* ========================================
   18. CUSTOM SCROLLBAR (INDUSTRIAL)
   ======================================== */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1f2937;
  border-left: 1px solid rgba(59, 130, 246, 0.2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6, #1e3a8a);
  border-radius: 10px;
  border: 2px solid #1f2937;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
}

/* ========================================
   19. PARTICLE BACKGROUND (Opsiyonel)
   ======================================== */

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(59, 130, 246, 0.5);
  border-radius: 50%;
  animation: float 10s infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* ========================================
   20. RESPONSIVE IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
  .hero-industrial h1 {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .metric-value {
    font-size: 2.5rem;
  }
  
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 26px;
  }
  
  .gear-decoration {
    display: none; /* Mobilde ağırlaştırmasın */
  }
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer { background: var(--surface-muted); border-top: 1px solid rgba(15,23,42,.06); }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: #1e3a8a; text-decoration: underline; }
.footer-bottom { background: #fff; border-top: 1px solid rgba(15,23,42,.06); }

