/* Enhanced Home Page Styles - Modern UI */

/* ===== Hero Section ===== */
.home-hero {
  background: linear-gradient(135deg, #2c3e50 0%, #4e73df 100%);
  color: white;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.home-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/ai-pattern-overlay.svg');
  background-size: cover;
  opacity: 0.1;
  pointer-events: none;
  animation: subtle-shift 15s infinite alternate ease-in-out;
}

@keyframes subtle-shift {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}

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

.home-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(90deg, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  color: transparent; /* fallback */
  -webkit-text-fill-color: transparent; /* for webkit browsers */
  background-clip: text;
  color: transparent; /* Standard property instead of text-fill-color */
  animation: text-shine 3s infinite linear;
}

@keyframes text-shine {
  0% { background-position: -100% center; }
  100% { background-position: 200% center; }
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-primary {
  background: #4e73df;
  border: 2px solid #4e73df;
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(78, 115, 223, 0.4);
}

.btn-primary:hover {
  background: #3a5ccc;
  border-color: #3a5ccc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 115, 223, 0.5);
  text-decoration: none;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  position: relative;
}

.stat-number::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.7), rgba(255,255,255,0));
  margin: 0.5rem auto 0;
}

.stat-label {
  font-size: 0.95rem;
  max-width: 150px;
  line-height: 1.4;
  opacity: 0.8;
}

/* ===== Featured Clients Section ===== */
.featured-section {
  padding: 3rem 0;
  background: #f8f9fc;
  text-align: center;
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background: #4e73df;
  margin: 0.7rem auto 0;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

.featured-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 1rem 0;
}

.featured-logo {
  max-height: 45px;
  max-width: 180px;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.featured-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ===== Zero Click Search Section ===== */
.zero-click {
  padding: 5rem 0;
  background: #fff;
}

.zero-click .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: #444;
  max-width: 800px;
}

.chart-container {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: #f8f9fc;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.chart-title {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 1rem;
}

.chart-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
}

.legend-color {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  margin-right: 8px;
}

/* ===== Solutions Section ===== */
.solutions-overview {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fc 0%, #e9effd 100%);
}

.solutions-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 1rem;
}

.solution-card {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.solution-image {
  flex: 0 0 35%;
  overflow: hidden;
}

.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.solution-card:hover .solution-image img {
  transform: scale(1.05);
}

.solution-content {
  flex: 0 0 65%;
  padding: 2rem;
}

.solution-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.solution-content p {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.solution-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.solution-features li {
  margin-bottom: 0.5rem;
  color: #444;
}

.solution-features li i {
  color: #4e73df;
  margin-right: 8px;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: #4e73df;
  text-decoration: none;
  transition: all 0.2s ease;
}

.solution-link i {
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.solution-link:hover {
  color: #3a5ccc;
}

.solution-link:hover i {
  transform: translateX(3px);
}

/* ===== Our Approach Section ===== */
.our-approach {
  padding: 6rem 0;
  background: #fff;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.approach-step {
  background: #f8f9fc;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #4e73df;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3);
}

.step-icon {
  margin: 1rem auto 1.5rem;
  width: 60px;
  height: 60px;
  background: rgba(78, 115, 223, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #4e73df;
  transition: all 0.3s ease;
}

.approach-step:hover .step-icon {
  background: #4e73df;
  color: white;
  transform: scale(1.1);
}

.approach-step h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.approach-step p {
  color: #555;
  line-height: 1.6;
}

/* ===== AI SEO Tools Section ===== */
.tools-overview {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8edf5 100%);
}

.tools-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 1.5rem;
}

.tools-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.tools-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.tools-card a {
  display: block;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.tools-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.tools-card:hover img {
  transform: scale(1.1);
}

.tools-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.tools-card p {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tool-link {
  display: inline-block;
  color: #4e73df;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
}

.tool-link i {
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.tools-card:hover .tool-link i {
  transform: translateX(3px);
}

/* ===== Case Studies Section ===== */
.case-studies {
  padding: 5rem 0;
  background: #fff;
}

.case-studies-slider {
  margin-top: 2rem;
  position: relative;
}

.case-study-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.case-study-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-study-card:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #4e73df;
  color: white;
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.case-study-content {
  padding: 2rem;
}

.case-study-content h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.case-study-content p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.case-study-results {
  display: flex;
  justify-content: space-around;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.case-result {
  text-align: center;
}

.result-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4e73df;
  margin-bottom: 0.3rem;
  display: block;
}

.result-label {
  font-size: 0.9rem;
  color: #666;
}

.case-study-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: #4e73df;
  text-decoration: none;
  transition: all 0.2s ease;
}

.case-study-link i {
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.case-study-link:hover {
  color: #3a5ccc;
}

.case-study-link:hover i {
  transform: translateX(4px);
}

/* Carousel Dots Navigation */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: rgba(78, 115, 223, 0.3);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: rgba(78, 115, 223, 1);
  transform: scale(1.2);
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #4e73df 0%, #2c3e50 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/cta-pattern.svg');
  background-size: cover;
  opacity: 0.1;
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

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

.btn-white {
  background: white;
  color: #4e73df;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  text-decoration: none;
}

.btn-white:hover {
  background: #f8f9fc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  text-decoration: none;
  color: #3a5ccc;
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991px) {
  .hero-content {
    margin-bottom: 2rem;
  }
  
  .solution-card {
    flex-direction: column;
  }
  
  .solution-image {
    flex: 0 0 200px;
  }
  
  .chart-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .chart-legend {
    margin-top: 0.5rem;
  }
}

@media (max-width: 767px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .case-study-results {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
}

/* ===== Tooltips ===== */
.tooltip {
  position: fixed;
  background-color: rgba(44, 62, 80, 0.95);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  max-width: 250px;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tooltip::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 6px solid transparent;
}

.tooltip-top::after {
  border-top-color: rgba(44, 62, 80, 0.95);
  top: 100%;
  left: 50%;
  margin-left: -6px;
}

.tooltip-bottom::after {
  border-bottom-color: rgba(44, 62, 80, 0.95);
  bottom: 100%;
  left: 50%;
  margin-left: -6px;
}

.tooltip-left::after {
  border-left-color: rgba(44, 62, 80, 0.95);
  top: 50%;
  left: 100%;
  margin-top: -6px;
}

.tooltip-right::after {
  border-right-color: rgba(44, 62, 80, 0.95);
  top: 50%;
  right: 100%;
  margin-top: -6px;
}

/* ===== Animations ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.fade-in-up:nth-child(4) { transition-delay: 0.3s; }
.fade-in-up:nth-child(5) { transition-delay: 0.4s; }
.fade-in-up:nth-child(6) { transition-delay: 0.5s; }
.fade-in-up:nth-child(7) { transition-delay: 0.6s; }
.fade-in-up:nth-child(8) { transition-delay: 0.7s; }
.fade-in-up:nth-child(9) { transition-delay: 0.8s; }
.fade-in-up:nth-child(10) { transition-delay: 0.9s; }

.tools-card img {
  height: 60px;
  width: 60px;
  margin-bottom: 15px;
}

.tools-card h4 {
  margin-bottom: 10px;
  color: #333;
  font-size: 1.2rem;
}

.tools-card p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* AI SEO Approach Section */
.approach {
  padding: 5rem 0;
  background: #f8f9fc;
}

.approach h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
}

.approach-steps {
  display: flex;
  justify-content: space-between;
  counter-reset: step;
}

.approach-step {
  flex: 0 0 23%;
  position: relative;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.approach-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -25px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: #4e73df;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.approach-step h3 {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  font-size: 1.3rem;
}

.approach-step p {
  color: #666;
  line-height: 1.5;
}

/* Case Studies Section */
.case-studies {
  padding: 5rem 0;
}

.case-studies h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

.case-studies p.subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #555;
  font-size: 1.1rem;
}

.case-study {
  display: flex;
  margin-bottom: 3rem;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.case-study-image {
  flex: 0 0 40%;
  max-height: 350px;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-content {
  flex: 0 0 60%;
  padding: 2.5rem;
}

.case-study-industry {
  display: inline-block;
  background: #f1f5fe;
  color: #4e73df;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.case-study-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.case-study-stats {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
}

.case-stat {
  display: flex;
  flex-direction: column;
}

.case-stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4e73df;
  margin-bottom: 0.2rem;
}

.case-stat-label {
  font-size: 0.85rem;
  color: #666;
}

/* Media Queries */
@media (max-width: 991px) {
  .home-hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .stat-label {
    max-width: 200px;
  }
  
  .research-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .approach-steps {
    flex-wrap: wrap;
    gap: 3rem;
  }
  
  .approach-step {
    flex: 0 0 45%;
  }
  
  .case-study {
    flex-direction: column;
  }
  
  .case-study-image,
  .case-study-content {
    flex: 0 0 100%;
  }
}

@media (max-width: 767px) {
  .hero-cta {
    flex-direction: column;
  }
  
  .research-cards {
    grid-template-columns: 1fr;
  }
  
  .approach-step {
    flex: 0 0 100%;
  }
}
