/* Endif Teknoloji - Next-Gen Corporate Style */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --primary: #a8203e;
  --primary-hover: #8f1732;
  --secondary: #1a1c23;
}

html.dark, html.dark body {
  background-color: #14161c;
  color: #f1f5f9;
}

html:not(.dark), html:not(.dark) body {
  background-color: #f8fafc;
  color: #1e293b;
}

body {
  font-family: var(--font-sans);
}

/* Smooth transition ONLY during manual theme toggle, NOT on page navigation */
.theme-transition,
.theme-transition *,
.theme-transition *:before,
.theme-transition *:after {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
  transition-delay: 0s !important;
}

.font-mono-code {
  font-family: var(--font-mono);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .glass-panel {
  background: rgba(26, 28, 35, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Engineering Tech Grid */
.engineering-grid {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

.dark .engineering-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

/* Glow effects */
.glow-primary {
  box-shadow: 0 0 30px -5px rgba(168, 32, 62, 0.35);
}

.glow-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px rgba(168, 32, 62, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

::-webkit-scrollbar-thumb:hover {
  background: #e81c4c;
}
