:root {
    --primary: #2A5C82;
    --accent: #E74C3C;
    --dark: #2C3E50;
    --light: #e9ecef;
    --text: #00000;
    --border: #ECF0F1;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

.professional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin: 1rem auto 1rem auto;
  padding: 0 2rem 0 2rem;
  max-width: 1400px;
  text-align: center;
}

 h5{
    color: black;
    font-weight: bolder;    
    margin-left: 16px;
    margin-bottom: 4px;
    font-size: 25px;
    align-self: center;
}

.recommend{
  display: block;
  margin: 1rem 2rem;
  padding: 0 2rem;
  max-width: 1400px;
  text-align: center;
  align-content: center;
  background: linear-gradient(135deg, #00BCD4, #28a745);
  border-radius: 10px;
  height: 100px;
  color: white;
  position: sticky;
  font-size: 20px;
  font-weight: bolder;
  animation: bounce-in 0.8s ease-out, continuous-glow 4s ease-in-out infinite;
  transition: all 0.3s ease;
}

.recommend:hover {
  transform: translateY(-5px);
  animation: continuous-glow 2s ease-in-out infinite;
}

@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes continuous-glow {
  0%, 100% {
    box-shadow: 0 5px 20px rgba(0, 188, 212, 0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(0, 188, 212, 0.7);
  }
}

.recommend a{
    color: white;
    font-weight: bolder;
    font-size: 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 100%;
}

.profile-header {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    text-align: center;
}

.profile-image-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem auto;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #28a745;
    box-shadow: var(--shadow);
    margin-left: auto;
    margin-right: auto;
    background-color: #00BCD4;
}

.online-status {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    background: #2ECC71;
    border: 3px solid white;
    border-radius: 50%;
}

.user-name {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.user-title {
    color: #7F8C8D;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.contact-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    font-size: 1.5rem;
}

.contact-icon:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.whatsapp { background: #25D366; color: white; }
.email { background: var(--primary); color: white; }
.phone { background: var(--accent); color: white; }

.whatsapp:hover { background: #25D366; color: white; }
.email:hover { background: var(--primary); color: white; }
.phone:hover { background: var(--accent); color: white; }


@media (min-width: 1024px) {
    .user-profile-container {
        grid-template-columns: 350px 1fr;
        align-items: start;
    }
    
    .profile-header {
        position: relative;
        top: 2rem;
    }
}

@media (max-width: 768px) {
    .user-profile-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .profile-image-container {
        width: 170px;
        height: 170px;
    }
}

@media (max-width: 768px) {
    .professional-grid {
        justify-content: center;
        grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
        padding: 0 1rem;
    }

    .profile-header {
        width: 95%;
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .professional-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .profile-header {
        max-width: 100%;
    }
}

/* ===== Search and Filter Styles ===== */
.search-filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    margin-top: 75px;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-container {
    flex: 1;
    min-width: 200px;
}

.filter-container {
    flex: 0 0 auto;
}

.nav__search {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.nav__search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.nav__search-input:focus {
    outline: none;
    border-color: #00BCD4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
    background: white;
}

.nav__search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.filter-dropdown {
    position: relative;
    min-width: 200px;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    appearance: none;
    background: #f8fafc;
    cursor: pointer;
    padding-right: 2.5rem;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #00BCD4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
    background: white;
}

.filter-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
}

/* No results message */
.no-results {
    text-align: center;
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 1.2rem;
    padding: 2rem;
}

.error {
    text-align: center;
    grid-column: 1 / -1;
    color: #ef4444;
    font-size: 1.2rem;
    padding: 2rem;
}


.floating-help-button {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
  white-space: nowrap;
  animation: float-gentle 3s ease-in-out infinite;
}

.floating-help-button:hover {
  background-color: #128C7E;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%) translateY(-2px);
  animation: none; /* Stop animation on hover */
}

/* Gentle floating animation */
@keyframes float-gentle {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-25px);
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .floating-help-button {
    font-size: 15px;
    padding: 12px 18px;
  }
  
  .floating-help-button i {
    font-size: 20px; /* Slightly larger icon on mobile */
  }
}
