/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-section .btn.primary {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    background: var(--white);
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
}

.hero-section .btn.primary:hover {
    background: var(--button-hover-bg);
    color: var(--button-hover-text);
    transform: translateY(-3px);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 60px 20px;
    background: var(--background-color);
    text-align: center;
}

.why-choose-us h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: 60px 20px;
    background: var(--white);
}

.services-section h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-color);
}

/* Services Section - Uniform Button and Text Positioning */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--background-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column; /* Ensure vertical alignment */
    justify-content: space-between; /* Equal spacing between elements */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-card p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1; /* Ensures the button stays at the bottom */
}

.service-card .btn.secondary {
    padding: 12px 20px;
    font-size: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
    align-self: center; /* Center align the button */
    width: fit-content; /* Adjust button width to its content */
}

.service-card .btn.secondary:hover {
    background: var(--button-hover-bg);
    transform: translateY(-3px);
}

/* Testimonials Section - Uniform Text and Button Height */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-item {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
    display: flex;
    flex-direction: column; /* Ensure vertical layout */
    justify-content: space-between; /* Uniform spacing */
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-item p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Push the name to the bottom */
}

.testimonial-item h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    text-align: right; /* Align name to the right */
}

/* Call to Action Section */
.cta-section {
    padding: 60px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-section .btn.primary {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    background: var(--white);
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
}

.cta-section .btn.primary:hover {
    background: var(--button-hover-bg);
    color: var(--button-hover-text);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .services-section h2,
    .testimonials-section h2 {
        font-size: 1.8rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}
