/* Styles for the index.html page */

/* Home hero specific styles */
.home-hero {
  background: url('https://cdn.glitch.global/29efe4f6-b226-490d-9792-5075025a0bfa/img%2Fhector-j-rivas-1FxMET2U5dU-unsplash.jpg?v=1745979185610') no-repeat center center fixed;
  background-size: cover;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-particles {
  display: none; /* Hide the particles container */
}

.particle {
  display: none; /* Hide all particles */
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Hero buttons & stats */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroButtonsAppear 1s ease-out 0.25s forwards;
}

@keyframes heroButtonsAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  min-width: 120px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  animation: fadeIn 1s forwards;
}

.animate-btn, .stat-item {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-btn:hover, .stat-item:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.3);
}

.animate-btn:active, .stat-item:active {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.5s ease;
}

.stat-item:hover .stat-number {
  transform: scale(1.15);
  color: white;
}

.stat-text {
  font-size: 0.9rem;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
}

.stat-item:hover .stat-text {
  opacity: 1;
  transform: scale(1.05);
  color: white;
}

/* About section */
.about-us {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background-color: #ffffff;
}

/* About section title adjustments */
.about-us h2 {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
  text-align: center;
  width: 100%;
  margin-bottom: 3rem; /* Increased spacing between title and content */
}

.about-us h2.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Remove the line above the title by changing its size to 0 */
.about-us h2::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0; /* Changed from 3px to 0 to remove the line */
  background: var(--accent-color);
  transition: width 0.8s ease 0.5s;
}

.about-us h2.visible::before {
  width: 0; /* Changed from 50px to 0 to remove the line */
}

.about-us h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.8s ease 0.8s;
}

.about-us h2.visible::after {
  width: 100px;
}

.about-shape {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, rgba(15, 117, 188, 0.05), rgba(41, 171, 226, 0.08));
  z-index: -1;
  transition: transform 2s ease-in-out;
}

.about-shape-1 {
  top: -150px;
  left: -150px;
}

.about-shape-2 {
  bottom: -150px;
  right: -150px;
}

.about-us:hover .about-shape-1 {
  transform: scale(1.2) rotate(10deg);
}

.about-us:hover .about-shape-2 {
  transform: scale(1.2) rotate(-10deg);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
  min-width: 300px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.about-text.visible {
  transform: translateY(0);
  opacity: 1;
}

.about-image {
  flex: 1;
  min-width: 300px;
  transform: translateX(50px);
  opacity: 0;
  transition: transform 0.8s ease 0.2s, opacity 0.8s ease 0.2s;
  position: relative;
  overflow: hidden;
}

.about-image.visible {
  transform: translateX(0);
  opacity: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  padding: 0 1rem; /* Added padding for better text margins */
}

.about-content p:nth-child(2) {
  transition-delay: 0.2s;
}

.about-text.visible p {
  opacity: 1;
  transform: translateY(0);
}

/* Highlight items in about section */
.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  text-align: center;
  justify-content: center;
  padding-left: 40px; /* Increased padding to move items further to the right */
}

.highlight-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
  white-space: nowrap;
}

.about-text.visible .highlight-item {
  opacity: 1;
  transform: translateX(0);
}

.about-text.visible .highlight-item:nth-child(1) {
  transition-delay: 0.3s;
}

.about-text.visible .highlight-item:nth-child(2) {
  transition-delay: 0.4s;
}

.about-text.visible .highlight-item:nth-child(3) {
  transition-delay: 0.5s;
}

.about-text.visible .highlight-item:nth-child(4) {
  transition-delay: 0.6s;
}

.highlight-item i {
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

.highlight-item:hover i {
  transform: scale(1.3);
  color: var(--accent-color);
}

.highlight-item span {
  position: relative;
  padding-bottom: 2px;
}

.highlight-item span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.highlight-item:hover span::after {
  width: 100%;
}

.about-text .btn-secondary {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.7s, transform 0.5s ease 0.7s, background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.about-text.visible .btn-secondary {
  opacity: 1;
  transform: translateY(0);
}

.about-content .btn {
  margin-top: 1rem;
}

/* Services Overview Section */
.services-overview {
  background-color: #f9f9f9;
  padding: 5rem 0;
  width: 100%;
}

.section-description {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.1rem;
}

.services-carousel {
  display: flex;
  gap: 2rem;
  margin: 0 auto 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.service-slide {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.service-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 117, 188, 0.05) 0%, rgba(41, 171, 226, 0.1) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-slide:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 15px 35px rgba(15, 117, 188, 0.2);
}

.service-slide:hover::before {
  opacity: 1;
}

.service-slide .service-icon {
  position: relative;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(15, 117, 188, 0.1), rgba(41, 171, 226, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-slide .service-icon i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: all 0.5s ease;
}

.service-slide:hover .service-icon {
  transform: scale(1.15) rotate(10deg);
  background: linear-gradient(135deg, rgba(15, 117, 188, 0.2), rgba(41, 171, 226, 0.4));
  box-shadow: 0 8px 25px rgba(15, 117, 188, 0.3);
}

.service-slide:hover .service-icon i {
  transform: rotate(-10deg) scale(1.1);
  color: var(--accent-color);
}

.service-slide h3 {
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.service-slide:hover h3 {
  color: var(--primary-color);
  transform: translateY(-5px);
}

.service-slide h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.service-slide:hover h3::after {
  width: 70%;
}

.service-slide p {
  transition: all 0.4s ease;
  color: var(--text-color);
}

.service-slide:hover p {
  color: var(--dark-color);
}

.service-slide .btn-link {
  position: relative;
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  opacity: 0.9;
  transform: translateY(5px);
}

.service-slide:hover .btn-link {
  color: var(--accent-color);
  transform: translateY(0);
  opacity: 1;
}

.service-slide .btn-link i {
  transition: transform 0.3s ease;
}

.service-slide:hover .btn-link i {
  transform: translateX(5px);
  color: var(--accent-color);
}

.service-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.service-slide:hover::after {
  transform: scaleX(1);
}

/* Features Section */
.features {
  text-align: center;
  padding: 5rem 0;
  position: relative;
  background-color: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 30px rgba(15, 117, 188, 0.15);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: transform 0.5s ease;
}

.feature-card:hover i {
  transform: scale(1.2) rotate(10deg);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

.clients-h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem; /* Added gap between testimonial items */
}

.testimonial-item {
  background: white;
  padding: 2.5rem; /* Increased padding */
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem; /* Added margin bottom for additional spacing */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(15, 117, 188, 0.15);
}

.testimonial-content {
  font-style: italic;
  position: relative;
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.testimonial-content::before,
.testimonial-content::after {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  line-height: 1;
}

.testimonial-content::before {
  top: -20px;
  left: 0;
}

.testimonial-content::after {
  bottom: -40px;
  right: 0;
  transform: rotate(180deg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.author-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Clients Section */
.clients {
  padding: 5rem 0;
  background-color: #ffffff;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.client-item {
  background: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.client-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.client-item img {
  max-width: 100%;
  height: auto;
  max-height: 60px;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.client-item:hover img {
  filter: grayscale(0);
}

/* CTA Section */
.cta-section {
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 20px;
  margin: auto;
  padding: 2rem 2rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 100px;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  margin: 0 auto 1.5rem;
  max-width: 90%; /* Ensure the heading doesn't get too wide on mobile */
}

.cta-section p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-section .btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.cta-section .btn-outline {
  border-color: #fff;
  color: #fff;
}

.cta-section .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: #fff;
}

.cta-shape {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 117, 188, 0.05) 0%, rgba(41, 171, 226, 0) 70%);
  z-index: 0;
}

.cta-shape-1 {
  top: -250px;
  left: -250px;
}

.cta-shape-2 {
  bottom: -250px;
  right: -250px;
}

/* Media Queries specific to index */
@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-section {
    margin: 1rem 1rem 1rem 0rem;
    padding: 1rem 1%;
  }
  
  .cta-buttons .btn {
    width: 80%;
    margin-bottom: 1rem;
  }
  
  /* Ensure CTA heading is centered and has proper margins on mobile */
  .cta-section h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
    padding: 0 0.5rem;
    font-size: 1.8rem; /* Slightly smaller font size for mobile */
  }
  
  /* Better margins for about section text on mobile */
  .about-text p {
    padding: 0 1.2rem;
    text-align: left;
    margin-bottom: 1.8rem;
  }
  
  /* Improve about highlights display on mobile */
  .about-highlights {
    grid-template-columns: 1fr; /* Single column on smaller screens */
    padding: 0 1rem;
  }
}