/* Mobile App UI Design - Life Circle */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

/* CSS Variables */
:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-secondary: #10b981;
    --color-accent: #f59e0b;
    --color-dark: #1f2937;
    --color-light: #f8fafc;
    --color-white: #FFFFFF;
    --color-gray: #64748b;
    --color-gray-light: #e5e7eb;
    --color-gray-lighter: #f3f4f6;
    --color-purple: #8b5cf6;
    --color-rose: #f43f5e;
    --color-teal: #14b8a6;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    
    --safe-area-top: env(safe-area-inset-top);
    --safe-area-bottom: env(safe-area-inset-bottom);
    --safe-area-left: env(safe-area-inset-left);
    --safe-area-right: env(safe-area-inset-right);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: #f0fdf4;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    padding-bottom: 80px; /* Space for bottom navigation */
    overflow-x: hidden;
    position: relative;
    /* Mobile-friendly background - Light gradient pattern (no image loading required) */
    /* To use an actual image instead, replace the background-image with:
       background-image: url('images/background-mobile.jpg');
       background-size: cover;
       background-position: center;
       background-attachment: scroll; (for mobile performance)
    */
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #faf5ff 20%, #fafbfc 30%, #f0fdf4 70%, #dcfce7 100%);
    background-attachment: fixed;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(16, 185, 129, 0.15) 0%, 
        rgba(16, 185, 129, 0.12) 10%,
        rgba(34, 211, 153, 0.10) 20%,
        rgba(52, 211, 153, 0.08) 30%,
        rgba(110, 231, 183, 0.06) 40%,
        rgba(187, 247, 208, 0.04) 50%,
        rgba(220, 252, 231, 0.03) 60%,
        rgba(240, 253, 244, 0.02) 70%,
        rgba(240, 253, 244, 0.015) 80%,
        rgba(240, 253, 244, 0.01) 90%,
        transparent 100%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.2) 0%, rgba(240, 253, 244, 0.15) 30%, rgba(220, 252, 231, 0.12) 60%, rgba(187, 247, 208, 0.1) 100%);
    z-index: -1;
    pointer-events: none;
}

/* App Bar (Top Navigation) */
.app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    padding-top: var(--safe-area-top);
    height: calc(56px + var(--safe-area-top));
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.app-bar-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
}

.app-bar-left,
.app-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 60px;
}

.app-bar-left {
    flex: 1;
    justify-content: flex-start;
}

.app-bar-right {
    justify-content: flex-end;
}

.app-bar-btn {
    background: none;
    border: 2px solid #0f5132;
    padding: 0;
    color: #0f5132;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popInOut 2s ease-in-out infinite;
}

.app-bar-btn:active {
    background-color: rgba(15, 81, 50, 0.1);
    animation: none;
    transform: scale(0.95);
}

.app-bar-btn:hover {
    transform: scale(1.1);
    animation-play-state: paused;
    border-color: #064e3b;
    color: #064e3b;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.95) 0%, rgba(191, 219, 254, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: var(--safe-area-bottom);
    height: calc(70px + var(--safe-area-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.8);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: var(--color-gray);
    text-decoration: none;
    transition: all 0.2s;
    min-height: 44px;
    cursor: pointer;
    border-radius: 12px;
    margin: 0 4px;
}

.bottom-nav-item:active {
    background-color: var(--color-gray-lighter);
    transform: scale(0.95);
}

.bottom-nav-item.active {
    color: var(--color-primary);
}

.bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.bottom-nav-label {
    font-size: 12px;
    font-weight: 500;
}

/* Main Content */
.main-content {
    margin-top: calc(56px + var(--safe-area-top));
    padding: 16px;
    padding-bottom: calc(90px + var(--safe-area-bottom));
    min-height: calc(100vh - 56px - 70px);
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-gray-light);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
}

.card-body {
    padding: 0;
}

.card-text {
    color: var(--color-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.bg-primary {
    background-color: var(--color-primary);
    color: white;
}

.bg-success {
    background-color: var(--color-success);
    color: white;
}

.bg-warning {
    background-color: var(--color-warning);
    color: white;
}

.bg-danger {
    background-color: var(--color-danger);
    color: white;
}

.bg-info {
    background-color: var(--color-info);
    color: white;
}

.bg-secondary {
    background-color: var(--color-gray);
    color: white;
}

/* Buttons */
.btn {
    border: none;
    border-radius: var(--border-radius);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    margin-bottom: 12px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, #0f5132 0%, #064e3b 50%, #0f5132 100%);
    background-size: 200% 100%;
    color: white;
    box-shadow: var(--shadow-md);
    animation: gradientShift 3s ease infinite;
}

.btn-primary:active {
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline-primary:active {
    background: var(--color-primary);
    color: white;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 14px;
    min-height: 36px;
    width: auto;
    margin-bottom: 0;
}

.btn-secondary {
    background: var(--color-gray-light);
    color: var(--color-dark);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--color-gray-light);
    border-radius: var(--border-radius);
    background: var(--color-white);
    color: var(--color-dark);
    transition: all 0.2s;
    min-height: 44px;
    font-family: var(--font-primary);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #0f5132;
    box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
}

.form-control.is-invalid {
    border-color: var(--color-danger);
}

.form-control.is-valid {
    border-color: var(--color-success);
}

.form-text {
    font-size: 12px;
    color: var(--color-gray);
    margin-top: 4px;
}

.invalid-feedback {
    display: block;
    color: var(--color-danger);
    font-size: 12px;
    margin-top: 4px;
}

.valid-feedback {
    display: block;
    color: var(--color-success);
    font-size: 12px;
    margin-top: 4px;
}

.char-counter {
    font-size: 12px;
    color: var(--color-gray);
    text-align: right;
    margin-top: 4px;
}

.char-counter.warning {
    color: var(--color-warning);
}

.char-counter.danger {
    color: var(--color-danger);
}

/* Modals - Mobile App Style */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal.show {
    display: flex;
    align-items: flex-end;
    pointer-events: auto;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    touch-action: none !important;
}

.modal-dialog {
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2001;
    pointer-events: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--color-gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-gray);
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.btn-close:active {
    background-color: var(--color-gray-lighter);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--color-gray-light);
    display: flex;
    gap: 12px;
    background: var(--color-white);
    position: sticky;
    bottom: 0;
}

/* Elder Care Services Banner */
.elder-care-banner {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.08) 0%, 
        rgba(99, 102, 241, 0.06) 20%,
        rgba(16, 185, 129, 0.08) 40%,
        rgba(139, 92, 246, 0.06) 60%,
        rgba(16, 185, 129, 0.08) 80%,
        rgba(99, 102, 241, 0.06) 100%);
    border-radius: var(--border-radius-lg);
    padding: 24px 20px;
    margin-bottom: 8px;
    box-shadow: 
        0 2px 12px rgba(16, 185, 129, 0.15),
        0 0 20px rgba(16, 185, 129, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.2);
    background-color: rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
    animation: bannerSlideIn 0.8s ease-out;
}

.banner-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
    animation: backgroundPulse 4s ease-in-out infinite;
    z-index: 0;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
    animation: contentFadeIn 1s ease-out 0.3s both;
}

.banner-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 
        0 8px 24px rgba(16, 185, 129, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
    animation: iconFloat 3s ease-in-out infinite;
    position: relative;
    overflow: visible;
}

.banner-icon svg {
    width: 100%;
    height: 100%;
    padding: 12px;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

.banner-text {
    flex: 1;
    min-width: 0;
}

.banner-badge {
    display: inline-block;
    margin-bottom: 8px;
    animation: badgeSlideIn 0.8s ease-out 0.5s both;
}

.badge-text {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(34, 211, 153, 0.25) 50%, rgba(16, 185, 129, 0.25) 100%);
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #0f5132;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), 0 0 0 1px rgba(16, 185, 129, 0.1);
    animation: badgePulse 2s ease-in-out infinite;
}

.banner-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: titleSlideIn 0.8s ease-out 0.7s both;
}

.text-gradient {
    background: linear-gradient(135deg, 
        #064e3b 0%,
        #0f5132 50%,
        #064e3b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

.banner-subtitle {
    font-size: 14px;
    color: var(--color-gray);
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
    animation: subtitleFadeIn 1s ease-out 1s both;
}

.banner-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: shine 3s infinite;
    z-index: 1;
    pointer-events: none;
}

/* SVG Animations */
@keyframes pulse-circle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

.pulse-circle {
    animation: pulse-circle 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.pulse-dot {
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes heart-beat {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.heart-beat {
    animation: heart-beat 1.2s ease-in-out infinite;
}

@keyframes float-animation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.float-animation {
    animation: float-animation 2s ease-in-out infinite;
}

@keyframes popInOut {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
}

/* Banner Animations */
@keyframes bannerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

@keyframes badgeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 2px 16px rgba(16, 185, 129, 0.4);
    }
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.2);
    }
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Responsive adjustments for banner */
@media (max-width: 480px) {
    .banner-title {
        font-size: 18px;
    }
    
    .banner-icon {
        width: 70px;
        height: 70px;
    }
    
    .banner-content {
        gap: 16px;
    }
    
    .elder-care-banner {
        padding: 20px 16px;
    }
}

/* How It Works Section */
.how-it-works-section {
    padding: 32px 0 0 0;
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.5) 0%, rgba(243, 244, 246, 0.5) 100%);
}

.how-it-works-cards {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
    margin-bottom: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.how-it-works-cards::-webkit-scrollbar {
    display: none;
}

.how-it-works-card {
    flex: 1;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    padding: 20px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.how-it-works-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.how-it-works-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 24px;
    color: white;
}

.how-it-works-icon.register-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.how-it-works-icon.connect-icon {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.how-it-works-icon.help-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.how-it-works-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.how-it-works-text {
    font-size: 13px;
    color: var(--color-gray);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.life-circle-tagline {
    text-align: center;
    margin-top: 40px;
    padding: 40px 24px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
}

.life-circle-tagline-title {
    font-size: 56px;
    font-weight: 900;
    color: #1f2937;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    display: block;
}

.life-circle-tagline-subtitle {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin: 8px 0 0 0;
    line-height: 1.2;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    display: block;
}

@media (max-width: 640px) {
    .how-it-works-card {
        min-width: 140px;
        padding: 16px 12px;
    }
    
    .how-it-works-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .how-it-works-title {
        font-size: 15px;
    }
    
    .how-it-works-text {
        font-size: 12px;
    }
    
    .life-circle-tagline {
        margin-top: 32px;
        padding: 32px 20px;
    }
    
    .life-circle-tagline-title {
        font-size: 36px;
        letter-spacing: 1.5px;
    }
    
    .life-circle-tagline-subtitle {
        font-size: 20px;
        letter-spacing: 0.8px;
    }
}

/* Compliance & Features Banners Section */
.compliance-features-section {
    padding: 40px 16px 0 16px;
    margin: 0 -16px 0 -16px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.3) 0%, rgba(191, 219, 254, 0.3) 100%);
}

.compliance-banners-row,
.features-banners-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.compliance-banners-row::-webkit-scrollbar,
.features-banners-row::-webkit-scrollbar {
    display: none;
}

.compliance-banner,
.feature-banner {
    flex: 0 0 auto;
    width: 280px;
    min-width: 280px;
    background: 
        /* Light patches (almost white) */
        radial-gradient(ellipse 120% 80% at 20% 25%, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 100% 120% at 75% 80%, rgba(255, 255, 255, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 90% 100% at 50% 5%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        /* Darker patches (peach/pink tones) */
        radial-gradient(ellipse 150% 100% at 10% 60%, rgba(99, 102, 241, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 110% 130% at 85% 40%, rgba(244, 114, 182, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 130% 90% at 45% 95%, rgba(251, 113, 133, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 100% 140% at 65% 15%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        /* Base gradient */
        linear-gradient(135deg, #fce7f3 0%, #fbcfe8 50%, #fce7f3 100%);
    border-radius: 28px;
    padding: 20px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.25);
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.compliance-banner:nth-child(2) {
    background: 
        /* Light patches (almost white) */
        radial-gradient(ellipse 120% 80% at 20% 25%, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 100% 120% at 75% 80%, rgba(255, 255, 255, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 90% 100% at 50% 5%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        /* Darker patches (yellow tones) */
        radial-gradient(ellipse 150% 100% at 10% 60%, rgba(251, 191, 36, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 110% 130% at 85% 40%, rgba(252, 211, 77, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 130% 90% at 45% 95%, rgba(253, 224, 71, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 100% 140% at 65% 15%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        /* Base gradient */
        linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fef3c7 100%);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.compliance-banner:nth-child(3) {
    background: 
        /* Light patches (almost white) */
        radial-gradient(ellipse 120% 80% at 20% 25%, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 100% 120% at 75% 80%, rgba(255, 255, 255, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 90% 100% at 50% 5%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        /* Darker patches (blue tones) */
        radial-gradient(ellipse 150% 100% at 10% 60%, rgba(59, 130, 246, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 110% 130% at 85% 40%, rgba(147, 197, 253, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 130% 90% at 45% 95%, rgba(96, 165, 250, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 100% 140% at 65% 15%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        /* Base gradient */
        linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #dbeafe 100%);
    border: 1px solid rgba(147, 197, 253, 0.25);
}

.compliance-banner:hover,
.feature-banner:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.compliance-banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.compliance-banner-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(244, 114, 182, 0.12) 0%, transparent 45%),
        linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6366f1;
    font-size: 32px;
    box-shadow: 
        0 2px 8px rgba(99, 102, 241, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.5),
        inset 0 -1px 3px rgba(99, 102, 241, 0.1);
    position: relative;
}

.compliance-banner-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 80%, rgba(244, 114, 182, 0.06) 0%, transparent 35%);
    pointer-events: none;
}

.compliance-banner:nth-child(2) .compliance-banner-icon {
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(252, 211, 77, 0.12) 0%, transparent 45%),
        linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #f59e0b;
    box-shadow: 
        0 2px 8px rgba(245, 158, 11, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.5),
        inset 0 -1px 3px rgba(245, 158, 11, 0.1);
}

.compliance-banner:nth-child(2) .compliance-banner-icon::before {
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(251, 191, 36, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 80%, rgba(252, 211, 77, 0.06) 0%, transparent 35%);
}

.compliance-banner:nth-child(3) .compliance-banner-icon {
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(147, 197, 253, 0.12) 0%, transparent 45%),
        linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #3b82f6;
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.5),
        inset 0 -1px 3px rgba(59, 130, 246, 0.1);
}

.compliance-banner:nth-child(3) .compliance-banner-icon::before {
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 80%, rgba(147, 197, 253, 0.06) 0%, transparent 35%);
}

.compliance-banner-title,
.feature-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.compliance-banner-subtitle,
.feature-banner-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .compliance-banners-row,
    .features-banners-row {
        gap: 10px;
    }
    
    .compliance-banner,
    .feature-banner {
        min-width: 160px;
        padding: 16px 12px;
    }
    
    .compliance-banner-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
        border-radius: 14px;
    }
    
    .compliance-banner-title,
    .feature-banner-title {
        font-size: 16px;
    }
    
    .compliance-banner-subtitle,
    .feature-banner-subtitle {
        font-size: 13px;
    }
}

/* Call to Action Section */
.cta-section {
    text-align: center;
    padding: 32px 20px 32px 20px;
    margin: 0 -16px 0 -16px;
    background: linear-gradient(180deg, rgba(237, 233, 254, 0.4) 0%, rgba(219, 234, 254, 0.3) 30%, rgba(191, 219, 254, 0.3) 60%, rgba(220, 252, 231, 0.15) 100%);
    position: relative;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.2) 0%, rgba(220, 252, 231, 0.12) 50%, rgba(187, 247, 208, 0.1) 100%);
    z-index: -1;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.cta-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-gray);
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    z-index: 999;
    flex-shrink: 0;
}

.life-circle-logo {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
    padding: 0;
}

@media (max-width: 640px) {
    .cta-section {
        padding: 32px 16px 32px 16px;
        margin-top: 0;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .cta-subtitle {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .logo-container {
        padding: 0;
    }
    
    .life-circle-logo {
        width: 28px;
        height: 28px;
        padding: 0;
    }
    
    .app-bar-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* Hero Section - Mobile */
.hero-section {
    background: 
        radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at bottom center, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 40px 24px 32px 24px;
    margin-top: 0;
    text-align: center;
    border-radius: 0 0 28px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.hero-section::before {
    display: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #cbd5e1, #e2e8f0, #cbd5e1, transparent);
    border-radius: 1px;
}


.hero-section h1,
.hero-section .lead,
.hero-actions {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.2;
    color: #0f172a;
    letter-spacing: -0.2px;
    position: relative;
    padding: 0 28px 18px 28px;
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
}

.hero-section h1::before {
    display: none;
}

.hero-section h1::after {
    display: none;
}

.hero-section .lead {
    font-size: 15px;
    color: #475569;
    margin-bottom: 0;
    line-height: 1.7;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    letter-spacing: 0.1px;
    position: relative;
    z-index: 2;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.hero-section .lead::before {
    display: none;
}

.hero-actions {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: nowrap;
    justify-content: center;
    margin-bottom: 0;
    margin-top: 24px;
    position: relative;
    z-index: 2;
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions .btn {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    box-shadow: 
        0 4px 16px rgba(15, 81, 50, 0.25),
        0 2px 8px rgba(15, 81, 50, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(15, 81, 50, 0.3),
        0 4px 12px rgba(15, 81, 50, 0.2);
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, #0f5132 0%, #064e3b 50%, #0f5132 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.hero-actions .btn-outline-primary {
    border-width: 2.5px;
    font-weight: 600;
    border: 2.5px solid #0f5132;
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.1) 0%, rgba(139, 92, 246, 0.05) 50%, rgba(15, 81, 50, 0.1) 100%);
    color: #0f5132;
    box-shadow: 
        0 4px 16px rgba(15, 81, 50, 0.15),
        0 2px 8px rgba(139, 92, 246, 0.08);
}

/* Why Life Circle Section */
.why-lifecircle-section {
    margin-top: 0;
    padding: 20px 0 0 0;
    position: relative;
    overflow: hidden;
}

.why-lifecircle-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: rgba(220, 252, 231, 0.3);
    z-index: 0;
    pointer-events: none;
}

.why-lifecircle-section > * {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-dark);
    text-align: left;
    margin-bottom: 20px;
    padding: 0 16px;
}


.knowledge-cards-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 8px 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.knowledge-cards-container::-webkit-scrollbar {
    display: none;
}

.knowledge-card {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.knowledge-card:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(100% - 50px);
    background: rgba(255, 237, 213, 0.4);
    z-index: 0;
    pointer-events: none;
}

.knowledge-card:nth-child(1) .knowledge-card-stat {
    background: #ffffff;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.knowledge-card:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(100% - 50px);
    background: rgba(254, 249, 195, 0.4);
    z-index: 0;
    pointer-events: none;
}

.knowledge-card:nth-child(2) .knowledge-card-stat {
    background: #ffffff;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.knowledge-card:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(100% - 50px);
    background: rgba(220, 252, 231, 0.4);
    z-index: 0;
    pointer-events: none;
}

.knowledge-card:nth-child(3) .knowledge-card-stat {
    background: #ffffff;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.knowledge-card:nth-child(1) > * {
    position: relative;
    z-index: 1;
}

.knowledge-card:active {
    transform: scale(0.98);
}

.knowledge-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.knowledge-card-subtitle {
    font-size: 13px;
    color: var(--color-gray);
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.knowledge-card-illustration {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 0 0 20px 0;
    min-height: 80px;
    position: relative;
}

.knowledge-card-illustration i {
    font-size: 32px;
    opacity: 0.9;
    transition: all 0.3s ease;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
}

/* Card 1 - SENIORS FEEL LONELY - Warm, empathetic colors */
.knowledge-card:nth-child(1) .knowledge-card-illustration i:nth-child(1) {
    color: #f43f5e; /* Rose red for heart-broken */
    background: rgba(254, 226, 226, 0.9); /* Light pink/rose background */
}

.knowledge-card:nth-child(1) .knowledge-card-illustration i:nth-child(2) {
    color: #8b5cf6; /* Purple for users/community */
    font-size: 36px;
    background: rgba(237, 233, 254, 0.9); /* Light purple background */
}

.knowledge-card:nth-child(1) .knowledge-card-illustration i:nth-child(3) {
    color: #06b6d4; /* Cyan for chart-line */
    background: rgba(207, 250, 254, 0.9); /* Light cyan background */
}

/* Card 2 - UNMET CARE NEEDS - Caring, supportive colors */
.knowledge-card:nth-child(2) .knowledge-card-illustration i:nth-child(1) {
    color: #10b981; /* Green for home */
    background: rgba(209, 250, 229, 0.9); /* Light green background */
}

.knowledge-card:nth-child(2) .knowledge-card-illustration i:nth-child(2) {
    color: #f59e0b; /* Amber for hand-holding-heart */
    font-size: 36px;
    background: rgba(254, 243, 199, 0.9); /* Light yellow/amber background */
}

.knowledge-card:nth-child(2) .knowledge-card-illustration i:nth-child(3) {
    color: #6366f1; /* Indigo for clipboard-list */
    background: rgba(224, 231, 255, 0.9); /* Light indigo background */
}

/* Card 3 - FALLS ARE INCREASING - Alert, medical colors */
.knowledge-card:nth-child(3) .knowledge-card-illustration i:nth-child(1) {
    color: #ef4444; /* Red for exclamation-triangle */
    background: rgba(254, 226, 226, 0.9); /* Light red/pink background */
}

.knowledge-card:nth-child(3) .knowledge-card-illustration i:nth-child(2) {
    color: #14b8a6; /* Teal for dollar-sign */
    font-size: 36px;
    background: rgba(204, 251, 241, 0.9); /* Light teal background */
}

.knowledge-card:nth-child(3) .knowledge-card-illustration i:nth-child(3) {
    color: #3b82f6; /* Blue for hospital */
    background: rgba(219, 234, 254, 0.9); /* Light blue background */
}

.knowledge-card-stat {
    font-size: 13px;
    color: var(--color-gray-dark);
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

.solution-pagination-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 0 0 0 0;
    margin-bottom: 0;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    width: 24px;
    height: 8px;
    border-radius: 4px;
    background-color: #10b981;
}

.pagination-dot:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.solution-stat {
    font-size: 13px;
    color: var(--color-gray);
    margin: 0;
    line-height: 1.5;
}

/* Our Solution Section */
.our-solution-section {
    margin-top: 0;
    padding: 10px 0 20px 0;
    position: relative;
    overflow-x: visible;
    overflow-y: visible;
    clip-path: none;
}

.solution-header {
    text-align: left;
    margin: 0;
    padding: 0;
}

.solution-header .section-title {
    padding: 0 16px;
    margin-bottom: 20px;
}

.our-solution-section .section-title {
    margin-bottom: 0;
    margin-top: 0;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #e11d48 0%, #0284c7 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.solution-banner-container {
    position: relative;
    padding: 0;
    overflow-x: visible;
    overflow-y: visible;
}

.solution-banner-row {
    display: flex;
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 16px 8px 16px;
    scroll-snap-type: none;
    scroll-behavior: auto;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.solution-banner-row::-webkit-scrollbar {
    display: none;
}

/* Optimize performance during scroll */
.solution-banner-row.is-scrolling .solution-banner-card::after {
    opacity: 0.2;
    filter: blur(15px);
}

.solution-banner-row.is-scrolling .solution-banner-card {
    transition: none;
}

.solution-banner-card {
    flex: 0 0 auto;
    min-width: 100px;
    max-width: 110px;
    background: #fff1f2;
    border-radius: 10px;
    padding: 10px 8px 10px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    border: 2px solid transparent;
    width: 100px;
    clip-path: none;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
    contain: layout style paint;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.solution-banner-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    width: 80px;
    height: 80px;
    clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.solution-banner-card::after {
    content: '';
    position: absolute;
    top: auto;
    bottom: -120px;
    left: 5%;
    right: 5%;
    height: 100px;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(25px);
    opacity: 0.5;
    will-change: opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.solution-banner-card:active {
    transform: translate3d(0, 0, 0) scale(0.98);
    overflow: visible;
}

.solution-banner-card:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.solution-banner-card:nth-child(1) {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: #fda4af;
}

.solution-banner-card:nth-child(1)::before {
    background: radial-gradient(ellipse at center, rgba(225, 29, 72, 0.35) 0%, rgba(244, 63, 94, 0.25) 40%, rgba(251, 164, 175, 0.15) 70%, transparent 100%);
}

.solution-banner-card:nth-child(1)::after {
    background: linear-gradient(180deg, rgba(225, 29, 72, 0.6) 0%, rgba(244, 63, 94, 0.4) 40%, rgba(251, 164, 175, 0.2) 80%, transparent 100%);
}

.solution-banner-card:nth-child(2) {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #7dd3fc;
}

.solution-banner-card:nth-child(2)::before {
    background: radial-gradient(ellipse at center, rgba(2, 132, 199, 0.35) 0%, rgba(14, 165, 233, 0.25) 40%, rgba(125, 211, 252, 0.15) 70%, transparent 100%);
}

.solution-banner-card:nth-child(2)::after {
    background: linear-gradient(180deg, rgba(2, 132, 199, 0.6) 0%, rgba(14, 165, 233, 0.4) 40%, rgba(125, 211, 252, 0.2) 80%, transparent 100%);
}

.solution-banner-card:nth-child(3) {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #c4b5fd;
}

.solution-banner-card:nth-child(3)::before {
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.35) 0%, rgba(167, 139, 250, 0.25) 40%, rgba(196, 181, 253, 0.15) 70%, transparent 100%);
}

.solution-banner-card:nth-child(3)::after {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.6) 0%, rgba(167, 139, 250, 0.4) 40%, rgba(196, 181, 253, 0.2) 80%, transparent 100%);
}

.solution-banner-title {
    font-size: 8px;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 5px 0;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 1);
}

.solution-banner-card:nth-child(1) .solution-banner-title {
    color: #e11d48;
}

.solution-banner-card:nth-child(2) .solution-banner-title {
    color: #0284c7;
}

.solution-banner-card:nth-child(3) .solution-banner-title {
    color: #7c3aed;
}

.solution-banner-description {
    font-size: 6px;
    color: #000000;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    margin-bottom: 0;
    padding-right: 5px;
    position: relative;
    z-index: 1;
    padding-bottom: 0;
    margin-top: 5px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 1);
}

.solution-banner-card:nth-child(1) .solution-banner-description {
    color: #000000;
}

.solution-banner-card:nth-child(2) .solution-banner-description {
    color: #000000;
}

.solution-banner-card:nth-child(3) .solution-banner-description {
    color: #000000;
}

.solution-banner-illustration {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: visible;
    background-size: 120px 120px, 100px 100px;
    background-repeat: no-repeat, no-repeat;
    background-position: right 0 bottom 0, left 0 bottom 0;
    opacity: 0.08;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.solution-banner-card:hover .solution-banner-illustration {
    opacity: 1;
}

.solution-banner-illustration i {
    display: none;
}

.solution-banner-card:nth-child(1) .solution-banner-illustration {
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200"><defs><linearGradient id="shieldGrad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23e11d48;stop-opacity:0.8" /><stop offset="100%" style="stop-color:%23f43f5e;stop-opacity:0.7" /></linearGradient></defs><g><ellipse cx="240" cy="140" rx="60" ry="50" fill="%23e11d48" opacity="0.1"/><path d="M210 85 L240 60 L270 85 L252 120 L228 120 Z" fill="url(%23shieldGrad)" opacity="0.9"/><rect x="220" y="95" width="40" height="32" rx="4" fill="%23f43f5e" opacity="0.7"/><line x1="225" y1="105" x2="250" y2="105" stroke="%23ffffff" stroke-width="2" opacity="0.9"/><line x1="225" y1="113" x2="245" y2="113" stroke="%23ffffff" stroke-width="2" opacity="0.9"/><circle cx="260" cy="75" r="18" fill="%23fb7185" opacity="0.8"/><path d="M254 70 L260 63 L266 70 L263 76 L257 76 Z" fill="%23ffffff" opacity="0.9"/><circle cx="265" cy="90" r="10" fill="%23be123c" opacity="0.8"/><path d="M240 150 Q255 145 270 150" stroke="%23e11d48" stroke-width="3" fill="none" opacity="0.7"/></g></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200"><defs><linearGradient id="shieldGrad2" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23e11d48;stop-opacity:0.8" /><stop offset="100%" style="stop-color:%23f43f5e;stop-opacity:0.7" /></linearGradient></defs><g><ellipse cx="240" cy="140" rx="60" ry="50" fill="%23e11d48" opacity="0.1"/><path d="M210 85 L240 60 L270 85 L252 120 L228 120 Z" fill="url(%23shieldGrad2)" opacity="0.9"/><rect x="220" y="95" width="40" height="32" rx="4" fill="%23f43f5e" opacity="0.7"/><line x1="225" y1="105" x2="250" y2="105" stroke="%23ffffff" stroke-width="2" opacity="0.9"/><line x1="225" y1="113" x2="245" y2="113" stroke="%23ffffff" stroke-width="2" opacity="0.9"/><circle cx="260" cy="75" r="18" fill="%23fb7185" opacity="0.8"/><path d="M254 70 L260 63 L266 70 L263 76 L257 76 Z" fill="%23ffffff" opacity="0.9"/><circle cx="265" cy="90" r="10" fill="%23be123c" opacity="0.8"/><path d="M240 150 Q255 145 270 150" stroke="%23e11d48" stroke-width="3" fill="none" opacity="0.7"/></g></svg>');
}

.solution-banner-card:nth-child(2) .solution-banner-illustration {
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200"><defs><linearGradient id="handGrad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%230284c7;stop-opacity:0.8" /><stop offset="100%" style="stop-color:%230ea5e9;stop-opacity:0.7" /></linearGradient></defs><g><ellipse cx="240" cy="140" rx="60" ry="50" fill="%230284c7" opacity="0.1"/><ellipse cx="220" cy="100" rx="18" ry="20" fill="url(%23handGrad)" opacity="0.9"/><ellipse cx="260" cy="100" rx="18" ry="20" fill="url(%23handGrad)" opacity="0.9"/><path d="M200 130 Q240 125 280 130" stroke="%230284c7" stroke-width="4" fill="none" opacity="0.8"/><rect x="225" y="135" width="30" height="22" rx="3" fill="%230ea5e9" opacity="0.7"/><line x1="230" y1="143" x2="250" y2="143" stroke="%23ffffff" stroke-width="2" opacity="0.9"/><line x1="230" y1="150" x2="245" y2="150" stroke="%23ffffff" stroke-width="2" opacity="0.9"/><circle cx="265" cy="90" r="15" fill="%2338bdf8" opacity="0.8"/><path d="M259 85 L265 78 L271 85 L268 91 L262 91 Z" fill="%23ffffff" opacity="0.9"/><circle cx="270" cy="105" r="8" fill="%230369a1" opacity="0.8"/></g></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200"><defs><linearGradient id="handGrad2" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%230284c7;stop-opacity:0.8" /><stop offset="100%" style="stop-color:%230ea5e9;stop-opacity:0.7" /></linearGradient></defs><g><ellipse cx="240" cy="140" rx="60" ry="50" fill="%230284c7" opacity="0.1"/><ellipse cx="220" cy="100" rx="18" ry="20" fill="url(%23handGrad2)" opacity="0.9"/><ellipse cx="260" cy="100" rx="18" ry="20" fill="url(%23handGrad2)" opacity="0.9"/><path d="M200 130 Q240 125 280 130" stroke="%230284c7" stroke-width="4" fill="none" opacity="0.8"/><rect x="225" y="135" width="30" height="22" rx="3" fill="%230ea5e9" opacity="0.7"/><line x1="230" y1="143" x2="250" y2="143" stroke="%23ffffff" stroke-width="2" opacity="0.9"/><line x1="230" y1="150" x2="245" y2="150" stroke="%23ffffff" stroke-width="2" opacity="0.9"/><circle cx="265" cy="90" r="15" fill="%2338bdf8" opacity="0.8"/><path d="M259 85 L265 78 L271 85 L268 91 L262 91 Z" fill="%23ffffff" opacity="0.9"/><circle cx="270" cy="105" r="8" fill="%230369a1" opacity="0.8"/></g></svg>');
}

.solution-banner-card:nth-child(3) .solution-banner-illustration {
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200"><defs><linearGradient id="healthGrad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%237c3aed;stop-opacity:0.8" /><stop offset="100%" style="stop-color:%23a78bfa;stop-opacity:0.7" /></linearGradient></defs><g><ellipse cx="240" cy="140" rx="60" ry="50" fill="%237c3aed" opacity="0.1"/><circle cx="240" cy="100" r="20" fill="url(%23healthGrad)" opacity="0.9"/><circle cx="240" cy="100" r="12" fill="%23a78bfa" opacity="0.8"/><path d="M225 150 L240 125 L255 150" fill="url(%23healthGrad)" opacity="0.9"/><line x1="240" y1="150" x2="240" y2="170" stroke="%237c3aed" stroke-width="4" opacity="0.8"/><line x1="228" y1="162" x2="252" y2="162" stroke="%237c3aed" stroke-width="4" opacity="0.8"/><rect x="255" y="90" width="32" height="25" rx="4" fill="%23c4b5fd" opacity="0.7"/><line x1="260" y1="98" x2="280" y2="98" stroke="%23ffffff" stroke-width="2" opacity="0.9"/><line x1="260" y1="105" x2="275" y2="105" stroke="%23ffffff" stroke-width="2" opacity="0.9"/><line x1="260" y1="112" x2="282" y2="112" stroke="%23ffffff" stroke-width="2" opacity="0.9"/><circle cx="265" cy="80" r="10" fill="%238b5cf6" opacity="0.8"/><circle cx="270" cy="85" r="6" fill="%23c4b5fd" opacity="0.8"/></g></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200"><defs><linearGradient id="healthGrad2" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%237c3aed;stop-opacity:0.8" /><stop offset="100%" style="stop-color:%23a78bfa;stop-opacity:0.7" /></linearGradient></defs><g><ellipse cx="240" cy="140" rx="60" ry="50" fill="%237c3aed" opacity="0.1"/><circle cx="240" cy="100" r="20" fill="url(%23healthGrad2)" opacity="0.9"/><circle cx="240" cy="100" r="12" fill="%23a78bfa" opacity="0.8"/><path d="M225 150 L240 125 L255 150" fill="url(%23healthGrad2)" opacity="0.9"/><line x1="240" y1="150" x2="240" y2="170" stroke="%237c3aed" stroke-width="4" opacity="0.8"/><line x1="228" y1="162" x2="252" y2="162" stroke="%237c3aed" stroke-width="4" opacity="0.8"/><rect x="255" y="90" width="32" height="25" rx="4" fill="%23c4b5fd" opacity="0.7"/><line x1="260" y1="98" x2="280" y2="98" stroke="%23ffffff" stroke-width="2" opacity="0.9"/><line x1="260" y1="105" x2="275" y2="105" stroke="%23ffffff" stroke-width="2" opacity="0.9"/><line x1="260" y1="112" x2="282" y2="112" stroke="%23ffffff" stroke-width="2" opacity="0.9"/><circle cx="265" cy="80" r="10" fill="%238b5cf6" opacity="0.8"/><circle cx="270" cy="85" r="6" fill="%23c4b5fd" opacity="0.8"/></g></svg>');
}

.solution-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.solution-pagination-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gray);
    line-height: 1;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    height: 12px;
    transform: translateY(6px);
}

.solution-pagination-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
    height: 12px;
}

.solution-pagination-dots .pagination-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.solution-pagination-dots .pagination-dot.active {
    width: 20px;
    height: 6px;
    border-radius: 3px;
    background-color: #10b981;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .our-solution-section {
        margin-top: 16px;
        padding: 24px 0;
    }
    
    .solution-header {
        margin-bottom: 16px;
    }
    
    .solution-banner-container {
        padding: 0 16px;
    }
    
    .solution-banner-row {
        gap: 10px;
    }
    
    .solution-banner-card {
        min-width: 260px;
        padding: 18px 16px;
    }
    
    .solution-banner-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .solution-banner-description {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .solution-banner-illustration {
        height: 50px;
    }
    
    .solution-banner-illustration i {
        font-size: 40px;
    }
    
    .solution-stat {
        font-size: 12px;
    }
}

/* Activity Status Card */
.activity-status-card {
    margin-top: -8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.activity-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-item:first-child {
    padding-top: 0;
}

.activity-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 18px;
    flex-shrink: 0;
}

.activity-icon.caregiver {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(14, 184, 168, 0.1) 100%);
    color: var(--color-secondary);
}

.activity-icon.trend {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: var(--color-accent);
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.activity-time {
    font-size: 13px;
    color: var(--color-gray);
    margin: 0;
    line-height: 1.4;
}

.activity-detail {
    font-size: 14px;
    color: var(--color-gray);
    margin: 0;
    line-height: 1.5;
}

/* List Group - Mobile */
.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-group-item {
    padding: 16px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 44px;
}

.list-group-item:active {
    background-color: var(--color-gray-lighter);
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item.active {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-gray);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 16px;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-purple) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-xl);
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    min-height: 56px;
    min-width: 56px;
}

.fab:active {
    transform: scale(0.9);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-gray);
}

.mt-3 {
    margin-top: 16px;
}

.mb-3 {
    margin-bottom: 16px;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-3 {
    gap: 12px;
}

/* Request Card Specific */
.request-card {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.request-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    flex: 1;
    margin-right: 12px;
}

.request-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-gray-light);
}

.request-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-gray);
}

.request-meta-icon {
    font-size: 16px;
    color: var(--color-primary);
}

/* Hide desktop elements */
.navbar,
.navbar-expand-lg {
    display: none !important;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .modal-dialog {
        max-width: 500px;
        margin: auto;
        border-radius: var(--border-radius-xl);
        max-height: 80vh;
    }
    
    .modal {
        align-items: center;
    }
    
    .hero-section h1 {
        font-size: 24px;
        padding: 0 20px 14px 20px;
    }
    
    .hero-section h1::before {
        height: 28px;
        top: -4px;
        width: 4px;
    }
    
    .hero-section h1::after {
        width: 90px;
        height: 3px;
    }
    
    .hero-section .lead {
        font-size: 15px;
        margin-bottom: 32px;
        padding: 24px 20px;
    }
    
    .hero-section .lead::before {
        height: 2px;
    }
    
    .hero-section {
        padding: 44px 16px;
    }
}

/* Mobile-specific background optimizations */
@media (max-width: 768px) {
    body {
        /* Optimize background for mobile performance */
        background-attachment: scroll;
        background-size: cover;
    }
    
    /* Reduce blur effects on lower-end devices */
    @media (prefers-reduced-motion: reduce) {
        body {
            background-image: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
        }
    }
}

/* Safe area support for notched devices */
@supports (padding: max(0px)) {
    .app-bar {
        padding-top: max(16px, var(--safe-area-top));
    }
    
    .bottom-nav {
        padding-bottom: max(8px, var(--safe-area-bottom));
    }
    
    .main-content {
        padding-left: max(16px, var(--safe-area-left));
        padding-right: max(16px, var(--safe-area-right));
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* Prevent text selection on buttons and nav items */
.btn,
.bottom-nav-item,
.app-bar-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Better touch targets */
input,
select,
textarea,
button {
    touch-action: manipulation;
}

/* Webview optimizations */
body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Allow text selection in content areas */
.main-content,
.modal-body,
.card-text {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevent zoom on input focus (iOS) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
textarea,
select {
    font-size: 16px !important;
}

/* Better focus states for accessibility */
*:focus-visible {
    outline: 2px solid #0f5132;
    outline-offset: 2px;
}

/* Improved card hover states for touch devices */
@media (hover: hover) {
    .card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(4px);
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-gray-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Lazy Loading Styles */
[data-lazy].lazy-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

[data-lazy].lazy-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Lazy load images */
img.lazy-load,
img[data-src] {
    opacity: 0;
    transition: opacity 0.4s ease-in;
    background-color: var(--color-gray-light);
    min-height: 100px;
}

img.lazy-loaded,
img[data-src].loaded {
    opacity: 1;
}

/* Native lazy loading support */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

img[loading="lazy"]:not([data-src]) {
    opacity: 1;
}

/* Lazy load background images */
[data-bg].lazy-load {
    background-image: none !important;
}

[data-bg].lazy-loaded {
    transition: background-image 0.4s ease-in;
}

/* Prevent layout shift during lazy loading */
.lazy-load {
    min-height: 100px;
}

/* Smooth fade-in animation for lazy-loaded components */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lazy-loaded {
    animation: fadeInUp 0.6s ease-out;
}
