:root {
    --bg-color: #0b0c0e;
    --card-bg: #16181c;
    --primary-orange: #ff5e14;
    --text-main: #ffffff;
    --text-sub: #9ca3af;
    --online-green: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container designed to mimic a modern mobile app view */
.app-container {
    width: 100%;
    max-width: 480px;
    background-color: #000000;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* Header Styles */
.header {
    margin-bottom: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.logo span {
    color: var(--primary-orange);
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-sub);
    transition: all 0.2s ease;
    white-space: nowrap; /* Text ko tootne se rokta hai */
}

.tab.active {
    background-color: var(--primary-orange);
    color: var(--text-main);
}

.tab i {
    width: 16px;
    height: 16px;
}

/* Profile Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Profile Cards */
.card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: inset 0 -60px 40px rgba(0, 0, 0, 0.8);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    z-index: 2;
}

/* Floating elements inside the card */
.badge-online {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
}

.badge-online::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--online-green);
    border-radius: 50%;
    display: inline-block;
}

.profile-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 3;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.profile-location {
    font-size: 12px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-location::before {
    content: '•';
    color: var(--text-sub);
}

/* Floating Action Phone Button */
.call-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: var(--primary-orange);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(255, 94, 20, 0.3);
    transition: transform 0.1s ease;
}

.call-btn:active {
    transform: scale(0.92);
}

/* =======================================================
   ALL MOBILE DEVICES VIEWPORTS (Media Queries)
   ======================================================= */
@media (max-width: 768px) {
    body {
        padding: 0; /* Mobile screen par side ki faltu padding hatayi */
        background-color: #000000;
    }

    .app-container {
        max-width: 100%;
        border-radius: 0; /* Pure screen par edges chipak jayein native app ki tarah */
        box-shadow: none;
        padding: 12px;
    }

    .header {
        margin-bottom: 14px;
    }

    .logo {
        font-size: 24px;
        margin-bottom: 12px;
    }

    /* Agar mobile screen choti ho toh tabs bina wrap huye scroll ho sakein */
    .nav-tabs {
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none; /* Firefox clear hidden bar */
    }

    .nav-tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari hidden bar */
    }

    .tab {
        padding: 6px 14px;
        font-size: 13px;
    }

    .grid {
        gap: 8px; /* Mobile par gap thoda kam kiya taaki photos achhi dikhein */
    }

    .profile-name {
        font-size: 16px;
    }

    .call-btn {
        width: 36px;
        height: 36px;
        bottom: 8px;
        right: 8px;
    }
}