/* Home page specific styles */

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
  color: white;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero .subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--gray-200);
}

.hero .description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--gray-300);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* What We Do Section */
.what-we-do {
  padding: 4rem 0;
  background: white;
}

.what-we-do h2 {
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.what-we-do .description {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 48rem;
  margin: 0 auto 3rem auto;
}

.service-cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.service-card {
  padding: 2rem;
  border-radius: 0.75rem;
  color: white;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card:active {
  transform: scale(0.98);
}

.service-card.training {
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
}

.service-card.placement {
  background: linear-gradient(135deg, var(--secondary-color), #ec4899);
}

.service-card.products {
  background: linear-gradient(135deg, var(--success-color), #059669);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--gray-200);
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
}

.service-card ul li {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.service-card ul li i {
  margin-right: 0.5rem;
}

/* How We Work Section */
.how-we-work {
  padding: 4rem 0;
  background: var(--gray-100);
}

.how-we-work h2 {
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.how-we-work .subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
}

.process-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.process-step {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 20rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.process-step:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.process-step:active {
  transform: scale(0.98);
}

/* Added active state styling for process steps */
.process-step.active {
  border: 2px solid var(--primary-color);
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.2);
  transform: scale(1.05);
}

.process-step.active .step-icon {
  background: var(--primary-color) !important;
  animation: pulse 2s infinite;
}

.process-step.active h3 {
  color: var(--primary-color);
}

/* Added pulse animation for active step icons */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
  }
}

.process-step .step-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.process-step.step-1 .step-icon {
  background-color: var(--primary-color);
}

.process-step.step-2 .step-icon {
  background-color: var(--secondary-color);
}

.process-step.step-3 .step-icon {
  background-color: var(--accent-color);
}

.process-step.step-4 .step-icon {
  background-color: var(--success-color);
}

.process-step h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--gray-800);
  transition: color 0.3s ease;
}

.process-step p {
  color: var(--gray-600);
}

.step-details {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  min-height: 300px;
}

.step-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Added fade-in animation for step content */
.step-content.active {
  display: block;
  opacity: 1;
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-content h4 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.step-content p {
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.step-content ul {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.step-content ul li {
  color: var(--gray-600);
}

.step-content ul li i {
  margin-right: 0.5rem;
}

/* Stats Section */
.stats {
  padding: 4rem 0;
  background: var(--dark-color);
  color: white;
}

.stats-grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}

.stat-item .number {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-item .label {
  color: var(--gray-300);
}

.stat-item.students .number {
  color: var(--accent-color);
}

.stat-item.placement .number {
  color: var(--secondary-color);
}

.stat-item.products .number {
  color: var(--primary-color);
}

.stat-item.partners .number {
  color: var(--success-color);
}

/* CTA Section */
.cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Responsive Styles */
@media (min-width: 640px) {
  .hero-buttons,
  .cta-buttons {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.75rem;
  }

  .hero .subtitle {
    font-size: 1.5rem;
  }

  .service-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-flow {
    flex-direction: row;
    justify-content: space-between;
  }

  .process-arrow {
    display: block;
    color: var(--primary-color);
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .step-content ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 3rem;
    padding-bottom: 2rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .hero .subtitle {
    font-size: 1.125rem;
  }

  .hero .description {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* Mobile-optimized service cards */
  .service-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .service-card {
    padding: 1.5rem;
    text-align: center;
  }

  .service-card:hover {
    transform: none; /* Disable hover effects on mobile */
  }

  .service-card:active {
    transform: scale(0.98);
  }

  /* Mobile-optimized How We Work section */
  .process-flow {
    gap: 1rem;
    padding: 0 1rem;
  }

  .process-step {
    width: 100%;
    max-width: none;
    padding: 1.25rem;
    /* Enhanced touch targets */
    min-height: 120px;
  }

  .process-step:hover {
    transform: none;
  }

  .process-step:active {
    transform: scale(0.98);
  }

  .step-details {
    margin: 0 1rem;
    padding: 1.5rem;
    min-height: 250px;
  }

  .step-content ul {
    grid-template-columns: 1fr;
  }

  /* Mobile stats grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .stat-item .number {
    font-size: 1.875rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.875rem;
  }

  .what-we-do h2,
  .how-we-work h2 {
    font-size: 1.875rem;
    text-align: center;
  }

  .service-card {
    padding: 1.25rem;
  }

  .process-step {
    padding: 1rem;
    min-height: 100px;
  }

  .process-step .step-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .step-details {
    padding: 1.25rem;
  }
}
