/* Vektör Plastik Core Styling - Premium Cyber-Industrial Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* High-contrast dark industrial scheme */
  --bg-primary: #080c14;
  --bg-secondary: #0f1626;
  --bg-tertiary: #17223b;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --color-brand: #3b82f6; /* Modern Electric Blue */
  --color-brand-glow: rgba(59, 130, 246, 0.35);
  
  --color-auto: #ef4444; /* Racing Red */
  --color-baby: #06b6d4; /* Soft Cyan */
  --color-industry: #10b981; /* Neon Green */
  
  --glass-bg: rgba(15, 22, 38, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.5);
  
  --font-family-title: 'Outfit', sans-serif;
  --font-family-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  
  --header-height: 105px;
}

/* Light Mode Override (if toggled) */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --color-brand: #0f4c81;
  --color-brand-glow: rgba(15, 76, 129, 0.15);
  
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(241, 245, 249, 0.8);
  --glass-shadow: rgba(15, 23, 42, 0.05);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family-body);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition-smooth);
  overflow-x: hidden;
  position: relative;
  
  /* Cybertech Grid mesh background */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Drifting Neon Blobs for movement & depth */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  z-index: -2;
  pointer-events: none;
  animation: drift 25s infinite alternate ease-in-out;
}

body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  right: -15%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 75%);
  z-index: -2;
  pointer-events: none;
  animation: drift2 30s infinite alternate ease-in-out;
}

[data-theme="light"] body {
  background-image: 
    linear-gradient(rgba(15, 76, 129, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 129, 0.02) 1px, transparent 1px);
}

[data-theme="light"] body::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
}

[data-theme="light"] body::after {
  background: radial-gradient(circle, rgba(15, 76, 129, 0.03) 0%, transparent 60%);
}

/* Keyframe animations for drifting wallpapers */
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 8%) scale(1.1); }
  100% { transform: translate(10%, 15%) scale(1.2); }
}

@keyframes drift2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, -5%) scale(1.05); }
  100% { transform: translate(-15%, -10%) scale(1.1); }
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-title);
  font-weight: 700;
  line-height: 1.25;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand);
}

/* Layout Elements */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-family-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo img {
  height: 66px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-brand);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-brand);
  transition: var(--transition-smooth);
}

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

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px var(--glass-shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.dropdown-item a:hover {
  background-color: var(--bg-tertiary);
  color: var(--color-brand);
}

/* Utility Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle, .btn-mobile-menu {
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.theme-toggle:hover, .btn-mobile-menu:hover {
  background-color: var(--bg-tertiary);
  color: var(--color-brand);
}

.theme-toggle svg, .btn-mobile-menu svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-mobile-menu {
  display: none;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-family-title);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--color-brand-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-brand-glow);
  opacity: 0.95;
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
}

/* Dynamic Slider / Carousel System */
.slider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-top: 0;
}

.slider {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
  width: 33.3333%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(8, 12, 20, 0.95) 0%, rgba(8, 12, 20, 0.4) 100%);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 24px;
}

.slide-content h2 {
  font-size: 4rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Slider Controls */
.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.slider-arrow:hover {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
}

.slider-arrow-left { left: 40px; }
.slider-arrow-right { right: 40px; }

/* Section Grid Layouts */
.section-padding {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px auto;
}

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 40%, var(--color-brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.15rem;
}

/* Cyber Industrial Cards styling */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.category-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(15, 22, 38, 0.6) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 4px 30px var(--glass-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-brand), #818cf8);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card.automotive::before { background: linear-gradient(90deg, var(--color-auto), #f43f5e); }
.category-card.baby::before { background: linear-gradient(90deg, var(--color-baby), #06b6d4); }
.category-card.industrial::before { background: linear-gradient(90deg, var(--color-industry), #34d399); }

.category-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  background-color: var(--bg-tertiary);
  color: var(--color-brand);
}

.category-card.automotive .category-icon { color: var(--color-auto); background-color: rgba(239, 68, 68, 0.1); }
.category-card.baby .category-icon { color: var(--color-baby); background-color: rgba(6, 182, 212, 0.1); }
.category-card.industrial .category-icon { color: var(--color-industry); background-color: rgba(16, 185, 129, 0.1); }

.category-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.category-card h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.category-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.category-links {
  list-style: none;
  width: 100%;
  margin-bottom: 32px;
}

.category-links li {
  margin-bottom: 12px;
}

.category-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.category-links a:hover {
  color: var(--text-primary);
  padding-left: 6px;
}

.category-links a::before {
  content: '→';
  color: var(--color-brand);
}
.category-card.automotive .category-links a::before { color: var(--color-auto); }
.category-card.baby .category-links a::before { color: var(--color-baby); }
.category-card.industrial .category-links a::before { color: var(--color-industry); }

/* Services (Hizmetler) styling */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.service-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px var(--glass-shadow);
  border-color: var(--color-brand);
}

/* Subpage Templates Styles */
.subpage-hero {
  padding: 160px 0 80px 0;
  background-image: linear-gradient(to right, rgba(8, 12, 20, 0.95) 45%, rgba(8, 12, 20, 0.4) 100%), url('../images/hero_background.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

/* Grid lines overlay for subpage headers */
.subpage-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.subpage-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.product-image-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 10px 30px var(--glass-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  backdrop-filter: blur(8px);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.spec-table th, .spec-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.spec-table th {
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
  width: 35%;
}

.spec-table tr:last-child th, .spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover {
  background-color: var(--bg-tertiary);
}

/* Machinery Park Grid */
.machinery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.machinery-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition-smooth);
}

.machinery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px var(--glass-shadow);
  border-color: var(--color-brand);
}

/* Blog layouts */
.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px var(--glass-shadow);
}

.blog-img-placeholder {
  height: 200px;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
}

.blog-card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.blog-card-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.sidebar-widget h3 {
  margin-bottom: 16px;
  border-bottom: 2px solid var(--color-brand);
  padding-bottom: 8px;
  display: inline-block;
}

.search-form {
  display: flex;
  gap: 8px;
}

.form-input {
  flex-grow: 1;
  padding: 12px 18px;
  border: 1px solid var(--glass-border);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-brand);
}

/* Contact forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  display: flex;
  gap: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-brand-glow);
  color: var(--color-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-form {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 30px var(--glass-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px 16px;
  border: 1px solid var(--glass-border);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
  resize: vertical;
}

.form-textarea:focus {
  border-color: var(--color-brand);
}

/* Admin Dashboard layout */
.admin-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  padding-top: var(--header-height);
  background-color: var(--bg-secondary);
}

.admin-sidebar {
  border-right: 1px solid var(--glass-border);
  padding: 32px 24px;
  background-color: var(--bg-primary);
}

.admin-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-menu-item button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.admin-menu-item.active button, .admin-menu-item button:hover {
  background-color: var(--bg-tertiary);
  color: var(--color-brand);
}

.admin-menu-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.admin-content {
  padding: 40px;
  overflow-y: auto;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th, .admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
  font-weight: 600;
  background-color: var(--bg-secondary);
}

/* Footer Section */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-family-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.footer-links-title {
  font-family: var(--font-family-title);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--color-brand);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .category-grid, .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .slide-content h2 {
    font-size: 3rem;
  }
  .header-top-bar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .btn-mobile-menu {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-primary) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    flex-direction: column;
    padding: 40px;
    align-items: flex-start;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 10px 25px var(--glass-shadow);
    z-index: 99999;
    /* Clear text rendering & force hardware acceleration */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translate3d(0, 0, 0);
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links .dropdown {
    width: 100%;
  }
  .dropdown:hover .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
  }
  .nav-links .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding-left: 20px !important;
    width: 100% !important;
    display: none;
    transition: none !important;
  }
  .nav-links .dropdown:hover .dropdown-menu,
  .nav-links .dropdown.active .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .nav-links .dropdown-item a {
    padding: 8px 0;
  }
  .header-top-bar {
    display: none !important;
  }
  
  .slide-content h2 {
    font-size: 2.2rem !important;
    line-height: 1.3;
  }
  .slide-content p {
    font-size: 1rem !important;
    margin-bottom: 20px;
  }
  
  .section-padding {
    padding: 60px 0 !important;
  }
  .section-title h2 {
    font-size: 2rem !important;
  }
  
  /* Kurumsal history section grid styling on mobile */
  .section-padding .container[style*="display:grid"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  
  /* Machine park table responsive */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Blog list cards responsive */
  .blog-card {
    flex-direction: column !important;
  }
  .blog-card img {
    height: 180px !important;
  }
  .category-grid, .services-grid, .footer-grid, .contact-grid, .subpage-grid, .blog-layout, .blog-grid, .admin-container, .home-blog-grid, .home-about-grid {
    grid-template-columns: 1fr !important;
  }
  .home-blog-grid .gallery-card {
    width: 100% !important;
  }
  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .slider-arrow {
    display: none;
  }
}

/* --- Interactive Production Timeline (Process Flow) --- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
  position: relative;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Connectors between steps (only visible on desktop) */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 90px; /* Aligns with the middle of the image circle */
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--color-brand) 0%, 
    var(--color-baby) 33%, 
    var(--color-industry) 66%, 
    var(--color-brand) 100%
  );
  opacity: 0.25;
  z-index: 1;
}

.process-connector-pulse {
  position: absolute;
  top: 90px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-brand), transparent);
  background-size: 200% 100%;
  animation: pulse-line 3s linear infinite;
  z-index: 1;
  opacity: 0.7;
  pointer-events: none;
}

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

.process-image-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: var(--transition-smooth);
  cursor: pointer;
  margin-bottom: 24px;
  z-index: 3;
}

.process-image-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
}

.process-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  filter: grayscale(20%) contrast(110%);
}

.process-step-num {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--color-brand);
  color: var(--text-primary);
  font-family: var(--font-family-title);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--color-brand-glow);
  transition: var(--transition-smooth);
  z-index: 4;
}

.process-info {
  padding: 0 16px;
}

.process-info h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  transition: var(--transition-smooth);
  font-family: var(--font-family-title);
}

.process-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Hover effects */
.process-step:hover .process-image-wrapper {
  transform: translateY(-8px);
  border-color: var(--color-brand);
  box-shadow: 0 15px 45px var(--color-brand-glow);
}

.process-step:hover .process-image-inner {
  border-color: var(--color-brand);
}

.process-step:hover .process-image-inner img {
  transform: scale(1.15) rotate(2deg);
  filter: grayscale(0%) contrast(115%);
}

.process-step:hover .process-step-num {
  background: var(--color-brand);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--color-brand);
}

.process-step:hover .process-info h3 {
  color: var(--color-brand);
}

/* Step-specific theme accent changes */
.process-step:nth-child(2) .process-step-num { border-color: var(--color-baby); box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35); }
.process-step:nth-child(2):hover .process-image-wrapper { border-color: var(--color-baby); box-shadow: 0 15px 45px rgba(6, 182, 212, 0.35); }
.process-step:nth-child(2):hover .process-image-inner { border-color: var(--color-baby); }
.process-step:nth-child(2):hover .process-step-num { background: var(--color-baby); box-shadow: 0 0 20px var(--color-baby); }
.process-step:nth-child(2):hover .process-info h3 { color: var(--color-baby); }

.process-step:nth-child(3) .process-step-num { border-color: var(--color-industry); box-shadow: 0 4px 12px rgba(16, 115, 81, 0.35); }
.process-step:nth-child(3):hover .process-image-wrapper { border-color: var(--color-industry); box-shadow: 0 15px 45px rgba(16, 115, 81, 0.35); }
.process-step:nth-child(3):hover .process-image-inner { border-color: var(--color-industry); }
.process-step:nth-child(3):hover .process-step-num { background: var(--color-industry); box-shadow: 0 0 20px var(--color-industry); }
.process-step:nth-child(3):hover .process-info h3 { color: var(--color-industry); }

.process-step:nth-child(4) .process-step-num { border-color: var(--color-auto); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35); }
.process-step:nth-child(4):hover .process-image-wrapper { border-color: var(--color-auto); box-shadow: 0 15px 45px rgba(239, 68, 68, 0.35); }
.process-step:nth-child(4):hover .process-image-inner { border-color: var(--color-auto); }
.process-step:nth-child(4):hover .process-step-num { background: var(--color-auto); box-shadow: 0 0 20px var(--color-auto); }
.process-step:nth-child(4):hover .process-info h3 { color: var(--color-auto); }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .process-timeline::before, .process-connector-pulse {
    display: none; /* Hide connector lines on multi-row layout */
  }
}

@media (max-width: 600px) {
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Gallery Card Hover Effects */
.gallery-card {
  transition: var(--transition-smooth);
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-brand) !important;
  box-shadow: 0 12px 30px var(--color-brand-glow) !important;
}

.gallery-card img {
  transition: var(--transition-smooth);
}

.gallery-card:hover img {
  filter: contrast(110%);
}

/* --- Interactive Automotive Catalog Gallery --- */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-family-title);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--color-auto);
  color: #fff;
  border-color: var(--color-auto);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.catalog-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 4px 20px var(--glass-shadow);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.catalog-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-auto);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.2);
}

.catalog-img-wrapper {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #151e33;
  border: 1px solid var(--glass-border);
  margin-bottom: 16px;
}

.catalog-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
  padding: 8px;
}

.catalog-card:hover .catalog-img-wrapper img {
  transform: scale(1.08);
}

.catalog-info h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-family: var(--font-family-title);
}

.catalog-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-auto);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

/* Hide Google Translate UI Top Banner */
body {
  top: 0 !important;
}
.skiptranslate, iframe.skiptranslate {
  display: none !important;
}
#goog-gt-tt {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}
#google_translate_element {
  display: none !important;
}



