/* ===================================================================
   HOME PAGE — Premium Redesign (Red/White Soft UI)
   =================================================================== */

/* ── Hero Carousel Background ─────────────────────────────────────── */
.hero-revamp {
    overflow: hidden;
    min-height: 85vh; /* slightly taller for luxury feel */
}

.hero-carousel-bg {
    z-index: 0;
    pointer-events: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.hero-bg-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(.4,2,.6,1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: opacity;
}

.hero-bg-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-bg-progress {
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

#heroBgProgressBar {
    background: #ffffff !important; /* Pure white instead of warning */
    transition: width 0s;
}

.hero-revamp .hero-img-wrapper {
    z-index: 2;
}

.hero-revamp .carousel-inner img,
.hero-revamp .img-fluid {
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(100,32,39,.18);
}

.hero-revamp .hero-overlay {
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(100,32,39,0.92) 50%, rgba(184,74,90,0.85) 100%);
}

.premium-glass-caption {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    padding: 0.5rem 1.5rem !important;
    bottom: 1.5rem !important;
}

/* ── Hero Image Carousel ──────────────────────────────────────────── */
.hero-carousel-container {
    width: 600px;
    height: 450px;
    max-width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-image-container {
    position: relative;
    width: 600px;
    height: 450px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
}

.hero-carousel-image,
.hero-fallback-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-image-container:hover .hero-carousel-image,
.hero-image-container:hover .hero-fallback-image {
    transform: scale(1.08);
}

#heroCarousel {
    width: 600px;
    height: 450px;
    max-width: 100%;
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    width: 100%; height: 100%;
}

/* ── Services Section ─────────────────────────────────────────────── */
.services-revamp {
    background: #fdfdfd;
    position: relative;
    z-index: 1;
    overflow: visible;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.premium-service-card {
    background: #ffffff;
    border: 1px solid rgba(184, 74, 90, 0.08);
    border-radius: 2rem !important;
    box-shadow: 0 15px 35px rgba(100, 32, 39, 0.04);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.premium-service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(100, 32, 39, 0.1);
    border-color: rgba(184, 74, 90, 0.15);
}

.premium-service-icon-wrapper {
    margin: 0 auto 2rem;
    position: relative;
    z-index: 4;
}

.premium-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 2rem;
    color: #b84a5a;
    background: rgba(184, 74, 90, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-service-card:hover .premium-service-icon {
    background: rgba(184, 74, 90, 0.1);
    transform: scale(1.1);
}

.premium-service-title {
    color: #642027;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

.premium-service-desc {
    color: #8a3b45;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* ── Why Choose Us Section ────────────────────────────────────────── */
.why-revamp {
    overflow: visible;
    position: relative;
    z-index: 1;
    background: #ffffff;
    padding: 8rem 0;
}

.why-mesh-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(184, 74, 90, 0.08) 0%, rgba(253, 253, 253, 0) 60%);
    z-index: 0;
    pointer-events: none;
    animation: slowPulse 20s ease-in-out infinite alternate;
}

.premium-why-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(184, 74, 90, 0.1);
    border-radius: 2rem;
    box-shadow: 0 30px 60px rgba(100, 32, 39, 0.05);
    padding: 4rem;
    position: relative;
    z-index: 2;
}

.why-icon-premium {
    width: 48px;
    height: 48px;
    background: rgba(184, 74, 90, 0.08);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b84a5a;
    transition: all 0.4s ease;
}

.why-item:hover .why-icon-premium {
    background: #b84a5a;
    color: #ffffff;
    transform: scale(1.1);
}

.why-image-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(100, 32, 39, 0.15);
    border: 1px solid rgba(184, 74, 90, 0.1);
}

.why-choose-image {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.why-image-container:hover .why-choose-image,
.why-image-container:hover .why-carousel-image {
    transform: scale(1.05);
}

.why-carousel-container {
    width: 100%;
    height: 450px;
}

.why-carousel-image {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#whyChooseCarousel {
    width: 100%;
    height: 450px;
}

#whyChooseCarousel .carousel-inner,
#whyChooseCarousel .carousel-item {
    width: 100%; height: 100%;
}

/* ── Jobs Section (Home) ──────────────────────────────────────────── */
.jobs-revamp {
    background: #fdfdfd;
    padding: 8rem 0;
}

/* Re-using .premium-job-card styling logic implicitly here */

/* ── CTA Section (Home) ───────────────────────────────────────────── */
.cta-revamp {
    overflow: hidden;
    position: relative;
    z-index: 1;
    padding: 8rem 0;
}

.cta-revamp .cta-overlay {
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(100,32,39,0.95) 60%, rgba(184,74,90,0.9) 100%);
}

.btn-premium-outline {
    border: 2px solid #b84a5a;
    color: #b84a5a;
    background: transparent;
    border-radius: 2rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-premium-outline:hover {
    background: #b84a5a;
    color: #fff;
    transform: scale(1.02);
}

/* Animations */
@keyframes slowPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 0.4; }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
