/* ===== HERO SLIDER ===== */
 .hero-slider {
      width: 100%;
      height: 100vh;
      overflow: hidden;
      position: relative;
      background: #000;
      transform: translateZ(0);
      will-change: transform;
      backface-visibility: hidden;
    }

    .slide {
      position: absolute;
      width: 100%;
      height: 100%;
      display: grid;
      grid-template-columns: repeat(10, 1fr);
      grid-template-rows: repeat(6, 1fr);
      opacity: 0;
      z-index: 0;
      display: grid;
      gap: 0 !important;
      border-spacing: 0 !important;
      
    }

    .slide.active {
      z-index: 1;
      opacity: 1;
    }

    .block {
        width: 101%;
  height: 101%;
        background-size: calc(var(--cols) * 100%) calc(var(--rows) * 100%);
        background-repeat: no-repeat;
        background-position: center;
        transform: scale(0.5);
        opacity: 0;
        animation: reveal 1.2s forwards;
        display: block;
        overflow: hidden;
        backface-visibility: hidden;
        will-change: transform, opacity;
        image-rendering: pixelated;
        outline: 1px solid transparent;
    }

    @keyframes reveal {
      to {
        transform: scale(1);
        opacity: 1;
      }
    }

    @media (max-width: 768px) {
      .slide {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(6, 1fr);
      }

      .hero-slider{
        height: 50vh;
      }
    }

    
/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 5rem 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12); /* Colorful top border */
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    position: relative;
    padding-bottom: 15px;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: #007bff;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
  
}

.testimonial-item {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 6rem;
    color: rgba(0,123,255,0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-item blockquote {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    border-left: 4px solid #007bff;
    padding-left: 1.5rem;
    text-align: left;
    position: relative;
    z-index: 1;
}

.testimonial-item .author {
    font-weight: 700;
    color: #333;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-title {
    color: #007bff;
    font-size: 0.9rem;
    margin-top: 5px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #f0f0f0;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
    .slide {
        height: 50vh; /* Shorter on mobile */
    }
    
    .slide-content {
        padding: 1.5rem 2rem;
        width: 85%;
    }
    
    .slider-controls button {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }
    
    .testimonial-item {
        padding: 1.5rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-content {
    animation: fadeIn 0.8s ease-out forwards;
}

/* For smooth loading */
.hero-slider, .testimonials {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 0.2s;
}