/* =========================================
   Khan Tax Advisory - Main Stylesheet
   ========================================= */

/* -----------------------------------------
   1. Hero Slider Styling
----------------------------------------- */
.hero-slider-img {
    height: 70vh; 
    min-height: 500px;
    object-fit: cover; 
    width: 100%;
}

/* Dark overlay so animated text is readable */
.carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 5, 25, 0.4); 
    pointer-events: none;
}

/* Animated Text Overlays */
.carousel-caption {
    top: 40%;
    transform: translateY(-50%);
    bottom: auto;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    z-index: 10; /* Ensures text stays above the dark overlay */
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: bold;
    animation: fadeInDown 1s ease-in-out;
}

.carousel-caption p {
    font-size: 1.5rem;
    animation: fadeInUp 1s ease-in-out;
    animation-delay: 0.5s; /* Stagger the animation */
    animation-fill-mode: both; 
}

/* Custom Navigation Arrows */
.carousel-control-prev, .carousel-control-next {
    width: 5%;
    opacity: 1; 
    z-index: 11;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 50%;
}

/* -----------------------------------------
   2. Service Cards
----------------------------------------- */
.service-card {
    transition: all 0.3s ease-in-out;
    cursor: default;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* -----------------------------------------
   3. Keyframe Animations
----------------------------------------- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translate3d(0, -50px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 50px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* -----------------------------------------
   4. Mobile Responsiveness
----------------------------------------- */
@media (max-width: 768px) {
    .carousel-caption h1 { 
        font-size: 2rem; 
    }
    .carousel-caption p { 
        font-size: 1rem; 
    }
}