/* Agents page styles - Matching home page styling */
:root {
  --primary-color: #0066cc;
  --primary-light: #3a8dff;
  --primary-dark: #0052a3;
  --secondary-color: #1a1a2e;
  --accent-color: #00c3ff;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.08);
  --border-radius: 12px;
}

/* Services Hero Section - Matching Why Us and About Us */
.services-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0052a3, #0066cc);
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5-5 2.24-5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: 0;
  opacity: 0.8;
}

.services-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.services-hero-content .section-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.services-title {
  font-size: 3.5rem;
  margin: 1rem 0;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.services-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(40px);
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  top: -250px;
  right: -100px;
  border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%;
  animation: float 15s ease-in-out infinite;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: rgba(0, 195, 255, 0.15);
  bottom: -100px;
  left: -50px;
  border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
  animation: float 20s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 195, 255, 0.1));
  top: 30%;
  left: 20%;
  border-radius: 35% 65% 60% 40% / 50% 45% 55% 50%;
  animation: float 18s ease-in-out infinite 2s;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(4deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Search section - Enhanced to make it stand out more */
.search-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, rgba(0, 102, 204, 0.05) 0%, rgba(0, 195, 255, 0.03) 100%);
  border-bottom: 1px solid rgba(0, 102, 204, 0.08);
  position: relative;
  overflow: hidden;
}

.search-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(0, 102, 204, 0.03), rgba(0, 195, 255, 0.03));
  top: -150px;
  right: -150px;
  filter: blur(50px);
}

.search-section::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(0, 195, 255, 0.03), rgba(0, 102, 204, 0.03));
  bottom: -100px;
  left: -100px;
  filter: blur(40px);
}

/* Additional search section styles for new elements */
.search-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.search-description {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Search bar styles - enhanced to stand out */
.agents-search-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.1);
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agents-search-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 102, 204, 0.12);
}

.agents-search-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.agents-search-input {
  width: 100%;
  padding: 1.2rem 1.5rem;
  padding-right: 4.5rem;
  font-size: 1.1rem;
  color: var(--text-color);
  background: #f8f9fa;
  border: 2px solid rgba(0, 102, 204, 0.1);
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  outline: none;
}

.agents-search-input::placeholder {
  color: var(--text-light);
  transition: opacity 0.3s ease;
}

.agents-search-input:focus::placeholder {
  opacity: 0.7;
}

.agents-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
  background: #ffffff;
}

.agents-search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.25);
}

.agents-search-button:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.35);
}

.agents-search-button:active {
  transform: translateY(-50%) scale(0.95);
}

.agents-count {
  margin-top: 1.2rem;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Filter buttons - updated to be more prominent */
.agents-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: white;
  border: 1px solid rgba(0, 102, 204, 0.15);
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}

.filter-btn:hover {
  background: rgba(0, 102, 204, 0.05);
  transform: translateY(-3px);
  color: var(--primary-color);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-color: transparent;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(0, 102, 204, 0.3);
}

/* Agents Header - Updated to match home page style */
.agents-header {
  text-align: center;
  padding-top: 7rem;
  padding-bottom: 2rem;
  background-color: var(--bg-color);
  min-height: auto;
  position: relative;
  z-index: 1;
}

/* Responsive styles for hero section */
@media (max-width: 992px) {
  .services-hero {
    padding: 7rem 0 3.5rem;
  }
  
  .services-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: 6rem 0 3rem;
  }
  
  .services-title {
    font-size: 2.5rem;
  }
  
  .services-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .services-hero {
    padding: 5rem 0 2.5rem;
    min-height: 30vh;
  }
  
  .services-title {
    font-size: 2rem;
  }
  
  .services-subtitle {
    font-size: 1rem;
    margin-top: 1rem;
  }
}

/* Agents page styles - Matching home page styling */
.agents-header {
  text-align: center;
  padding-top: 7rem;
  padding-bottom: 2rem;
  background-color: var(--bg-color);
  min-height: auto;
  position: relative;
  z-index: 1;
}

.agents-title {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-weight: 700;
  position: relative;
  letter-spacing: -0.02em;
}

.agents-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  margin: 1rem auto 0;
  border-radius: 2px;
}

.agents-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  padding: 0 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.section-header.animate-fade-in {
  opacity: 1;
  transform: translateY(0);
}

.section-badge {
  display: inline-block;
  background: rgba(0, 102, 204, 0.08);
  color: var(--primary-color);
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Agents grid - updated to match agent grid on homepage */
.agents-grid-container {
  padding: 2rem 0 5rem;
  width: 100%;
  background-color: var(--bg-light);
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem; /* Reduced margin from 3rem to 2rem */
}

/* Agent card - updated to match agent cards on homepage */
.agent-card {
  background-color: var(--bg-color);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: left;
  transform: translateY(30px);
  opacity: 0;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.agent-card.animate-fade-in {
  animation: fadeInUp 0.8s var(--cubic-bezier) forwards;
}

.agent-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 102, 204, 0.2);
}

.agent-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.8rem;
  color: var(--primary-color);
  background: rgba(0, 102, 204, 0.08);
  transition: var(--transition);
}

.agent-card:hover .agent-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.25);
}

.agent-header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.agent-header h3 {
  color: var(--secondary-color);
  font-size: 1.35rem;
  margin: 0 0 0.8rem;
  font-weight: 600;
}

.agent-card:hover .agent-header h3 {
  color: var(--primary-color);
}

.agent-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Updated tags with opacity background colors */
.agent-tag.productivity, 
.agent-tag[class="productivity"] {
  background: rgba(52, 152, 219, 0.15);
  color: #2980b9;
}

.agent-tag.automation, 
.agent-tag[class="automation"] {
  background: rgba(46, 204, 113, 0.15);
  color: #27ae60;
}

.agent-tag.creative,
.agent-tag[class="creative"] {
  background: rgba(52, 152, 219, 0.15);
  color: #2980b9;
}

.agent-tag.workflows,
.agent-tag[class="workflows"] {
  background: rgba(52, 152, 219, 0.15);
  color: #2980b9;
}

.agent-tag.analytics,
.agent-tag[class="analytics"] {
  background: rgba(241, 196, 15, 0.15);
  color: #f39c12;
}

.agent-tag.analytical,
.agent-tag[class="analytical"] {
  background: rgba(155, 89, 182, 0.15);
  color: #8e44ad;
}

.agent-tag.consulting,
.agent-tag[class="consulting"] {
  background: rgba(155, 89, 182, 0.15);
  color: #8e44ad;
}

.agent-tag.communication,
.agent-tag[class="communication"] {
  background: rgba(230, 126, 34, 0.15);
  color: #d35400;
}

.agent-tag.support,
.agent-tag[class="support"] {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
}

.agent-tag.integration,
.agent-tag[class="integration"] {
  background: rgba(230, 126, 34, 0.15);
  color: #d35400;
}

.agent-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: center;
  flex-grow: 1;
}

.agent-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  text-align: center;
}

.agent-features li {
  margin-bottom: 0.6rem;
  color: var(--text-light);
  font-size: 0.9rem;
  position: relative;
  display: inline-block;
  margin-right: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  background: rgba(0, 102, 204, 0.05);
  border: 1px solid rgba(0, 102, 204, 0.08);
}

.agent-button {
  margin-top: auto;
  text-align: center;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
  width: 100%;
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.agent-action-btn {
  display: inline-block;
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border: none;
  border-radius: var(--border-radius);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
  margin-top: auto;
}

.agent-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

/* CTA section styling to match homepage */
.cta-section {
  background: linear-gradient(135deg, #0066cc, #00a3ff);
  color: white;
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding: 5rem 0; /* Increased padding for better vertical distribution */
}

.cta-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.cta-shape-1 {
  width: 500px;
  height: 500px;
  background: white;
  top: -250px;
  right: -100px;
}

.cta-shape-2 {
  width: 300px;
  height: 300px;
  background: white;
  bottom: -100px;
  left: -50px;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-content {
  position: relative;
  z-index: 1;
  color: white;
}

.cta-content .section-title {
  color: white;
  font-size: 2.5rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  background: white;
  color: var(--primary-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.cta-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.cta-button-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.25);
}

/* Animation for fade-in effect */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s forwards;
}

/* Consistent padding for page sections */
.page {
  padding: 5rem 0;
}

/* Improved responsive styles to match home page */
@media (max-width: 1024px) {
  .agents-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .agents-header {
    padding-top: 6rem;
  }
  
  .agents-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
  }
  
  .agents-title, .section-title {
    font-size: 2rem;
  }
  
  .agent-card {
    padding: 2rem;
  }
  
  .cta-content .section-title {
    font-size: 2rem;
  }
  
  .search-section {
    padding: 3rem 0;
  }
  
  .agents-search-container {
    padding: 1.5rem;
  }
  
  .search-title {
    font-size: 1.3rem;
  }
  
  .search-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .agents-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 1.2rem;
  }
  
  .agents-title, .section-title {
    font-size: 1.8rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .agents-filter {
    gap: 0.5rem;
  }
  
  .search-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .search-title {
    font-size: 1.2rem;
  }
  
  .agents-search-container {
    padding: 1.2rem;
  }
  
  .search-section {
    padding: 2rem 0;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .agents-search-input {
    padding: 1rem 1.3rem;
    padding-right: 4rem;
    font-size: 1rem;
  }
  
  .agents-search-button {
    width: 42px;
    height: 42px;
  }
}

/* Box sizing fix */
* {
  box-sizing: border-box;
}