/* ==========================================================================
   ACUN MAKİNA - Corporate Design System & Style Guide
   Theme: Industrial Blue & Neutral #F1F1F1
   Author: Antigravity AI
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Design Tokens --- */
:root {
  /* Color Palette - Blue & Neutral #F1F1F1 */
  --primary-blue: #1565C0;       /* Core Industrial Blue */
  --primary-blue-dark: #0D47A1;  /* Deep Navy Blue */
  --primary-blue-light: #1E88E5; /* Bright Electric Blue */
  --accent-gold: #F59E0B;        /* High-Visibility Accent */
  --accent-cyan: #0EA5E9;        /* Tech Highlight */
  
  --bg-neutral: #F1F1F1;         /* Mandatory Neutral Light Background */
  --bg-surface: #FFFFFF;         /* Card & Container Background */
  --bg-dark: #0F172A;            /* Contrast Section Background */
  --bg-dark-surface: #1E293B;    /* Contrast Card Surface */

  --text-main: #1E293B;          /* Primary Body Text */
  --text-muted: #64748B;         /* Secondary Text */
  --text-light: #F8FAFC;         /* Text on Dark */

  --border-light: #E2E8F0;
  --border-blue: rgba(21, 101, 192, 0.2);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* 8px Spacing Scale (Skill Requirement) */
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 16px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 32px -8px rgba(15, 23, 42, 0.12);
  --shadow-blue: 0 10px 30px -5px rgba(21, 101, 192, 0.25);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-neutral);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--space-24);
  padding-right: var(--space-24);
}

/* --- Top Info Bar --- */
.top-bar {
  background-color: var(--bg-dark);
  color: #94A3B8;
  font-size: 0.875rem;
  padding: var(--space-8) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-16);
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  color: #E2E8F0;
  font-weight: 500;
}

.top-bar-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary-blue-light);
}

/* --- Navbar (Single Line & Spacious - User Rule) --- */
.navbar-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.navbar-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

.navbar-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  text-decoration: none;
}

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

.brand-logo-fallback {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary-blue-dark);
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Single Line Navbar Navigation - Wide Spacing */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-32); /* Spacious, non-cramped requirement */
  list-style: none;
}

.nav-link {
  white-space: nowrap; /* Single Line Text requirement */
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary-blue);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
  background-color: rgba(21, 101, 192, 0.05);
}

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

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

/* --- 14 Languages Switcher Dropdown --- */
.lang-switcher-container {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-light);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + var(--space-8));
  right: 0;
  width: 220px;
  max-height: 340px;
  overflow-y: auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
  display: none;
  z-index: 1100;
  scroll-behavior: smooth;
}

.lang-dropdown.show {
  display: block;
  animation: dropdownFade 0.25s ease-out;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lang-option:hover, .lang-option.active {
  background-color: rgba(21, 101, 192, 0.08);
  color: var(--primary-blue-dark);
  font-weight: 700;
}

.lang-flag {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

/* Mobile Toggle */
.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-main);
  cursor: pointer;
}

/* --- Buttons System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: var(--space-16) var(--space-32);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #FFFFFF;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(21, 101, 192, 0.35);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--primary-blue-dark);
  border-color: var(--border-blue);
}

.btn-secondary:hover {
  background-color: rgba(21, 101, 192, 0.06);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-gold);
  color: #0F172A;
  font-weight: 800;
}

.btn-accent:hover {
  background-color: #E08E0B;
  transform: translateY(-2px);
}

.btn-sm {
  padding: var(--space-8) var(--space-16);
  font-size: 0.85rem;
}

.btn-lg {
  padding: var(--space-16) var(--space-48);
  font-size: 1.1rem;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0A2540 0%, #0D47A1 50%, #1565C0 100%);
  color: #FFFFFF;
  padding: var(--space-96) 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-64);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: var(--space-24);
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: var(--space-24);
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--accent-cyan);
  background: linear-gradient(90deg, #38BDF8, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #E2E8F0;
  margin-bottom: var(--space-32);
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

/* Hero Visual Card */
.hero-visual-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 0;
  backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
}

.hero-visual-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual-card:hover .hero-visual-img {
  transform: scale(1.03);
}

/* --- Section Headers --- */
.section-padding {
  padding: var(--space-96) 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-64) auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: var(--space-16);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* --- Precision Manufacturing Section --- */
.svg-section-manufacturing {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.manufacturing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: center;
}

.svg-canvas-box {
  background: #0F172A;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
}

.tech-visual-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.svg-canvas-box:hover .tech-visual-img {
  transform: scale(1.03);
}

.svg-canvas-box svg {
  width: 100%;
  height: auto;
}

/* Animated SVG Elements */
.gear-spin {
  transform-origin: center;
  animation: spinGear 20s linear infinite;
}

.gear-spin-reverse {
  transform-origin: center;
  animation: spinGearRev 15s linear infinite;
}

@keyframes spinGear {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinGearRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.laser-pulse {
  animation: laserBeam 2.5s ease-in-out infinite;
}

@keyframes laserBeam {
  0%, 100% { opacity: 0.3; stroke-width: 2; }
  50% { opacity: 1; stroke-width: 5; filter: drop-shadow(0 0 8px #0EA5E9); }
}

.chip-glow {
  animation: chipPulse 3s ease-in-out infinite;
}

@keyframes chipPulse {
  0%, 100% { fill: #1D61AD; }
  50% { fill: #0EA5E9; }
}

/* --- Interactive SVG Section 2: Blueprint & Quality Standards --- */
.svg-section-blueprint {
  background-color: var(--bg-neutral);
}

.blueprint-card {
  background: linear-gradient(145deg, #0A192F 0%, #0F2B48 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-48);
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.blueprint-svg {
  width: 100%;
  height: 280px;
}

.flow-line {
  stroke-dasharray: 12;
  animation: dashFlow 20s linear infinite;
}

@keyframes dashFlow {
  to { stroke-dashoffset: -240; }
}

/* --- Interactive SVG Section 3: Global Export Network --- */
.svg-section-export {
  background: #0F172A;
  color: #FFFFFF;
}

.svg-section-export .section-title {
  color: #FFFFFF;
}

.network-svg {
  width: 100%;
  max-height: 420px;
}

.ping-node {
  transform-origin: center;
  animation: pingAnimation 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingAnimation {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* --- Product Cards Grid & Category Tabs (User Request Fix) --- */
.products-section {
  background-color: var(--bg-neutral);
}

/* Category Filter Tabs Bar - Generous Spacing & Margin */
.filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-16); /* Explicit spacing between tabs */
  margin-bottom: var(--space-48);
  padding: var(--space-8);
}

.filter-btn {
  background-color: var(--bg-surface);
  color: var(--text-muted);
  border: 1.5px solid var(--border-light);
  padding: 12px 24px; /* Generous tab padding */
  margin: 4px; /* Margin to ensure tabs never touch */
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-blue);
  color: #FFFFFF;
  border-color: var(--primary-blue);
  box-shadow: 0 6px 16px -2px rgba(21, 101, 192, 0.3);
  transform: translateY(-1px);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-32);
}

.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-blue);
}

.product-img-wrapper {
  position: relative;
  height: 230px;
  background-color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-24);
}

.product-img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

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

.product-badge {
  position: absolute;
  top: var(--space-16);
  left: var(--space-16);
  background: var(--primary-blue-dark);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px var(--space-16);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Product Content - Spacious Padding & Text Area (User Request Fix) */
.product-content {
  padding: var(--space-32); /* Increased from 24px to 32px for wide, generous breathing room */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-12);
  line-height: 1.35;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--space-24);
  line-height: 1.65;
  flex-grow: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-20);
  gap: var(--space-12);
}

/* --- Features / Stats Counter --- */
.stats-section {
  background-color: var(--primary-blue-dark);
  color: #FFFFFF;
  padding: var(--space-64) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-32);
  text-align: center;
}

.stat-item {
  padding: var(--space-16);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: var(--space-8);
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: #E2E8F0;
}

/* --- Order Form & Contact Form Styling --- */
.form-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-48);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: var(--space-16);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #FAFAFA;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* --- Footer --- */
.footer-main {
  background-color: var(--bg-dark);
  color: #94A3B8;
  padding-top: var(--space-96);
  padding-bottom: var(--space-32);
  border-top: 4px solid var(--primary-blue);
}

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

.footer-brand .brand-title {
  color: #FFFFFF;
}

.footer-desc {
  margin-top: var(--space-16);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-24);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
  font-size: 0.9rem;
  color: #CBD5E1;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary-blue-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: var(--space-32);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-16);
  font-size: 0.85rem;
}

/* --- Modal Dialog --- */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-32);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-bounce);
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: var(--space-24);
  right: var(--space-24);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* --- Micro Animations & AOS Enhancements --- */
[data-aos] {
  transition-duration: 0.8s !important;
}

/* Floating Action Button (WhatsApp Quick Action) */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 990;
  transition: all var(--transition-bounce);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid, .manufacturing-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    flex-direction: column;
    padding: var(--space-32);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-menu.show {
    display: flex;
  }

  .mobile-toggle-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* RTL Support (Arabic & Persian) */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 32px;
}
