/* Override hero section background with image */
.hero-enhanced {
    /* Remove background image CSS since we'll use HTML now */
    background: var(--color-base-200) !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    position: relative;
}

/* Add light overlay to improve text readability */
.hero-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-light) !important;
    z-index: 1;
}

/* Make navbar transparent */
.navbar {
    background: transparent !important;
    position: relative;
    z-index: 100;
}

/* Ensure particles are visible */
#particles-container,
#stars-container {
    z-index: 2;
}

/* Make container content appear above the overlay */
.hero-enhanced .container {
    position: relative;
    z-index: 3;
}

/* Make the image container visible */
.hero-image-container {
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Improve text contrast for better readability */
.hero-enhanced h1,
.hero-enhanced p,
.hero-enhanced .lead {
    color: var(--color-base-content) !important;
    text-shadow: var(--effect-text-shadow);
}

/* Center the hero content */
.hero-enhanced .row>div:first-child {
    margin: 0 auto;
    text-align: center;
}

/* Center the buttons */
.hero-buttons {
    justify-content: center;
}

/* Make headline more dramatic */
.headline-enhanced {
    font-size: clamp(1.5rem, 3vw, 3.5rem) !important;
    color: #ffffff !important; /* Fallback for non-WebKit browsers */
    -webkit-text-fill-color: #ffffff !important; /* WebKit-specific fill color */
    text-shadow: var(--effect-text-shadow-lg) !important;
}


/* Service Cards */
.service-card {
    background-color: var(--color-base-200) !important;
    border-radius: var(--radius-box);
    transition: all 0.3s ease;
    overflow: hidden;
    border: var(--border) solid var(--color-base-300);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-primary);
    border-color: var(--color-primary);
}

.service-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card h4 {
    color: var(--color-base-content) !important;
    font-weight: 600;
    margin-bottom: 1rem;
    min-height: 3rem;
    /* Fixed height for all headings */
    display: flex;
    align-items: flex-start;
    /* Align to top */
}

.service-card p {
    color: var(--color-base-content) !important;
    opacity: 0.9;
    font-size: 0.95rem;
    flex-grow: 1;
    /* Make paragraphs fill available space */
    margin-bottom: 1.5rem;
    /* Consistent bottom margin */
}

/* Feature icons */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--card-feature-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-accent) !important;
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card .card-body {
        padding: 1.25rem;
    }

    .service-card h4 {
        min-height: 2.5rem;
        /* Match main.css responsive value */
        font-size: 1.15rem;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 576px) {
    .service-card .card-body {
        padding: 1rem;
    }

    .service-card h4 {
        min-height: 2.2rem;
        /* Match main.css responsive value */
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
}

/* Enhance buttons */
.hero-primary-btn {
    background: var(--btn-primary-bg) !important;
    color: var(--btn-primary-text) !important;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--glow-accent);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--btn-primary-hover-shadow);
    background: var(--btn-primary-hover-bg) !important;
}

.hero-secondary-btn {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: var(--btn-secondary-bg);
    border: 1px solid var(--btn-secondary-border);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-secondary-btn:hover {
    background: var(--btn-secondary-hover-bg);
    color: var(--btn-primary-text) !important;
    transform: translateY(-3px);
}

/* Testimonial Star Ratings */
.testimonial-rating {
    display: flex;
    margin-bottom: 1rem;
    gap: 4px;
}

.testimonial-rating i {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.testimonial-rating .far.fa-star {
    color: var(--color-base-300);
    opacity: 0.7;
}

.testimonial-rating .fas.fa-star-half-alt {
    color: var(--color-accent);
}

/* Hover effect for rating */
.testimonial-card:hover .testimonial-rating i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Fix for testimonial card layout */
.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 340px !important;
    /* Fixed height for all cards */
    position: relative;
    padding-bottom: 80px;
    /* Space for author section */
    background: var(--color-base-200); /* Light neutral (off-white) */
    border: 1px solid var(--color-base-300); /* Subtle border */
    border-radius: var(--radius-box);
}

.testimonial-content {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    overflow-y: auto;
    /* Allow scrolling if content exceeds space */
    height: auto;
    margin-bottom: 1rem;
    /* Hide scrollbar but maintain functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.testimonial-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.testimonial-author {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: var(--color-base-200);
    padding: 0.75rem 2rem;
    height: 80px;
    /* Fixed height for author section */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-author h4 {
    margin-bottom: 0.2rem;
    color: var(--color-base-content);
}

.testimonial-author p {
    color: var(--text-muted);
    opacity: 0.8;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .testimonial-card {
        height: 300px !important;
        padding-bottom: 70px;
    }

    .testimonial-author {
        height: 70px;
        padding: 0.5rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        height: 250px !important;
        padding-bottom: 70px;
    }
}

/* Replace the existing .hero-enhanced styles with this: */
.hero-enhanced {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('hero1.jpg') center/cover no-repeat fixed !important;
    overflow: hidden;
}

/* Glassy overlay */
.hero-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Light semi-transparent overlay */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

/* Hero content above overlay */
.hero-enhanced .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Text color for readability */
.hero-enhanced h1,
.hero-enhanced p,
.hero-enhanced .lead {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Buttons */
.hero-primary-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-primary-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.hero-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}
