/* ==========================================================================
   INTELLAN-STROY — Industrial Engineering & Construction Website
   Design System & Custom Styles
   ========================================================================== */

:root {
  --bg-dark: #090d16;
  --bg-surface: #0f172a;
  --bg-card: #141e33;
  --bg-card-hover: #1a2744;
  --accent-amber: #f59e0b;
  --accent-orange: #ea580c;
  --accent-glow: rgba(245, 158, 11, 0.18);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(245, 158, 11, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Base Smooth Scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Industrial Blueprint Grid Background */
.bg-blueprint-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-radial-gradient {
  background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.12) 0%, rgba(9, 13, 22, 0) 65%);
}

.bg-dot-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Glassmorphism Classes */
.glass-header {
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px var(--accent-glow);
}

/* Industrial Accent Border & Ribbons */
.border-l-accent {
  border-left: 4px solid var(--accent-amber);
}

/* Gradient Texts */
.text-gradient-amber {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-silver {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glow Pill Badges */
.badge-industrial {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  border-radius: 9999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulse-ring 2s infinite cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #f59e0b; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Buttons */
.btn-primary-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.4);
}

.btn-primary-amber:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -2px rgba(245, 158, 11, 0.6);
  color: #000000;
}

.btn-secondary-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-secondary-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Language Switcher Buttons */
.lang-btn {
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  color: var(--text-muted);
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: var(--accent-amber);
  color: #090d16;
  font-weight: 700;
}

/* Portfolio Filter Tabs */
.filter-tab {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-muted);
  transition: all 0.25s ease;
  cursor: pointer;
}

.filter-tab:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.filter-tab.active {
  background: var(--accent-amber);
  color: #090d16;
  border-color: var(--accent-amber);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

/* Work Process Step Connector */
.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -24px;
  width: 24px;
  height: 2px;
  background: linear-gradient(to right, var(--accent-amber), rgba(245, 158, 11, 0.2));
  z-index: 10;
}

@media (max-width: 1024px) {
  .step-connector::after {
    display: none;
  }
}

/* Modal Overlay & Animation */
.modal-overlay {
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content-box {
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Quick Action Floating Bar */
.floating-action-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-circle-btn:hover {
  transform: scale(1.1);
}
