:root {
  --primary-color: #8346D7;
  /* Violet */
  --accent-color: #C9B37E;
  /* Gold */
  --light-bg: #F5F5F5;
  /* Off-white (for navbar) */
  --dark-bg: #111827;
  /* Dark navy (main background) */
  --text-dark: #111827;
  /* Dark navy text */
  --text-light: #a0a0a0;
  /* Light gray text */
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 15px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.08);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}


/* Navigation - Light navbar on dark site */
.navbar {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-sm);
  background-color: #F8FAFC;
  /* Default background for all pages */
  z-index: 1030;
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
  /* Dark navy text */
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

.navbar-brand i {
  font-size: 1.5rem;
  margin-right: 0.5rem;
  color: var(--primary-color) !important;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem !important;
  font-weight: 500;
  color: var(--text-dark) !important;
  /* Dark navy */
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}

/* Hero Section – École de Formation Linguistique */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex !important;
  align-items: center !important;
  color: #1e293b;
  overflow: hidden;
  background-color: #F8FAFC;
  background-image: none !important;
}


.hero-content {
  max-width: 800px;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  text-shadow: none;
  animation: fadeInUp 0.8s ease-out;
  letter-spacing: -0.5px;
  color: #1e293b;
}

.hero-subtitle {
  font-size: 1.35rem;
  margin-bottom: 2.2rem;
  opacity: 0.95;
  font-weight: 400;
  color: #64748b;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  line-height: 1.6;
}

.hero-image-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 450px !important;
  position: relative !important;
  background: none !important;
}

#hero-main-image {
  position: relative !important;
  width: 550px !important;
  height: 400px !important;
  max-width: 100% !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5) !important;
  border: 10px solid rgba(255, 255, 255, 0.05) !important;
  background-image: url('../images/hero.webp') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #1a1a2e !important;
  transition: all 0.5s ease-in-out !important;
  animation: float 6s ease-in-out infinite !important;
  filter: none !important;
}

#hero-main-image:hover {
  transform: scale(1.03) rotate(2deg) !important;
  border-color: var(--primary-color) !important;
}


@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* CTA Buttons */
.hero-cta .btn {
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.hero-cta .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.hero-cta .btn-primary:hover {
  background-color: #6a3bb0;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.hero-cta .btn-outline-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-cta .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  border-color: white;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 5rem 0;
    min-height: auto;
    height: auto;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .hero-cta .btn:last-child {
    margin-bottom: 0;
  }
}

/* About Section */
.about-section {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 5rem 0;
}

.about-section .section-title {
  color: var(--white);
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.about-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
  /* Gold underline */
  border-radius: 3px;
}

.about-section .section-subtitle {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-image-container img {
  border-radius: 12px;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.about-image-container img:hover {
  transform: scale(1.02);
}

.about-features {
  list-style: none;
  padding-left: 0;
  color: var(--white);
}

.about-features li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.about-features i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Ensure buttons use your primary color */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.text-primary {
  color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 991.98px) {
  .about-section .section-title {
    font-size: 2rem;
  }

  .about-section .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .about-section {
    text-align: center;
  }

  .about-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-features li {
    text-align: left;
    display: flex;
    align-items: flex-start;
  }
}


/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: #6a3bb0;
  border-color: #6a3bb0;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}


/* ── Level Badge (Courses page) ── */
.level-badge {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

/* ── Language Cards (Courses page) ── */
.lang-card-v2 {
  display: flex;
  flex-direction: column;
  background: #1e293b;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  border: 1px solid rgba(131, 70, 215, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.lang-card-v2:hover {
  transform: translateY(-6px);
  border-color: rgba(131, 70, 215, 0.45);
  box-shadow: 0 22px 50px rgba(131, 70, 215, 0.22);
  color: inherit;
}

.lang-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.lang-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, 0.85) 100%);
}

.lang-card-v2:hover .lang-card-media {
  transform: scale(1.05);
}

.lang-card-flag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.45rem;
  line-height: 1;
}

.lang-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.lang-card-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.lang-card-desc {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lang-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: gap 0.25s ease;
}

.lang-card-cta [data-lucide],
.lang-card-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.lang-card-v2:hover .lang-card-cta {
  gap: 0.75rem;
}
.lang-card-v2:hover .lang-card-cta [data-lucide],
.lang-card-v2:hover .lang-card-cta svg {
  transform: translateX(2px);
}

@media (max-width: 576px) {
  .lang-card-media { aspect-ratio: 16 / 9; }
  .lang-card-body { padding: 1.25rem; }
  .lang-card-title { font-size: 1.2rem; }
}

/* ── Exams Page ── */
.exams-eyebrow {
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.exams-about-card {
  background: linear-gradient(180deg, #1e293b 0%, #111827 100%);
  border: 1px solid rgba(131, 70, 215, 0.18);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.exams-about-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #0f172a;
  border: 1px solid rgba(131, 70, 215, 0.18);
}

.exams-about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exams-about-image-fallback {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(131, 70, 215, 0.18), rgba(201, 179, 126, 0.10));
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
.exams-about-image-fallback [data-lucide],
.exams-about-image-fallback svg {
  width: 64px;
  height: 64px;
}

.exam-card {
  position: relative;
  background: #1e293b;
  border: 1px solid rgba(131, 70, 215, 0.15);
  border-radius: 18px;
  padding: 2rem 2rem 2rem 4.25rem;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.exam-card:hover {
  transform: translateY(-4px);
  border-color: rgba(131, 70, 215, 0.45);
  box-shadow: 0 12px 30px rgba(131, 70, 215, 0.15);
}

.exam-number {
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  width: 1.875rem;
  height: 1.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(131, 70, 215, 0.4);
}

.exam-title {
  color: #f8fafc;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.exam-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.exams-cta {
  background-color: var(--dark-bg);
}

.exams-cta-card {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, #6a3bb0 100%);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(131, 70, 215, 0.3);
}

.exams-cta-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 50%, rgba(255, 255, 255, 0.10), transparent 60%),
    radial-gradient(circle at 10% 110%, rgba(201, 179, 126, 0.18), transparent 55%);
  pointer-events: none;
}

.exams-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: #ffffff;
  color: var(--primary-color);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  text-decoration: none;
}

.exams-cta-btn:hover {
  background: #f8fafc;
  color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .exams-about-card {
    padding: 2rem 1.5rem;
  }
  .exam-card {
    padding: 1.75rem 1.5rem 1.75rem 3.75rem;
  }
  .exam-number {
    top: 1.5rem;
    left: 1.25rem;
  }
  .exams-cta-card {
    padding: 2.5rem 1.75rem;
  }
}

/* ── Site Footer (OBB-style) ── */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: none;
  padding: 0;
}

.site-footer .footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.site-footer .footer-logo-link {
  text-decoration: none;
  display: inline-block;
}

.site-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0.875rem;
}
.site-footer .footer-logo-icon {
  font-size: 1.4rem;
  color: var(--primary-color);
}
.site-footer .footer-logo-text { color: #fff; }
.site-footer .footer-logo-dot { color: var(--primary-color); }

.site-footer .footer-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 1.5rem;
}

.site-footer .social-links {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.site-footer .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(131, 70, 215, 0.08);
  border: 1px solid rgba(131, 70, 215, 0.25);
  border-radius: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.site-footer .social-btn svg,
.site-footer .social-btn [data-lucide] { width: 1rem; height: 1rem; }
.site-footer .social-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.site-footer .footer-col-title {
  position: relative;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.625rem;
}
.site-footer .footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.site-footer .footer-links li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #94a3b8;
  margin-bottom: 0;
}
.site-footer .footer-links li svg,
.site-footer .footer-links li [data-lucide] {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: var(--primary-color);
  opacity: 0.85;
}
.site-footer .footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer .footer-links a:hover {
  color: var(--primary-color);
  padding-left: 0;
}

.site-footer .contact-country {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  margin: 1rem 0 0.5rem;
}
.site-footer .contact-country:first-of-type { margin-top: 0; }

.site-footer .footer-city {
  font-size: 0.72rem;
  color: #64748b;
  margin-left: auto;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(131, 70, 215, 0.18);
  padding: 1.25rem 2rem;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-footer .footer-bottom p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
}

@media (max-width: 768px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 3rem 1.5rem 2rem;
    text-align: left;
  }
  .site-footer .footer-desc { max-width: none; }
  .site-footer .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1.5rem;
  }
}

/* Fix for existing social icons if any elsewhere */
.social-icons {
  display: flex;
  gap: 12px;
}


/* Login / Register */
.login-container,
.register-container {
  max-width: 450px;
  margin: 5rem auto;
  padding: 2rem;
  background-color: #1e293b;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s ease-out;
  color: var(--white);
}

.form-control {
  height: 50px;
  border-radius: 50px;
  padding-left: 1.5rem;
  font-size: 1rem;
  border: 1px solid #334155;
  background-color: #1e293b;
  color: white;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(131, 70, 215, 0.3);
}

.form-control::placeholder {
  color: #64748b;
}

.login-footer a,
.register-footer a {
  color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.fadeInUp {
  animation-name: fadeInUp;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fadeInRight {
  animation-name: fadeInRight;
}

/* Responsive */
/* Responsive Enhancements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-link {
    color: #1e293b !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-link.active::after {
    display: none;
  }

  .lang-switcher-container {
    margin: 1rem 0 !important;
    width: 100%;
  }

  .lang-dropdown-btn {
    width: 100%;
    justify-content: space-between;
  }

  .btn-nav-compact {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}

@media (max-width: 767.98px) {

  /* Fluid Typography for Hero Titles */
  .display-4 {
    font-size: 2.25rem !important;
    line-height: 1.2;
  }

  .section-title {
    font-size: 1.8rem !important;
  }

  .lead {
    font-size: 1rem !important;
  }

  .contact-header {
    padding-top: 6rem !important;
    padding-bottom: 3rem !important;
  }

  .contact-header .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .hero-section {
    height: auto;
    min-height: auto;
    padding: 6rem 0 4rem;
    text-align: center;
  }

  .text-break {
    word-break: break-word !important;
  }
}

/* Fix for extra small devices */
@media (max-width: 480px) {
  .display-4 {
    font-size: 1.75rem !important;
  }

  h1 {
    font-size: 1.6rem !important;
  }

  h2 {
    font-size: 1.4rem !important;
  }

  h3 {
    font-size: 1.2rem !important;
  }

  .section-title {
    font-size: 1.5rem !important;
  }

  .btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.85rem !important;
  }

  .btn-lg {
    padding: 0.7rem 1.4rem !important;
    font-size: 0.95rem !important;
  }

  .course-type-card,
  .language-card,
  .level-card,
  .mission-card {
    padding: 1.5rem !important;
  }

  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(131, 70, 215, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  background-color: var(--primary-hover, #6a3bb0);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(131, 70, 215, 0.6);
}

#scrollTopBtn i,
#scrollTopBtn svg {
  transition: transform 0.3s ease;
}

#scrollTopBtn:hover i,
#scrollTopBtn:hover svg {
  transform: translateY(-2px);
}