:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0891b2;
  --accent: #0ea5e9;
  --dark: #0f172a;
  --light: #f8fafc;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
  --gradient-secondary: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.25);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
  color: #475569;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.gradient-text-secondary {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-glow);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-primary:active {
  transform: translateY(-1px) scale(1.01);
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline-primary:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-light {
  background: white;
  border: none;
  color: var(--primary);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.35s ease;
  box-shadow: var(--shadow);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-dark);
}

.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-body {
  padding: 2rem;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-secondary);
  opacity: 0.3;
  z-index: 1;
}

.pattern-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 10;
}

.hero-section h1 {
  color: white;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-section .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.8;
}

.hero-illustration-card {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

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

.animate-float-delayed {
  animation: float 6s ease-in-out 1.5s infinite;
}

.divider-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.divider-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.divider-wave .shape-fill {
  fill: var(--light);
}

section {
  padding: 5rem 0;
}

.py-section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .py-section {
    padding: 8rem 0;
  }
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: #64748b;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: var(--primary);
  border: 1px solid rgba(102, 126, 234, 0.2);
  margin-bottom: 1rem;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.2);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.2);
}

.feature-card {
  padding: 2.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow);
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow);
  position: relative;
  z-index: 2;
}

.step-card h4 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.step-card p {
  color: #64748b;
  margin: 0;
  font-size: 0.95rem;
}

.step-connector {
  position: absolute;
  top: 52px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.3;
  z-index: 1;
}

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

.service-card {
  padding: 2rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.7;
}

.industry-card {
  padding: 2rem;
  background: white;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  height: 100%;
  cursor: pointer;
  border: 2px solid transparent;
}

.industry-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.industry-card i {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: block;
}

.industry-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.industry-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.stats-section {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  color: white;
}

.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-secondary);
  opacity: 0.4;
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

.stat-counter {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.stat-counter i {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.testimonial-card {
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  height: 100%;
  position: relative;
}

.testimonial-card::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.1;
}

.testimonial-rating {
  color: var(--warning);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.testimonial-content {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-info h5 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.testimonial-info span {
  font-size: 0.85rem;
  color: #64748b;
}

.accordion-item {
  border: none;
  border-radius: var(--radius) !important;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion-button {
  padding: 1.5rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  background: white;
  border-radius: var(--radius) !important;
  color: var(--dark);
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: var(--gradient-primary);
  color: white;
  box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button:hover {
  background: rgba(102, 126, 234, 0.05);
}

.accordion-button:not(.collapsed):hover {
  background: var(--gradient-primary);
}

.accordion-body {
  padding: 1.5rem 1.75rem;
  color: #64748b;
  line-height: 1.8;
  font-size: 0.95rem;
  background: #fafbff;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.form-control,
.form-select,
.form-floating .form-control,
textarea {
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fafbff;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  background: white;
  outline: none;
}

.form-floating {
  position: relative;
}

.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  padding: 1.25rem 1.1rem 0.5rem;
}

.form-floating > label {
  padding: 1.25rem 1.1rem;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  color: var(--primary);
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-premium-card {
  padding: 3rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 1rem 0;
  background: transparent;
  transition: all 0.35s ease;
  border-bottom: 1px solid transparent;
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: white !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-scrolled .navbar-brand {
  color: var(--primary) !important;
}

.navbar-brand i {
  font-size: 1.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* White chip behind the logo so its navy wordmark stays readable over the
   dark hero gradient and the dark footer, instead of blending into them. */
.brand-logo-chip {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 6px 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.brand-logo-chip img {
  display: block;
  height: 46px;
  width: auto;
}

.navbar-brand:hover .brand-logo-chip {
  transform: scale(1.03);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95) !important;
  padding: 0.6rem 1.1rem !important;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-scrolled .navbar-nav .nav-link {
  color: var(--dark) !important;
}

.navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white !important;
}

.navbar-scrolled .navbar-nav .nav-link:hover {
  background: rgba(102, 126, 234, 0.08);
  color: var(--primary) !important;
}

.navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: white !important;
}

.navbar-scrolled .navbar-nav .nav-link.active {
  background: var(--gradient-primary);
  color: white !important;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  color: white;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-scrolled .navbar-toggler {
  color: var(--primary);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2.5' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23667eea' stroke-width='2.5' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  padding: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.navbar-scrolled .lang-switcher {
  background: rgba(102, 126, 234, 0.08);
}

.lang-switcher button {
  border: none;
  background: transparent;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.3s ease;
}

.navbar-scrolled .lang-switcher button {
  color: #64748b;
}

.lang-switcher button.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.navbar-scrolled .lang-switcher button.active {
  background: var(--gradient-primary);
  color: white;
}

.footer {
  background: var(--gradient-dark);
  color: #94a3b8;
  position: relative;
  padding-top: 5rem;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.footer h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.footer ul li a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-about p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
}

.social-icons a:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-info li i {
  color: var(--primary);
  margin-top: 3px;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: #64748b;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  z-index: 1040;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.back-to-top.visible {
  display: flex;
  animation: fadeInUp 0.4s ease;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--gradient-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  min-width: 320px;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toast-header {
  border: none;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.toast-success .toast-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.toast-error .toast-header {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.toast-body {
  padding: 1rem;
  background: white;
  color: var(--dark);
  font-size: 0.95rem;
}

.job-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.job-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.job-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #64748b;
}

.job-meta span i {
  color: var(--primary);
}

.job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.job-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.job-hero {
  background: var(--gradient-primary);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.job-hero h1 {
  color: white;
  margin-bottom: 1rem;
}

.job-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.search-filter-bar {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: -40px;
  position: relative;
  z-index: 10;
  margin-bottom: 3rem;
}

.pagination .page-link {
  border: none;
  color: #64748b;
  margin: 0 3px;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background: rgba(102, 126, 234, 0.08);
  color: var(--primary);
}

.pagination .page-item.active .page-link {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.job-details-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.job-details-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.job-details-card h3 {
  font-size: 1.15rem;
  margin: 2rem 0 1rem;
  color: var(--dark);
}

.job-details-card p,
.job-details-card ul,
.job-details-card ol {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.job-details-card ul,
.job-details-card ol {
  padding-left: 1.25rem;
}

.job-details-card li {
  margin-bottom: 0.5rem;
}

.job-sidebar-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}

.job-sidebar-card h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.contact-card {
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
}

.contact-card h3 {
  color: white;
  margin-bottom: 1rem;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.contact-card .contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-card .contact-info-item i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-card .contact-info-item h5 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-card .contact-info-item span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

/* Email/phone/WhatsApp links default to the site's blue link color, which is
   nearly invisible against this card's blue gradient background. Force a
   high-contrast white instead, with an underline so they still read as links. */
.contact-card .contact-info-item a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact-card .contact-info-item a:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.9);
}

.bg-soft {
  background: linear-gradient(180deg, #f0f3ff 0%, #fafbff 100%);
}

.bg-soft-alt {
  background: white;
}

.file-upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafbff;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.03);
}

.file-upload-area i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  opacity: 0.6;
}

.file-upload-area p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

.file-preview i {
  color: var(--primary);
  font-size: 1.25rem;
}

.file-preview .file-info {
  flex: 1;
}

.file-preview .file-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.file-preview .file-size {
  font-size: 0.8rem;
  color: #64748b;
}

.file-preview .remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  transition: all 0.2s ease;
}

.file-preview .remove-btn:hover {
  color: var(--danger);
}

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  padding: 1.25rem 2rem;
  z-index: 1060;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.cookie-consent a {
  color: var(--primary);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-xl);
  }

  .navbar-nav .nav-link {
    color: var(--dark) !important;
  }

  .navbar-nav .nav-link:hover {
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary) !important;
  }

  .lang-switcher {
    margin: 1rem 0;
    justify-content: center;
  }

  .lang-switcher button {
    color: #64748b;
  }

  .form-premium-card {
    padding: 1.75rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .toast-container {
    top: 90px;
    left: 15px;
    right: 15px;
  }

  .toast {
    min-width: auto;
    width: 100%;
  }

  .cookie-consent {
    padding: 1rem;
    text-align: center;
  }

  .cookie-consent,
  .cookie-actions {
    justify-content: center;
  }
}

[dir="rtl"] body {
  font-family: "Cairo", "Inter", sans-serif;
}

[dir="rtl"] .hero-section .hero-subtitle {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .footer ul li a:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .contact-info li {
  flex-direction: row-reverse;
}

[dir="rtl"] .testimonial-author {
  flex-direction: row-reverse;
}

[dir="rtl"] .testimonial-card::before {
  left: 1.5rem;
  right: auto;
}

[dir="rtl"] .lang-switcher button.active {
  font-family: "Cairo", sans-serif;
}

[dir="rtl"] .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

[dir="rtl"] .step-connector {
  right: auto;
  left: -50%;
  background: linear-gradient(-90deg, var(--primary), var(--secondary));
}

[dir="rtl"] .toast-container {
  right: auto;
  left: 20px;
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: 30px;
}

[dir="rtl"] .social-icons a:hover {
  transform: translateY(-3px);
}

[dir="rtl"] .job-card .btn {
  align-self: flex-start;
}

[dir="rtl"] .feature-card::before {
  transform-origin: right;
}
