* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background:  #000000 100% ;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.mobile-container {
    width: 375px;
    height: 812px;
    background-color: #000;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(235, 237, 240, 0.5);
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
}

.frame-number {
    color: #888;
}

.status-icon {
    color: #00ff41;
    font-size: 14px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 0.5px solid #333;
    background-color: #000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lock-icon {
    color: #fff;
    font-size: 16px;
}

.username {
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-right i {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* Profile Section */
.profile-section {
    padding: 20px;
    background-color: #000;
}

.profile-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 16px;
}

.profile-pic-container {
    position: relative;
}

.profile-pic {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #333;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.add-story-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 26px;
    height: 26px;
    background-color: #0095f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #000;
    cursor: pointer;
}

.add-story-btn i {
    color: #fff;
    font-size: 12px;
}

.profile-details {
    flex: 1;
    padding-top: 4px;
}

.profile-name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.stats-row {
    display: flex;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    color: #8e8e8e;
    font-size: 14px;
    font-weight: 400;
}

/* Bio Section */
.bio-section {
    margin-bottom: 20px;
}

.bio-text {
    color: #fff;
    font-size: 14px;
    font-style: italic;
    line-height: 1.4;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.edit-btn, .share-btn {
    flex: 1;
    padding: 7px 16px;
    background-color: #363636;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.edit-btn:hover, .share-btn:hover {
    background-color: #404040;
}

.bookmark-btn {
    padding: 7px 12px;
    background-color: #363636;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bookmark-btn:hover {
    background-color: #404040;
}

.bookmark-btn i {
    font-size: 14px;
}

/* New Post Section */
.new-post-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
}

.new-post-btn {
    width: 64px;
    height: 64px;
    border: 2px dashed #8e8e8e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.new-post-btn:hover {
    border-color: #fff;
}

.new-post-btn i {
    color: #8e8e8e;
    font-size: 20px;
}

.new-text {
    color: #8e8e8e;
    font-size: 12px;
    font-weight: 400;
}

/* Content Navigation */
.content-nav {
    display: flex;
    justify-content: center;
    border-bottom: 0.5px solid #333;
    margin-bottom: 0;
}

.nav-tab {
    flex: 1;
    padding: 14px 0;
    display: flex;
    justify-content: center;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.nav-tab i {
    color: #8e8e8e;
    font-size: 18px;
}

.nav-tab.active {
    border-bottom-color: #fff;
}

.nav-tab.active i {
    color: #fff;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
   
}

.post-item {
    aspect-ratio: 1;
    background-color: #000;
    overflow: hidden;
}

.post-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.post-item:hover img {
    transform: scale(1.05);
}

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background-color: #000;
    border-top: 0.5px solid #333;
    padding: 12px 0;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

.nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-item i {
    color: #8e8e8e;
    font-size: 22px;
}

.nav-item.active i {
    color: #fff;
}

.profile-nav-pic {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-nav-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 414px) {
    body {
        padding: 10px;
    }
    
    .mobile-container {
        width: 100%;
        max-width: 375px;
        height: 100vh;
        border-radius: 0;
    }
}

/* Hover Effects */
.nav-item:hover i {
    color: #fff;
    transform: scale(1.1);
}

.header-right i:hover {
    color: #0095f6;
    transform: scale(1.1);
}

/* Additional Styling for Perfect Match */
.profile-section {
    border-bottom: none;
}

.stats-row {
    margin-top: 2px;
}

.bio-text {
    font-family: Georgia, serif;
}
