/* Sections and content blocks styling */

/* Common section styling */
.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--dim-text);
  margin-bottom: 3rem;
  max-width: 700px;
}

/* Content blocks */
.content-block {
  background: rgba(10, 10, 20, 0.5);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
}

.content-block:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(105, 45, 243, 0.1), rgba(31, 222, 253, 0.05));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.content-block:hover:before {
  opacity: 1;
}

.content-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 15px rgba(105, 45, 243, 0.3);
}

.content-block-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--light-text);
}

.content-block-subtitle {
  font-size: 1rem;
  color: var(--dim-text);
  margin-bottom: 1.5rem;
}

.content-block-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: all 0.5s ease;
}

.content-block:hover .content-block-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent-secondary);
}

/* Feature blocks with glow */
.feature-block {
  background: rgba(5, 5, 8, 0.8);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-block:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(105, 45, 243, 0),
    rgba(105, 45, 243, 0.1),
    rgba(105, 45, 243, 0)
  );
  animation: rotate 15s linear infinite;
  z-index: -1;
}

.feature-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(105, 45, 243, 0.3);
}

.feature-block-content {
  position: relative;
  z-index: 2;
}

.feature-block-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;  background: linear-gradient(to right, var(--secondary-color), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-block-text {
  font-size: 1rem;
  color: var(--dim-text);
  margin-bottom: 1.5rem;
}

/* Pillars Grid Layout */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.pillar-card {
  background: rgba(10, 10, 20, 0.5);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  transition: all 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.pillar-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(105, 45, 243, 0.1), rgba(31, 222, 253, 0.05));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pillar-card:hover:before {
  opacity: 1;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 15px rgba(105, 45, 243, 0.3);
}

.pillar-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: all 0.5s ease;
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.1);
  color: var(--accent-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: rgba(10, 10, 20, 0.5);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  transition: all 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(105, 45, 243, 0.1), rgba(31, 222, 253, 0.05));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-card:hover:before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 15px rgba(105, 45, 243, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: all 0.5s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  color: var(--accent-secondary);
}

/* Cards */
.card {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: all 0.5s ease;
  background: rgba(10, 10, 20, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.card-text {
  color: var(--dim-text);
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card:hover .card-img {
  transform: scale(1.05);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline:after {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 3rem;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--dark-bg);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  right: -10px;
  z-index: 1;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 20px;
  background: rgba(10, 10, 20, 0.8);
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-date {
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--accent-secondary);
}

.timeline-title {
  margin-bottom: 15px;
  font-size: 1.25rem;
}

/* Testimonials */
.testimonial {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--dim-text);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-text:before,
.testimonial-text:after {
  content: '"';
  font-family: Georgia, serif;
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
}

.testimonial-text:before {
  top: -20px;
  left: -10px;
}

.testimonial-text:after {
  bottom: -40px;
  right: -10px;
}

.testimonial-author {
  font-weight: bold;
  margin-top: 1rem;
}

.testimonial-position {
  font-size: 0.9rem;
  color: var(--dim-text);
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 6rem 0;
  background: linear-gradient(45deg, rgba(10, 10, 20, 0.9), rgba(5, 5, 8, 0.9)),
              url('/assets/images/cta-bg.jpg') no-repeat center center/cover;
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-text {
  font-size: 1.2rem;
  color: var(--dim-text);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Animations for sections */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
  .section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .timeline:after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item:nth-child(even)::after,
  .timeline-item::after {
    left: 22px;
    right: auto;
  }
}

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .feature-block-title {
    font-size: 1.5rem;
  }
}
