/* Hero Section - Fixed for better text contrast */
.hero {
    background-image: url('https://www.thespruce.com/thmb/K92p_9rZUgI4u86EhfvbUiSLS5s=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/minimalist-living-room-ideas-5213203-hero-d27f8dcfa0b84706adbbd28ea0e1b48d.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional: creates a nice parallax effect */
    position: relative;
    min-height: 80vh; /* Adjust to your desired hero height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Dark semi-transparent overlay for contrast */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust opacity (0.4–0.6) if needed */
    z-index: 1;
}

/* Ensure all direct children (headings, paragraphs, buttons, etc.) are above the overlay */
.hero > * {
    position: relative;
    z-index: 2;
}

/* Hero text styles - ensure high contrast */
.hero h1,
.hero h2,
.hero .display-4,
.hero .lead {
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9); /* Strong shadow for readability */
}

.hero p {
    color: #f8f9fa;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

.hero .btn {
    text-shadow: none;
}

/* Service Cards */
.service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s, box-shadow 0.4s;
    height: 100%;
    position: relative;
}
.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.service-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
    filter: brightness(1.05) contrast(1.1);
}
.service-card:hover img {
    transform: scale(1.08);
}
.service-card .overlay-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,123,255,0.8);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.service-card .card-body {
    padding: 30px;
}
.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}
.service-card ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
    color: #555;
}
.service-card ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}
.service-card ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

/* Why Choose Us */
.why-section {
    background: #f8f9ff;
}
.why-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.why-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.why-card img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 25px;
    border: 6px solid #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}
.why-card:hover img {
    transform: scale(1.08);
}
.why-card h4 {
    font-size: 22px;
    margin-bottom: 10px;
    transition: color 0.3s;
}
.why-card:hover h4 {
    color: #007bff;
}
.why-card .stat {
    font-size: 14px;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.why-card p {
    flex-grow: 1;
    margin-bottom: 0;
    color: #555;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: #f8f9fa;
}
.testimonial-item {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}
.testimonial-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}
.testimonial-item .stars {
    color: #ffc107;
    margin: 15px 0;
    font-size: 20px;
}
.testimonial-item p {
    font-style: italic;
    font-size: 18px;
    margin: 20px 0;
    line-height: 1.6;
}
.testimonial-item h5 {
    margin: 10px 0 5px;
}
.testimonial-item small {
    color: #777;
}