/*
========================================
General Variables & Body
========================================
*/
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --secondary: #64748b;
  --light: #f8fafc;
  --dark: #0f172a;
  --text-dark: #1e293b;
  --text-light: #64748b;
}

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

body {
  background-color: var(--light);
  font-size: 0.9rem;
  padding-top: 55px;
  max-width: 100%;
  overflow-x: hidden;
}

/*
========================================
Navbar
========================================
*/
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary) !important;
}

.nav-link {
  font-weight: 500;
  color: #333 !important;
  transition: all 0.3s ease;
  margin: 0 10px;
  position: relative;
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

.lang-switch img {
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.lang-switch img:hover {
  transform: scale(1.1);
}

.lang-switch {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 992px) {
  .navbar .container {
    padding-right: 60px; /* Create space for absolutely positioned lang switch */
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    text-align: center;
    padding: 1rem 0;
  }
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }
  .navbar .lang-switch {
    position: static;
    transform: none;
    margin-top: 1rem;
    display: inline-block;
  }
}

/*
========================================
Hero & Page Sections
========================================
*/
.hero-section {
  background: linear-gradient(135deg, #f0f5ff 0%, #e0eaff 50%, #d5e3ff 100%);
  padding: 120px 0 80px;
  overflow: hidden;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(37, 99, 235, 0.1) 0%,
    transparent 70%
  );
}

.form-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8faff 0%, var(--primary-light) 100%);
}

.services-section {
  background: #fff;
}

/*
========================================
Forms & Buttons
========================================
*/
.form-control {
  padding: 12px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.btn-submit,
.cta-button {
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  color: white !important; /* Ensure text is white */
  padding: 12px 30px;
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-decoration: none; /* For .cta-button */
}

.btn-submit:hover,
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/*
========================================
Cards & Content Blocks
========================================
*/
.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.hover-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15) !important;
}

/*
========================================
Footer
========================================
*/
.footer {
  background: #1a365d;
}

/*
========================================
Typography & Decorative
========================================
*/
.title-highlight {
  position: relative;
  display: inline-block;
}

.title-highlight::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--primary);
  z-index: -1;
  opacity: 0.3;
}

.text-accent {
  color: var(--primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/*
========================================
Images & Decorations
========================================
*/
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.2);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.decoration-dots {
  position: absolute;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(var(--primary) 2px, transparent 2px);
  background-size: 15px 15px;
  opacity: 0.2;
  z-index: 0;
}

.dots-1 {
  top: 8%;
  right: 8%;
}
.dots-2 {
  bottom: 8%;
  left: 8%;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  background: linear-gradient(
    45deg,
    rgba(37, 99, 235, 0.1),
    rgba(37, 99, 235, 0.05)
  );
  border-radius: 50%;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -150px;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -100px;
}

#partenaires img {
  max-width: 150px;
  max-height: 100px;
  margin: auto;
  display: block;
  object-fit: contain;
}

/*
========================================
Responsive Overrides
========================================
*/

@media (min-width: 992px) {
  .navbar .container {
    padding-right: 60px; /* Create space for absolutely positioned lang switch */
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    text-align: center;
    padding: 1rem 0;
  }
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }
  .navbar .lang-switch {
    position: static;
    transform: none;
    margin-top: 1rem;
    display: inline-block;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
