/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fallback for links to prevent underlining */
a {
  text-decoration: none;
}

/* Container (used for header nav) */
.container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Content Container (used for body sections) */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hide the default floating reCAPTCHA badge */
.grecaptcha-badge {
  display: none !important;
}

/* Style the custom reCAPTCHA badge in the footer */
.recaptcha-badge {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}

.recaptcha-badge a {
  color: #666;
  text-decoration: underline;
}

.recaptcha-badge a:hover {
  color: #999;
}

.recaptcha-badge p {
  margin: 0.5rem 0 0;
}

/* Global Typography */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #e5e7eb;
  background-color: #111827;
}

h1, h2, h3 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

/* Header */
header {
  background: #1f2937;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

header.hidden {
  transform: translateY(-100%);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #e5e7eb;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.hamburger:focus {
  outline: 2px solid #26A69A;
  outline-offset: 2px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-left, .nav-right {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  flex: 1;
  justify-content: center;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-right-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s;
}

nav a:hover, .hover\:text-gold-500:hover {
  color: #FFD700;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #FFD700;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: #FFD700;
  font-weight: 600;
}

nav a.active::after {
  width: 100%;
}

nav a:focus {
  outline: 2px solid #26A69A;
  outline-offset: 2px;
}

.logo {
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo a {
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Times New Roman', Times, serif;
  transition: transform 0.3s, letter-spacing 0.3s;
}

.logo a:hover {
  transform: scale(1.05);
  letter-spacing: 3px;
}

.logo-somi {
  color: #e5e7eb;
  transition: color 0.3s;
}

.logo-trac {
  color: #FFD700;
  transition: color 0.3s;
}

.logo a:hover .logo-somi,
.logo a:hover .logo-trac {
  color: #B88B14;
}

/* Language Toggle Switch */
.language-toggle {
  margin-left: 1.5rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 36px;
  border: 1px solid #FFD700;
  border-radius: 36px;
  transition: border-color 0.3s;
}

.switch:hover {
  border-color: #B88B14;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch input:focus + .slider {
  outline: 2px solid #26A69A;
  outline-offset: 2px;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #4b5563;
  transition: 0.4s;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 28px;
  width: 28px;
  left: 4px;
  bottom: 4px;
  background-color: #e5e7eb;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #FFD700;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.lang-label {
  font-size: 0.9rem;
  color: #e5e7eb;
  font-weight: 500;
}

.lang-fr {
  margin-left: 5px;
}

.lang-en {
  margin-right: 5px;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100%;
  background: #1f2937;
  z-index: 100;
  transition: right 0.3s ease;
}

.mobile-nav.active {
  display: block; /* Ensure it displays */
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  padding: 4rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-links li {
  text-align: center;
}

.mobile-nav-links a {
  color: #e5e7eb;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-nav-links a:hover {
  color: #FFD700;
}

.mobile-language-toggle {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #FFD700;
  color: #111827;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: #B88B14;
}

#back-to-top:focus {
  outline: 2px solid #26A69A;
  outline-offset: 2px;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url('../assets/hero-bg.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Button */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: #FFD700;
  color: #111827;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
}

.btn:hover {
  background: #B88B14;
  transform: scale(1.05);
}

.btn:focus {
  outline: 2px solid #26A69A;
  outline-offset: 2px;
}

.btn.pulse {
  animation: pulse 2s infinite;
}

.btn.secondary {
  background: #26A69A;
}

.btn.secondary:hover {
  background: #1E7E74;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Separator Section */
.separator {
  background-color: rgba(229, 231, 235, 0.05);
  padding: 1.5rem 0;
  text-align: center;
}

.separator-title {
  font-size: 2rem;
  font-weight: 700;
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section p {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.section .lead {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.section .highlight {
  font-size: 1.15rem;
  color: #FFD700;
  font-weight: 500;
  font-style: italic;
  background: rgba(255, 215, 0, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.section-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Expertise Items */
.expertise-item {
  margin-bottom: 1.5rem;
}

.expertise-item h3 {
  font-size: 1.25rem;
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.expertise-item p {
  margin-bottom: 0;
}

/* Testimonials Section */
.testimonials {
  background: #111827;
  padding: 4rem 0;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-item {
  text-align: center;
}

.quote {
  font-size: 1.2rem;
  font-style: italic;
  color: #e5e7eb;
  margin-bottom: 1rem;
}

.author {
  font-size: 1rem;
  color: #FFD700;
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  background: #1f2937;
  color: #e5e7eb;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid #26A69A;
  outline-offset: 2px;
}

.form-group textarea {
  resize: vertical;
}

.form-message {
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
    padding: 0.5rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
}

.modal-content {
  background: #1f2937;
  margin: 15% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5rem;
  color: #e5e7eb;
  cursor: pointer;
}

.close-modal:hover {
  color: #FFD700;
}

.close-modal:focus {
  outline: 2px solid #26A69A;
  outline-offset: 2px;
}

#modal-message {
  font-size: 1.2rem;
  color: #e5e7eb;
}

/* Footer */
.footer {
  background: #1f2937;
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer a {
  color: #FFD700;
  text-decoration: none;
}

.footer a:hover {
  color: #B88B14;
}

.footer a:focus {
  outline: 2px solid #26A69A;
  outline-offset: 2px;
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  margin: 0 0.5rem;
  font-size: 1.5rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.15rem;
  }
}

@media (max-width: 1000px) {
  .hero {
    height: 90vh;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  /* Hide desktop navigation */
  .desktop-nav {
    display: none;
  }

  /* Show hamburger button */
  .hamburger {
    display: block;
  }

  /* Adjust logo */
  .logo {
    position: static;
    transform: none;
    flex: 1;
    text-align: center;
  }

  .logo a {
    font-size: 1.5rem;
  }

  .section-image {
    margin-bottom: 1.5rem;
  }

  .separator-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 80vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .container {
    padding: 0 15px;
  }

  .logo a {
    font-size: 1.25rem;
  }

  .separator-title {
    font-size: 1.2rem;
  }
}