:root {
  --primary-blue: rgba(0, 119, 255, 1);
  --secondary-green: rgb(29, 52, 30);
  --light-bg: rgba(255, 255, 255, 1);
  --dark-bg: rgba(18, 18, 18, 1);
  --light-text: rgba(33, 37, 41, 1);
  --dark-text: rgba(248, 249, 250, 1);
}

body {
  transition: all 0.3s ease;
  padding-top: 70px;
  padding-bottom: 100px;
  background-color: var(--light-bg);
  color: var(--light-text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.dark-theme {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

/* Navbar and header */
.navbar {
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-green)) !important;
  position: fixed !important;
  top: 0;
  width: 100%;
  z-index: 1030;
}
.logo-container {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: white !important;
  text-decoration: none;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-weight: bold;
  color: var(--primary-blue);
}

/* Chat Icon */
.chat-icon {
  position: fixed;
  bottom: 120px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4);
  z-index: 1050;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Popup overlay */
.popup-overlay {
  position: fixed;
  top: 0; left:0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  user-select: none;
}
.popup-content {
  background: var(--light-bg);
  padding: 25px;
  border-radius: 15px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  user-select: auto;
}
body.dark-theme .popup-content { background: var(--dark-bg); color: var(--dark-text); }

/* Expert Teams Section */
.expert-background {
  background: linear-gradient(120deg, rgba(0,119,255,0.13), rgba(29,52,30,0.13) 50%, rgba(0,119,255,0.08));
  background-size: 200% 200%;
  animation: bgMove 8s ease-in-out infinite alternate;
  border-radius: 20px;
  margin: 24px auto 48px auto;
  padding: 35px 15px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.07);
}
@keyframes bgMove {
  0% { background-position: 0% 80%; }
  100% { background-position: 100% 20%; }
}
.team-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-align: center;
  padding: 12px 8px;
  transition: transform 0.3s ease;
  min-height: 190px;
  user-select: none;
}
.team-card:hover { transform: translateY(-10px); }
.team-card .bi { margin-bottom: 10px; font-size: 3rem; }
.team-card .count-label {
  font-size: 1.2rem; font-weight: 600; margin-bottom: 8px;
}
.team-card .display-4 {
  color: var(--primary-blue); font-weight: 700;
  margin: 0 0 8px 0;
}
.team-card .text-muted {
  font-size: 1rem; line-height: 1.5; color: #505050;
}
body.dark-theme .team-card .text-muted {
  color: rgba(225,225,225,0.8);
}

/* Services Section */
.services-background {
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.1), rgba(29, 52, 30, 0.1), rgba(0, 119, 255, 0.07));
  background-size: 300% 300%;
  animation: servicesBGMove 12s ease infinite alternate;
  border-radius: 20px;
  padding: 50px 30px;
  margin: 60px auto;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}
@keyframes servicesBGMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.services-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 35px 25px;
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.services-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(0, 119, 255, 0.3);
}

/* Footer */
footer {
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-green));
  color: white;
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
}

@media (max-width: 767.98px) {
  .expert-background { padding: 25px 10px; }
  .team-card { min-height: 140px;}
  .services-background { padding: 35px 15px;}
}
