/* SAMCO Corporate Portfolio - Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #107fc9;
  --color-primary-dark: #0b5c92;
  --color-primary-light: #38bdf8;
  --color-primary-soft: rgba(16, 127, 201, 0.08);
  --color-navy: #091e3a;
  --color-slate: #0f172a;
  --color-emerald: #0d9488;
  --color-surface: #ffffff;
  --color-surface-soft: #f8fafc;
  --color-surface-card: rgba(255, 255, 255, 0.92);
  --border-light: rgba(226, 232, 240, 0.9);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-subtle: 0 4px 20px -2px rgba(16, 127, 201, 0.06);
  --shadow-hover: 0 20px 35px -8px rgba(16, 127, 201, 0.16);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
}

/* Base styling */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #f8fafc;
  color: #1e293b;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  transition: background-color 0.3s ease;
}

[dir="rtl"] body,
[lang="ar"] body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .font-heading,
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4, [lang="ar"] .font-heading {
  font-family: 'Cairo', sans-serif;
  letter-spacing: normal;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.glass-card-dark {
  background: rgba(9, 30, 58, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-card-hover {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(16, 127, 201, 0.35);
}

/* Gradients */
.gradient-primary {
  background: linear-gradient(135deg, #107fc9 0%, #0284c7 50%, #0369a1 100%);
}

.gradient-hero {
  background: radial-gradient(80% 80% at 50% 0%, rgba(16, 127, 201, 0.12) 0%, rgba(248, 250, 252, 0) 100%), #f8fafc;
}

.gradient-dark-hero {
  background: radial-gradient(circle at 80% 20%, rgba(16, 127, 201, 0.35) 0%, rgba(9, 30, 58, 0.98) 70%), #091e3a;
}

.gradient-text {
  background: linear-gradient(135deg, #107fc9 0%, #0284c7 60%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Glow Badges */
.badge-pulse {
  position: relative;
}
.badge-pulse::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  background: #107fc9;
  opacity: 0.3;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #107fc9;
}

/* Drawer transitions */
.drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .drawer-content {
  transform: translateX(-100%);
}

.drawer-content.active {
  transform: translateX(0) !important;
}

/* Partner Logo styling */
.partner-logo-item {
  transition: all 0.35s ease;
  filter: grayscale(100%) opacity(0.7);
}

.partner-logo-item:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

/* Floating animation */
@keyframes float-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float-subtle 4s ease-in-out infinite;
}

/* Tab Active Styles */
.tab-btn.active {
  background-color: #107fc9;
  color: #ffffff;
  border-color: #107fc9;
  box-shadow: 0 4px 14px rgba(16, 127, 201, 0.3);
}

/* RTL Helpers */
[dir="rtl"] .rtl-flip {
  transform: scaleX(-1);
}

/* Custom Checkmark */
.drawer-backdrop:not(.active) { visibility: hidden; }
[dir="rtl"] .drawer-content { right: auto; left: 0; }
.local-form-note { padding: 12px; background: #eff6ff; color: #075985; border: 1px solid #bae6fd; border-radius: 10px; font-size: 13px; line-height: 1.8; }
:focus-visible { outline: 3px solid #0284c7; outline-offset: 3px; }
@media (hover: none) { button[onclick^="openQuickView"] { opacity: 1 !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.custom-checkbox:checked {
  background-color: #107fc9;
  border-color: #107fc9;
}
