/* ========================================
   PREMIUM MODERN DESIGN - ALTAIF
   Glassmorphism + Gradients + 3D Animations + Bootstrap 5 + AOS Scroll
   ======================================== */

/* Bootstrap 5 Overrides - Preserve Original Colors */
:root {
  /* ALTAIF Brand Colors */
  --brand-primary-rgb: 44, 49, 138;
  --brand-secondary-rgb: 190, 31, 47;
  --brand-neutral-rgb: 82, 82, 82;
  --primary-gradient: linear-gradient(135deg, #2c318a 0%, #6a2e78 52%, #be1f2f 100%);
  --secondary-gradient: linear-gradient(135deg, #2c318a 0%, #be1f2f 100%);
  --accent-gradient: linear-gradient(135deg, #525252 0%, #2c318a 100%);
  --success-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --glass-gradient: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  
  --primary: #2c318a;
  --secondary: #be1f2f;
  --accent: #525252;
  --success: #059669;
  --warning: #b45309;
  --danger: #dc2626;
  
  /* Bootstrap Variable Overrides */
  --bs-primary: var(--primary);
  --bs-primary-rgb: var(--brand-primary-rgb);
  --bs-secondary: var(--secondary);
  --bs-secondary-rgb: var(--brand-secondary-rgb);
  --bs-success: var(--success);
  --bs-info: var(--accent);
  --bs-warning: #f59e0b;
  --bs-danger: var(--danger);
  
  /* Gradients for Bootstrap */
  --bs-gradient: var(--primary-gradient);
  
  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  /* Backgrounds */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef4ff;
  --bg-glass: rgba(255, 255, 255, 0.25);
  --bg-dark-primary: #0f0f23;
  --surface-card: rgba(255, 255, 255, 0.82);
  --border-subtle: rgba(148, 163, 184, 0.24);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
  --glass-backdrop: blur(20px);
  
  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-xl: 0 25px 50px rgba(0,0,0,0.2);
  --neon-glow: 0 0 20px rgba(var(--brand-primary-rgb), 0.28);
  
  /* Borders & Radius - Match Bootstrap */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-fast: all 0.25s ease-out;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --section-spacing: 32px;
}

/* Bootstrap Navbar Glass Effect */
.navbar-glass {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.navbar-glass.scrolled {
  box-shadow: var(--shadow-lg) !important;
}
.navbar-brand.logo {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  background: var(--primary-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.navbar-nav .nav-link {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background: rgba(var(--brand-primary-rgb), 0.1) !important;
  border-radius: var(--radius-sm) !important;
}
.navbar-toggler {
  border-color: rgba(15, 23, 42, 0.15) !important;
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(var(--brand-primary-rgb), 0.2) !important;
}
.navbar-toggler-icon {
  background-image: linear-gradient(var(--text-primary), var(--text-primary)),
    linear-gradient(var(--text-primary), var(--text-primary)),
    linear-gradient(var(--text-primary), var(--text-primary)) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 2px !important;
  background-position: center 0.3rem, center center, center calc(100% - 0.3rem) !important;
}

/* Custom Buttons with Bootstrap */
.btn-custom-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: var(--primary-gradient) !important;
  border: none !important;
  color: white !important;
  border-radius: var(--radius-full) !important;
  text-decoration: none !important;
  box-shadow: var(--shadow-md) !important;
}
.btn-custom-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--neon-glow) !important;
}

/* Glass Cards */
.card-glass {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-md) !important;
}
.card-glass:hover {
  transform: translateY(-10px) !important;
  box-shadow: var(--shadow-xl) !important;
}

/* Container Override */
.container {
  --bs-gutter-x: 2rem;
}

/* Dark Mode */
[data-theme='dark'] {
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --glass-bg: rgba(30, 41, 59, 0.4);
}

/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: 'Poppins', -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top, rgba(var(--brand-primary-rgb), 0.14), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(var(--brand-secondary-rgb), 0.08), transparent 20%),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
  overflow-x: hidden;
}
main.pt-5 {
  /* padding-top: 5.5rem !important; */
}
p {
  color: var(--text-secondary);
}
a {
  color: var(--primary);
}
a:hover {
  color: #24286f;
}
.phone-value {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  text-align: left;
}
input[type='tel'] {
  direction: ltr;
  text-align: left;
}
small,
.small,
.text-muted {
  color: var(--text-muted) !important;
}
label,
strong,
blockquote,
th,
td {
  color: var(--text-primary);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 992px) {
  .site-page .container {
    max-width: 1320px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-content {
    max-width: 42rem;
  }

  .hero-page .hero-content {
    max-width: 36rem;
  }
}

@media (min-width: 1400px) {
  .site-page .container {
    max-width: 1320px;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

/* ========================================
   HEADER - Glass Sticky Navbar
   ======================================== */
header {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
header.scrolled { box-shadow: var(--shadow-lg); }

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 2rem;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}
nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
  transition: var(--transition-fast);
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition);
}
nav a:hover::after,
nav a.active::after { width: 100%; }
nav a:hover { color: var(--primary); transform: translateY(-2px); }

.language-switcher,
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.language-switcher {
  gap: 0.5rem;
}
.language-switcher .lang-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(29, 78, 216, 0.12);
  background: rgba(255, 255, 255, 0.72);
  padding: 0 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.language-switcher .lang-toggle i {
  font-size: 0.95rem;
  color: var(--primary);
}
.language-switcher .lang-toggle:hover {
  background: rgba(239, 246, 255, 0.95) !important;
  border-color: rgba(29, 78, 216, 0.24);
  transform: translateY(-1px);
}
.theme-toggle {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: var(--transition);
}
.theme-toggle:hover {
  transform: scale(1.1) rotate(180deg);
  box-shadow: var(--neon-glow);
}

/* Mobile Menu */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }
  .navbar-nav {
    gap: 0.5rem;
  }
}

/* ========================================
   HERO SLIDER - Full-Screen Animated
   ======================================== */
.hero {
  position: relative;
  min-height: 42rem;
  height: min(88vh, 56rem);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.hero-page {
  position: relative;
  min-height: 24rem;
  height: auto;
  padding: 7.5rem 1.5rem 4rem;
  background-color: #1e3a8a;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.66), rgba(37, 99, 235, 0.42));
}
.hero-page > * {
  position: relative;
  z-index: 1;
}
.hero-page-about {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.28), rgba(37, 99, 235, 0.14)),
    url('../images/hero-about-fallback.svg');
}
.hero-page-products {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.24), rgba(59, 130, 246, 0.18)),
    url('../images/hero-products-fallback.svg');
}
.hero-page-blog {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.34), rgba(14, 116, 144, 0.18)),
    url('../images/hero-blog-fallback.svg');
}
.hero-page-contact {
  background-image:
    linear-gradient(135deg, rgba(30, 41, 59, 0.3), rgba(124, 58, 237, 0.18)),
    /* url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80'), */
    /* url('../images/hero-contact-fallback.jpg'), */
    url('../images/hero-contact-fallback.svg');
}
.hero-page-clients {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.3), rgba(37, 99, 235, 0.18)),
    url('../images/hero-clients-fallback.svg');
}


.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
}
.hero-slide:nth-child(1) {
  background-image:
    linear-gradient(135deg, rgba(30, 58, 138, 0.35), rgba(59, 130, 246, 0.25)),
    url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=1920'),
    url('../images/hero-fallback.svg');
}
.hero-slide:nth-child(2) {
  background-image:
    linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(59, 130, 246, 0.25)),
    url('https://images.unsplash.com/photo-1558618047-3c8c76f0cafb?w=1920'),
    url('../images/hero-fallback.svg');
}
.hero-slide:nth-child(3) {
  background-image:
    linear-gradient(135deg, rgba(217, 119, 6, 0.32), rgba(59, 130, 246, 0.22)),
    url('https://images.unsplash.com/photo-1578926286530-b8f113524722?w=1920'),
    url('../images/hero-fallback.svg');
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 3;
  max-width: 46rem;
  padding: 2.5rem 2.75rem;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  animation: fadeInUp 1s ease-out;
}
.hero-slide .hero-content {
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  padding: 2rem 1.5rem;
}
.hero-content a:not(.btn) {
  color: white;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0.95;
}
.hero--light .hero-content {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
.hero--light .hero-content h1 {
  color: var(--text-primary);
  text-shadow: none;
}
.hero--light .hero-content p {
  color: var(--text-secondary);
}
.hero--light .hero-content a:not(.btn) {
  color: var(--primary);
}
.hero-page .hero-content {
  max-width: 40rem;
  padding: 2rem 1.5rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
}

/* Slider Navigation */
.hero-dots {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: white; transform: scale(1.5); }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.5rem;
}
.hero-arrow:hover { background: rgba(255,255,255,0.4); transform: translateY(-50%) scale(1.1); }
.hero-arrow.prev { left: 2rem; }
.hero-arrow.next { right: 2rem; }

/* ========================================
   BUTTONS - Premium Gradient Glow
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.6rem;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: 0;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}
.btn:hover::before { left: 100%; }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--neon-glow);
}

/* ========================================
   SECTIONS & GRIDS
   ======================================== */
section:not(.hero):not(.hero-page):not(.home-floor) { padding: var(--section-spacing) 0; }
section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-align: center;
  margin-bottom: 2.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-section h2,
.cta-section p,
.cta-section-home h2,
.cta-section-home p {
  color: white !important;
  background: none !important;
  -webkit-text-fill-color: white !important;
}
.cta-section p,
.cta-section-home p {
  opacity: 0.96;
}

.card-grid,
.testimonial-grid,
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Cards - Fixed Height Images + Hover Lift */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}
.card:hover img { transform: scale(1.1); }
.card-content {
  padding: 2rem;
}
.features-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.feature-card {
  text-align: center;
  padding: 2.25rem 2rem;
}
.feature-card .card-content {
  padding: 0;
}
.feature-card h3 {
  margin-bottom: 0.85rem;
}
.feature-card p {
  margin-bottom: 0;
}
.feature-card-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  margin: 0 auto 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.18);
  flex-shrink: 0;
}
.card-body {
  padding: 1.5rem;
}
.card-title,
.card-body h3,
.card-body h5 {
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}
.card-title a,
.card-body h3 a,
.card-body h5 a {
  color: var(--text-primary);
  text-decoration: none;
}
.card-title a:hover,
.card-body h3 a:hover,
.card-body h5 a:hover {
  color: var(--primary);
}
.card-text {
  color: var(--text-secondary);
}
.card-actions {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  margin-top: auto;
}
.card-actions .btn {
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
}
.btn-card-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(29, 78, 216, 0.18) !important;
  border-radius: var(--radius-full) !important;
  text-decoration: none !important;
  box-shadow: var(--shadow-sm) !important;
}
.btn-card-secondary:hover {
  transform: translateY(-2px);
  background: rgba(239, 246, 255, 0.98) !important;
  color: #1e40af !important;
  box-shadow: var(--shadow-md) !important;
}

/* Testimonials */
.testimonial-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--glass-backdrop);
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.testimonial-card p,
.testimonial-card blockquote,
.testimonial-card h4,
.testimonial-card h5,
.testimonial-card small {
  color: var(--text-primary);
}
.stars { color: #fbbf24; font-size: 1.5rem; }

/* Clients Logos */
.client-logo {
  background: rgba(255, 255, 255, 0.74);
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius);
  transition: var(--transition);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}
.client-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.client-logo h4,
.client-logo h5 {
  color: var(--text-primary);
}
.client-logo img {
  max-height: 70px;
  max-width: 120px;
  filter: grayscale(1);
  transition: var(--transition);
}
.client-logo:hover img { filter: grayscale(0); }

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 3rem 0;
}
.filter-tabs .btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.filter-tabs .btn.active,
.filter-tabs .btn:hover {
  background: var(--primary-gradient);
  color: white;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.12);
}

/* ========================================
   SCROLL ANIMATIONS (AOS-like)
   ======================================== */
.js-ready .fade-up,
.js-ready .fade-left,
.js-ready .fade-right,
.js-ready .stagger-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.js-ready .fade-left { transform: translateX(-50px); }
.js-ready .fade-right { transform: translateX(50px); }
.fade-up.animate,
.stagger-up.animate,
.fade-left.animate,
.fade-right.animate { opacity: 1; transform: translate(0, 0); }
.stagger-up:nth-child(odd).animate { transition-delay: 0.2s; }
.stagger-up:nth-child(even).animate { transition-delay: 0.4s; }

/* Section Waves (Optional) */
.section-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('data:image/svg+xml,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M321.39 56.44c58-10.79 114.16-30.13 172-41.86 82.39-16.72 168.19-17.73 250.45-.39C823.78 31 906.67 72 985.66 92.83c70.05 18.48 146.53 26.09 214.34 3V0H0v27.35a600.21 600.21 0 00321.39 29.09z" fill="%23f8fafc"/></svg>');
  background-size: cover;
}

/* ========================================
   RESPONSIVE - Mobile First
   ======================================== */
@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content { max-width: 100%; }
}

@media (max-width: 768px) {
  section:not(.hero):not(.hero-page):not(.home-floor) { padding: var(--section-spacing) 0; }
  .hero h1 { font-size: 2.5rem; }
  .hero {
    min-height: 34rem;
    height: auto;
  }
  .hero-page {
    min-height: 19rem;
    padding: 6.5rem 1rem 3rem;
  }
  .hero-content {
    padding: 2rem 1.25rem;
  }
  .hero-page .hero-content {
    padding: 1.5rem 1.25rem;
  }
  .card-grid,
  .testimonial-grid { grid-template-columns: 1fr; }
  .filter-tabs { flex-direction: column; align-items: center; }
  .filter-tabs .btn { width: min(100%, 24rem); justify-content: center; }
  .navbar .container { min-height: 70px; }
  .logo a { font-size: 1.5rem; }
  .hero-arrow { display: none; }
  .social-links { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .btn { padding: 1rem 2rem; font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card {
    padding: 2rem 1.5rem;
  }
  .card-actions {
    gap: 0.5rem;
  }
  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .card-actions .btn,
  .card-actions .btn-card-secondary {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 575px) {
  .container { padding: 0 0.875rem; }
  .hero { min-height: 30rem; padding: 1.25rem 0.875rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero p { font-size: 1rem; }
  .hero-content,
  .hero-page .hero-content { padding: 1.5rem 1rem; }
  .hero-dots { bottom: 1.5rem; gap: 0.55rem; }
  .card-content,
  .card-body,
  .client-logo { padding: 1.25rem; }
  footer { padding-top: 3rem; }
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 50px;
    height: 50px;
  }
  .back-to-top {
    right: 1rem;
    bottom: 4.4rem;
    width: 44px;
    height: 44px;
  }
}

/* RTL Support */
[dir='rtl'] .hero-arrow.prev { left: auto; right: 2rem; }
[dir='rtl'] .hero-arrow.next { right: auto; left: 2rem; }
[dir='rtl'] nav ul { right: 0; left: auto; }
[dir='rtl'] .navbar-nav.ms-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}

/* Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

footer {
  background: #0f172a;
  color: var(--text-light);
  padding: 4rem 0 0;
}
footer h4 {
  color: white;
  margin-bottom: 1rem;
}
footer p,
footer a {
  color: rgba(248, 250, 252, 0.88);
  text-decoration: none;
}
footer a:hover {
  color: white;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}
.copyright {
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  z-index: 1040;
}
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 5.75rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--primary-gradient);
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-md);
  z-index: 1040;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .card:hover,
  .client-logo:hover,
  .testimonial-card:hover,
  .btn:hover {
    transform: none !important;
  }
}
