:root {
    --primary: #1a73e8;
    --primary-light: #4285f4;
    --accent: #1a73e8;
    --background: #f1f3f4;
    --text-dark: #202124;
    --text-light: #5f6368;
    --border-color: #dadce0;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-ambient: rgba(0, 0, 0, 0.1);
    --shadow-key-umbra: rgba(0, 0, 0, 0.07);
    --shadow-key-penumbra: rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

.testimonial-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 120px 20px 100px;
    text-align: center;
    overflow: hidden;
    perspective: 1000px;
}

.testimonial-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    transform: skewY(-6deg);
    transform-origin: top left;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    transform: translateZ(50px);
}

.testimonial-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 6px var(--shadow-ambient);
}

.testimonial-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.testimonial-container {
    max-width: 1100px;
    margin: 80px auto 2rem;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow:
        0 15px 35px var(--shadow-ambient),
        0 5px 15px var(--shadow-key-umbra),
        0 3px 8px var(--shadow-key-penumbra);
    overflow: hidden;
    transition: var(--transition);
    padding: 30px;
}

.testimonial-container:hover {
    box-shadow:
        0 20px 40px var(--shadow-ambient),
        0 8px 20px var(--shadow-key-umbra),
        0 5px 10px var(--shadow-key-penumbra);
    transform: translateY(-10px);
}

/* Added a container to maintain fixed dimensions */
.testimonial-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.testimonial-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Creates a square aspect ratio */
    overflow: hidden;
    object-fit: cover;
   
}

.testimonial-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.testimonial-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    transition: transform 0.5s ease;
}

.testimonial-container:hover .testimonial-image img {
    transform: scale(1.05);
}

.testimonial-container:hover .testimonial-image::before {
    opacity: 1;
}

.testimonial-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.testimonial-name {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.testimonial-title {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.testimonial-body {
    color: var(--text-light);
    margin-bottom: 2rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.testimonial-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.back-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 6px var(--shadow-ambient);
    gap: 0.5rem;
}

.back-link:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 8px var(--shadow-key-umbra);
}

.back-link::before {
    content: '←';
    font-size: 1.2em;
    margin-right: 8px;
}

.error {
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow-ambient);
    text-align: center;
    color: #d32f2f;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .testimonial-container {
        grid-template-columns: 1fr;
        margin: -50px 1rem 2rem;
    }

    .testimonial-image-container {
        max-width: 100%;
        height: auto;
    }
    
    .testimonial-image {
        padding-bottom: 75%; /* Adjust for tablets - more rectangular */
    }

    .testimonial-hero {
        padding: 100px 20px 80px;
    }

    .testimonial-hero h1 {
        font-size: 2.8rem;
    }

    .testimonial-hero p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .testimonial-image {
        padding-bottom: 66.67%; /* 3:2 aspect ratio */
    }
}

@media (max-width: 480px) {
    .testimonial-hero {
        padding: 80px 15px 60px;
    }

    .testimonial-hero h1 {
        font-size: 2.2rem;
    }

    .testimonial-name {
        font-size: 2.2rem;
    }

    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-image {
        padding-bottom: 60%; /* Even more rectangular for mobile */
    }
}

/* Accessibility and focus states */
*:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}





/* ✅ WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #1EBE5D;
  transform: scale(1.1);
}



.mail-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px;
    background-color: #1976d2;    /* Gmail-red */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: background-color 0.3s ease;
  }
  .mail-float:hover {
    background-color: transparent; 
    color: #1565c0;
    border: 2px solid #1976d2;
  }
  .mail-float i {
    line-height: 60px;             /* vertically center the icon */
  }