/* ===================================
   MEDVISE CONSULTING - Custom Styles
   =================================== */

/* ========== FONT FACE DECLARATIONS ========== */

/* Montserrat Font */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-v31-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Playfair Display Font */
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-v40-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-v40-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ========== CSS VARIABLES (BRAND COLORS) ========== */

:root {
  --bs-primary: #0a3c21;
  --bs-primary-rgb: 10, 60, 33;
  --bs-secondary: #ac8c3d;
  --bs-secondary-dark: #92711f;
  --bs-secondary-dark-rgb: 146, 113, 31;
  --bs-secondary-rgb: 172, 140, 61;
  --bs-light: #e9e5dd;
  --bs-light-rgb: 233, 229, 221;
  --bs-warning: #ac8c3d;
  --navbar-height: 80px;
}

/* ========== GLOBAL TYPOGRAPHY ========== */

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #333;
}

h1,
h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bs-primary);
}

h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--bs-primary);
}

.lead {
  font-weight: 500;
  line-height: 1.6;
}

p {
  line-height: 1.7;
}

.link-secondary:focus,
.link-secondary:hover {
  color: RGBA(
    var(--bs-secondary-dark-rgb),
    var(--bs-link-opacity, 1)
  ) !important;
  text-decoration-color: RGBA(
    var(--bs-secondary-dark-rgb),
    var(--bs-link-underline-opacity, 1)
  ) !important;
}

/* ========== SMOOTH SCROLL ========== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

/* ========== NAVIGATION ========== */

.navbar {
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1rem;
}

.navbar-brand img {
  height: 50px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  color: var(--bs-white);
  font-weight: bold;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--bs-primary) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: var(--bs-primary);
  border-radius: 2px;
}

.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile Navigation Styles */
@media (max-width: 991px) {
  .navbar-collapse {
    text-align: center;
  }

  .navbar-nav {
    align-items: center;
  }

  .nav-link {
    padding: 1rem 1.5rem !important;
    margin: 0.5rem 0 !important;
    width: 100%;
  }

  /* Remove underline on mobile */
  .nav-link.active::after {
    display: none;
  }

  nav#mainNavigation .navbar-nav li.nav-item {
    width: 100%;
    margin: 0;
  }
}

/* ========== BUTTONS ========== */

.btn {
  transition: all 0.3s ease;
  font-weight: 500;
  border-radius: 5px;
  padding: 0.625rem 1.5rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: #0d5030;
  border-color: #0d5030;
}

.btn-secondary {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  color: #fff;
}

.btn-secondary:hover {
  background-color: #8f7433;
  border-color: #8f7433;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.2rem;
}

/* ========== SECTIONS ========== */

section {
  position: relative;
}

.py-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.py-7 {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

.pt-7 {
  padding-top: 6rem !important;
}

@media (max-width: 767px) {
  section {
    padding: 3rem 0 !important;
  }

  .py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .pt-7 {
    padding-top: 5rem !important;
  }
}

/* ========== HERO SECTION ========== */

#hero {
  /* min-height: calc(80vh - var(--navbar-height)); */
  display: flex;
  align-items: center;
  background: linear-gradient(
      135deg,
      rgba(10, 60, 33, 0.85) 0%,
      rgba(13, 80, 48, 0.75) 100%
    ),
    url('/images/mri1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.5rem;
}

#hero .lead {
  font-size: 1.15rem;
  line-height: 1.7;
}

#hero hr {
  max-width: 200px;
  margin: 1.5rem 0;
  opacity: 0.75;
  border: 0;
  height: 3px;
}

#hero .container > .row {
  min-height: calc(65vh - var(--navbar-height));
}

/* Hero Image Container */
.hero-image-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

/* Hero Image Styling */
.hero-image {
  border-radius: 10px;
  max-height: 600px;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  animation: slideInFromRight 700ms ease-in-out 300ms both;
}

.hero-logo {
  height: 90px;
}

/* Slide in animation from right */
@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 767px) {
  #hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 3rem;
    background-attachment: scroll; /* Better performance on mobile */
  }

  #hero h1 {
    font-size: 1.75rem;
  }

  #hero .lead {
    font-size: 1rem;
  }

  .hero-image-container {
    margin-top: 2rem;
    align-items: center;
  }

  .hero-image {
    max-height: 580px;
    animation: none; /* Disable animation on mobile */
  }
}

/* ========== CARDS ========== */

.card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

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

.service-card {
  background: #fff;
}

.service-card:hover {
  background: #f8f9fa;
}

.talent-card {
  transition: all 0.3s ease;
}

.talent-card:hover {
  background: #fff !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.industry-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  background: var(--bs-light) !important;
}

/* Card body spacing */
.card-body {
  padding: 1.5rem;
}

/* ========== PROCESS SECTION ========== */

.process-step {
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 10px;
}

.process-step:hover {
  background-color: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.process-step .rounded-circle {
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.process-step:hover .rounded-circle {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* ========== ACCORDION ========== */

.accordion-button {
  font-weight: 600;
  color: var(--bs-primary);
  background-color: #fff;
}

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(10, 60, 33, 0.25);
}

.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.125);
  margin-bottom: 0.5rem;
  border-radius: 5px !important;
  overflow: hidden;
}

.accordion-body {
  background-color: #fff;
}

/* ========== FORMS ========== */

.form-control,
.form-select {
  border: 1px solid #ced4da;
  border-radius: 5px;
  padding: 0.625rem 0.875rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bs-secondary);
  box-shadow: 0 0 0 0.2rem rgba(172, 140, 61, 0.25);
}

.form-label {
  margin-bottom: 0.5rem;
  color: #333;
}

.invalid-feedback {
  display: none;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
  display: block;
}

/* ========== UTILITIES ========== */

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-overlay {
  position: relative;
  z-index: 1;
}

.bg-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* Background color utilities with brand colors */
.bg-primary {
  background-color: var(--bs-primary) !important;
}

.bg-secondary {
  background-color: var(--bs-secondary) !important;
}

.bg-light {
  background-color: var(--bs-light) !important;
}

.text-primary {
  color: var(--bs-primary) !important;
}

.text-secondary {
  color: var(--bs-secondary) !important;
}

.text-warning {
  color: var(--bs-secondary) !important;
}

/* ========== TESTIMONIALS ========== */

.bi-quote {
  opacity: 0.3;
}

/* ========== COUNTER ANIMATIONS ========== */

.counter {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.counter:not(.counted) {
  opacity: 0.5;
}

/* ========== FOOTER ========== */

footer {
  background-color: var(--bs-primary);
  color: #fff;
}

footer a {
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--bs-secondary) !important;
  transform: translateY(-2px);
}

footer .bi {
  transition: all 0.3s ease;
}

footer a:hover .bi {
  transform: scale(1.2);
}

footer .bottom-bar {
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-top: 1px solid rgba(172, 140, 61, 0.3) !important;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Responsive positioning utilities */
@media (min-width: 768px) {
  .start-md-100 {
    left: 100% !important;
  }
}

@media (max-width: 991px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .display-5 {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  .lead {
    font-size: 1rem;
  }

  .btn-lg {
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
  }

  .navbar-brand span {
    font-size: 0.9rem;
  }
}

/* ========== ACCESSIBILITY ========== */

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden-focusable:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 1rem;
  background-color: var(--bs-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--bs-secondary);
  outline-offset: 2px;
}

/* ========== ANIMATIONS ========== */

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ========== PRINT STYLES ========== */

@media print {
  .navbar,
  footer,
  .btn {
    display: none !important;
  }

  section {
    page-break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }
}

/* ========== CUSTOM SPACING ========== */

.mb-6 {
  margin-bottom: 4rem !important;
}

.mt-6 {
  margin-top: 4rem !important;
}

.pb-6 {
  padding-bottom: 4rem !important;
}

.pt-6 {
  padding-top: 4rem !important;
}

/* ========== SHADOWS ========== */

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ========== IMAGE OPTIMIZATIONS ========== */

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

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

/* ========== CONTACT SECTION SPECIFIC ========== */

#contact .bg-white {
  border: 1px solid #e9ecef;
}

#contact .list-unstyled i {
  font-size: 1.25rem;
}

/* ========== ALERT CUSTOMIZATION ========== */

.alert-info {
  background-color: rgba(172, 140, 61, 0.1);
  border-color: var(--bs-secondary);
  color: #333;
}

.alert-info h6 {
  color: var(--bs-primary);
}

/* ========== LIST STYLES ========== */

ul {
  padding-left: 1.5rem;
}

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

/* ========== SMALL TEXT ========== */

small,
.small {
  font-size: 0.875rem;
}

/* ========== BORDER UTILITIES ========== */

.border-light {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.border-secondary {
  border-color: rgba(172, 140, 61, 0.3) !important;
}

/* ========== ROUNDED CORNERS ========== */

.rounded {
  border-radius: 0.375rem !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

/* ========== ICON SIZING ========== */

.fs-3 {
  font-size: 1.75rem !important;
}

.fs-5 {
  font-size: 1.25rem !important;
}

/* ========== LOADING STATES (Future enhancement) ========== */

.loading {
  pointer-events: none;
  opacity: 0.6;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

/* ========== LANGUAGE SWITCHER ========== */

.language-switcher {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1050;
  font-family: 'Montserrat', sans-serif;
}

.language-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background-color: var(--bs-secondary);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.language-toggle:hover {
  background-color: #8f7433;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.language-toggle .current-lang {
  font-weight: 700;
  font-size: 0.95rem;
}

.language-toggle .bi-chevron-up {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.language-switcher.active .language-toggle .bi-chevron-up {
  transform: rotate(180deg);
}

.language-options {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  min-width: 200px;
}

.language-switcher.active .language-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  background: #fff;
  border: none;
  border-bottom: 1px solid #e9ecef;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background-color: var(--bs-light);
  color: var(--bs-primary);
}

.language-option:active {
  background-color: #d4cfc5;
}

.language-option .flag-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  line-height: 1;
}

.language-option .lang-name {
  font-size: 0.95rem;
}

/* Active language highlight */
.language-option.active {
  background-color: var(--bs-primary);
  color: #fff;
}

.language-option.active:hover {
  background-color: #0d5030;
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .language-switcher {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0;
    z-index: 1050;
  }

  .language-toggle {
    width: 100%;
    border-radius: 0;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  .language-toggle:hover {
    transform: none;
  }

  .language-options {
    position: fixed;
    bottom: 100%;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    margin-bottom: 0;
    max-height: 300px;
    overflow-y: auto;
  }

  .language-option {
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
  }

  .language-option .flag-icon {
    font-size: 1.75rem;
    margin-right: 1rem;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .language-switcher {
    bottom: 20px;
    right: 20px;
  }

  .language-toggle {
    padding: 0.65rem 1.1rem;
    font-size: 0.95rem;
  }
}

/* Ensure language switcher is above other fixed elements */
.language-switcher {
  z-index: 1050;
}

/* Animation for smoother appearance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.language-switcher {
  animation: fadeInUp 0.5s ease-out 0.5s both;
}

/* ========== CONTACT FORM TABS ========== */

#contactTabs .nav-link {
  color: var(--bs-primary);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  background-color: transparent;
}

#contactTabs .nav-link:hover {
  background-color: var(--bs-light);
  color: var(--bs-primary);
}

#contactTabs .nav-link.active {
  background-color: var(--bs-primary);
  color: #fff !important;
  border-color: var(--bs-primary);
}

#contactTabs .nav-link i {
  font-size: 1.1rem;
}

/* Mobile adjustments for contact tabs */
@media (max-width: 767px) {
  #contactTabs .nav-link {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }

  #contactTabs .nav-link i {
    font-size: 1rem;
  }
}

/* ========== INDUSTRY ICONS ========== */

.industry-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--bs-light) 0%, #f5f2ed 100%);
  border-radius: 50%;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.industry-icon-wrapper i {
  font-size: 2.5rem;
  color: var(--bs-primary);
  transition: all 0.3s ease;
}

.industry-card:hover .industry-icon-wrapper {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #0d5030 100%);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(10, 60, 33, 0.2);
}

.industry-card:hover .industry-icon-wrapper i {
  color: #fff;
  transform: scale(1.1);
}

/* Mobile adjustments for industry icons */
@media (max-width: 767px) {
  .industry-icon-wrapper {
    width: 70px;
    height: 70px;
  }

  .industry-icon-wrapper i {
    font-size: 2rem;
  }
}

/* ========== TALENT SECTION ICONS ========== */

.talent-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--bs-secondary) 0%, #8f7433 100%);
  border-radius: 50%;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.talent-icon-wrapper i {
  font-size: 2rem;
  color: #fff;
  transition: all 0.3s ease;
}

.talent-card:hover .talent-icon-wrapper {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #0d5030 100%);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(10, 60, 33, 0.3);
}

.talent-card:hover .talent-icon-wrapper i {
  transform: scale(1.1);
}

/* Mobile adjustments for talent icons */
@media (max-width: 767px) {
  .talent-icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .talent-icon-wrapper i {
    font-size: 1.75rem;
  }
}

/* ========== GLOBAL NETWORK SECTION ========== */

#global-network {
  background: linear-gradient(
      135deg,
      rgba(233, 229, 221, 0.85) 0%,
      rgba(233, 229, 221, 0.77) 100%
    ),
    url('/images/networking-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

/* Mobile adjustments for global network background */
@media (max-width: 767px) {
  #global-network {
    background-attachment: scroll; /* Better performance on mobile */
  }
}

/* ========== PULSE ANIMATION FOR BADGES ========== */

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* 1) “Schön” trennen (Silbentrennung), wenn möglich */
main :is(h1, h2, h3, h4, h5, h6, p, li, blockquote) {
  /* hyphens: auto; */
  overflow-wrap: break-word; /* fallback */
  word-break: normal; /* NICHT break-all */
}

/* 2) Notfall-Fallback für “unzerbrechliche” Tokens (URLs, IDs, Monsterwörter ohne Trennstellen)
   -> nur dort einsetzen, wo du wirklich Probleme hast */
main .wrap-anywhere {
  overflow-wrap: anywhere;
}
