body {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Mobile-first approach - hide web elements on mobile */
@media (max-width: 768px) {

    /* Hide desktop navbar completely on mobile */
    .desktop-navbar {
        display: none !important;
    }

    /* Hide wave effects on mobile for cleaner look */
    .wave-effects {
        display: none !important;
    }

    /* Mobile app-like styling */
    body {
        background-color: #f1f5f9;
        padding-bottom: 80px;
        overflow-x: hidden;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* Mobile hero section - more compact */
    .mobile-hero {
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
        border-radius: 0 0 24px 24px;
        margin: 0;
        padding: 2.5rem 1.25rem 3rem 1.25rem;
        width: 100%;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Mobile card styling */
    .mobile-card {
        background: white;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        margin-bottom: 1.25rem;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.2s ease;
    }

    .mobile-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }

    /* Mobile section spacing */
    .mobile-section {
        padding: 2rem 1.25rem;
        margin: 0;
        width: 100%;
        min-height: auto;
    }

    /* Hide complex illustrations on mobile */
    .complex-illustration {
        display: none;
    }

    /* Simplified mobile illustrations */
    .mobile-illustration {
        display: block;
        height: 120px;
        background: linear-gradient(135deg, var(--gradient-from), var(--gradient-to));
        border-radius: 12px 12px 0 0;
        position: relative;
        overflow: hidden;
    }



    /* Mobile app header */
    .mobile-app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: white;
        z-index: 99;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Adjust main content for mobile headers */
    .mobile-main-content {
        margin-top: 60px;
        width: 100%;
    }

    /* Mobile hero section adjustments */
    .mobile-hero {
        margin-top: 0;
        padding-top: 2.5rem;
    }

    /* Remove mobile FAB - using bottom nav emergency button instead */

    /* Mobile typography adjustments */
    .mobile-title {
        font-size: 1.75rem;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .mobile-subtitle {
        font-size: 1rem;
        opacity: 0.9;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    /* Mobile button styling */
    .mobile-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        font-weight: 600;
        font-size: 1rem;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        min-height: 48px;
    }

    .mobile-btn:active {
        transform: scale(0.98);
    }

    /* Hide footer wave effects on mobile */
    .footer-wave-effects {
        display: none;
    }

    /* Mobile footer */
    .mobile-footer {
        background: #16a34a;
        border-radius: 24px 24px 0 0;
        margin: 2rem 0 0 0;
        padding: 2.5rem 1.25rem 1.5rem 1.25rem;
        width: 100%;
    }

    /* Mobile grid adjustments */
    .mobile-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    /* Mobile stats grid */
    .mobile-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2rem 0 0 0;
    }

    /* Mobile navigation active state */
    .bottom-nav-item.active {
        color: #22c55e;
        transform: scale(1.05);
    }

    /* Mobile pull-to-refresh indicator */
    .mobile-refresh-indicator {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        font-size: 0.8rem;
        color: #666;
        z-index: 98;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* Mobile swipe indicators */
    .mobile-swipe-indicator {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 0.5rem;
    }

    .mobile-swipe-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
    }

    .mobile-swipe-dot.active {
        background: white;
    }

    /* Fix mobile container issues */
    .mobile-only {
        width: 100%;
        max-width: 100%;
        margin: 0;
        /* padding-left: 0;
        padding-right: 0; */
    }

    /* Mobile hero improvements */
    .mobile-hero .mobile-stats-grid>div {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 1rem;
        text-align: center;
        backdrop-filter: blur(10px);
    }

    /* Mobile card content improvements */
    .mobile-card .p-4 {
        padding: 1.25rem;
    }

    /* Mobile illustration improvements */
    .mobile-illustration .absolute.inset-0 {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile badge styling */
    .mobile-illustration .absolute.top-2.right-2 {
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 0.25rem 0.5rem;
    }

    /* Bottom navigation improvements */
    .bottom-nav-item {
        padding: 0.75rem 0.5rem;
        transition: all 0.2s ease;
        border-radius: 12px;
        margin: 0 0.125rem;
        min-width: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .bottom-nav-item.active {
        background: rgba(34, 197, 94, 0.1);
        color: #22c55e;
        transform: scale(1.05);
    }

    /* Emergency button in bottom nav */
    .emergency-btn {
        background: linear-gradient(135deg, #ef4444, #dc2626) !important;
        color: white !important;
        border-radius: 16px;
        margin: 0 0.25rem;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
        animation: pulse-emergency 2s infinite;
        padding: 0.5rem 0.75rem !important;
        min-width: 70px;
    }

    @keyframes pulse-emergency {

        0%,
        100% {
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
            transform: scale(1);
        }

        50% {
            box-shadow: 0 6px 16px rgba(239, 68, 68, 0.6);
            transform: scale(1.02);
        }
    }

    /* Mobile app header improvements */
    .mobile-app-header .w-8.h-8 {
        width: 2.5rem;
        height: 2.5rem;
    }

    .mobile-app-header button {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 12px;
        transition: all 0.2s ease;
    }

    .mobile-app-header button:active {
        transform: scale(0.95);
        background: rgba(0, 0, 0, 0.1);
    }

    /* Mobile section headers */
    .mobile-section h2 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .mobile-section p {
        font-size: 0.9rem;
        color: #64748b;
        margin-bottom: 1.5rem;
    }
}

/* Show desktop elements only on larger screens */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }

    .mobile-app-header,
    .mobile-fab {
        display: none !important;
    }
}

.gradient-bg {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
}

.hero-bg {
    background: linear-gradient(rgba(34, 197, 94, 0.9), rgba(21, 128, 61, 0.95)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="water" patternUnits="userSpaceOnUse" width="100" height="50"><path d="M0,25 Q25,10 50,25 T100,25" stroke="%2322c55e" stroke-width="2" fill="none" opacity="0.3"/></pattern></defs><rect width="1200" height="600" fill="%23ffffff"/><rect width="1200" height="600" fill="url(%23water)"/></svg>');
    background-size: cover;
    background-position: center;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.2);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

.animate-delay-4 {
    animation-delay: 0.8s;
}

/* Animasi untuk ilustrasi */
.water-animation path {
    animation: wave 3s ease-in-out infinite;
}

.water-animation path:nth-child(2) {
    animation-delay: 0.5s;
}

.water-animation path:nth-child(3) {
    animation-delay: 1s;
}

@keyframes wave {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

.house-animation {
    animation: gentle-sway 4s ease-in-out infinite;
}

@keyframes gentle-sway {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(1deg);
    }
}

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

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.rain-animation circle {
    animation: rain-fall 2s linear infinite;
}

.rain-animation circle:nth-child(1) {
    animation-delay: 0s;
}

.rain-animation circle:nth-child(2) {
    animation-delay: 0.4s;
}

.rain-animation circle:nth-child(3) {
    animation-delay: 0.8s;
}

.rain-animation circle:nth-child(4) {
    animation-delay: 1.2s;
}

.rain-animation circle:nth-child(5) {
    animation-delay: 1.6s;
}

@keyframes rain-fall {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

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

@keyframes people-wave {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.navbar-blur {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 1);
}

.logo-text {
    font-family: 'Lobster', cursive;
}

/* Bottom Navigation Styles */
.bottom-nav-item.active {
    color: #22c55e;
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

.emergency-btn {
    transform: scale(1.1);
    animation: pulse-emergency 2s infinite;
}

@keyframes pulse-emergency {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

/* Add bottom padding to body on mobile to account for bottom nav */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }
}



/* Card illustration styles */
.card-illustration {
    width: 100%;
    height: 100%;
    object-fit: cover;
}