/* Care Management Page Specific Styles */

/* 1. Hero Section - "Midnight Glass" Theme */
.care-hero {
    background: radial-gradient(circle at 50% 0%, #172554 0%, #020617 100%);
    /* Blue-950 to Slate-950 */
    position: relative;
    overflow: hidden;
    /* Fix header overlap */
    z-index: 1;
    /* Ensure Top Layer */
    padding: 120px 0 160px;
    color: #fff;
    text-align: center;
}

/* Animated Glass Orbs Background */
.care-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: float-orb 10s ease-in-out infinite;
    z-index: 0;
}

.care-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float-orb 12s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes float-orb {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.care-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    /* Widened to fit title */
    margin: 0 auto 50px;
}

.care-hero h1 {
    font-weight: 800;
    font-size: 3.8rem;
    /* Slightly reduced for safety */
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    color: #ffffff;
    /* Solid white for max contrast */
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(56, 189, 248, 0.4);
    /* Cyan glow behind text */
}

.care-hero .lead {
    color: #f8fafc;
    /* Brighter white/slate */
    font-size: 1.4rem;
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Stronger shadow for readability */
}

/* 3D Glass Dashboard Container */
.hero-3d-perspective {
    perspective: 1200px;
    margin-bottom: -140px;
    position: relative;
    z-index: 3;
    padding: 20px;
}

.hero-3d-glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 12px;
    max-width: 1040px;
    margin: 0 auto;
    transform: rotateX(0deg);
    /* Start flat */
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    transform-style: preserve-3d;
    z-index: 10;
}

.hero-3d-glass-panel::before {
    /* Top Shine */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    z-index: -1;
    /* Push behind */
}

.care-hero:hover .hero-3d-glass-panel {
    transform: rotateX(5deg) translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.hero-3d-image {
    width: 100%;
    height: auto;
    min-height: 300px;
    /* Force height */
    border-radius: 16px;
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    background: #000;
    /* Fallback */
    position: relative;
    z-index: 50;
    /* Top layer */
    cursor: pointer;
    pointer-events: auto;
}

/* Floating Image Animation */
.hero-image-container {
    animation: float-slow 6s ease-in-out infinite;
}

@keyframes float-slow {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* 2. Intro Section - RPM Details */
.rpm-feature-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #0ea5e9;
    transition: transform 0.3s ease;
}

.rpm-feature-box:hover {
    transform: translateY(-5px);
}

/* 3. Modules Grid */
.care-module-card {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    height: 100%;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.care-module-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: #e2e8f0;
}

.care-module-icon {
    width: 64px;
    height: 64px;
    background: #f0f9ff;
    color: #0284c7;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.care-module-card:hover .care-module-icon {
    background: #0284c7;
    color: #fff;
    transform: scale(1.1);
}

/* 4. Devices Showcase */
.device-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.device-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.15);
}

.device-img-wrapper {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.device-img-wrapper img {
    max-height: 100%;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.device-card:hover img {
    transform: scale(1.05);
}

/* 5. Benefits Section (Redesigned Intro) */
.benefit-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 100;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #f0f9ff;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.benefit-icon i {
    font-size: 1.8rem;
    line-height: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-card:hover .benefit-icon {
    background: #0284c7;
    color: #fff;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Specific fix for intersection */
.care-benefits-wrapper {
    position: relative;
    z-index: 30;
    margin-top: 0;
    padding-top: 40px;
}