* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
}

/* Navigation - White Background */
.navbar {
    background: #ffffff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e1e1e1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

/* Logo Styles */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e1306c, #c13584);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 1.5rem;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.logo-sub {
    font-size: 0.8rem;
    color: #e1306c;
    font-weight: 600;
}

/* Hamburger Menu - Always Visible */
.hamburger-menu {
    position: relative;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.hamburger-btn:hover {
    background: #f5f5f5;
}

.hamburger-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #e1306c;
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #e1306c;
}

/* Mobile Menu Dropdown */
.mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid #e1e1e1;
    z-index: 1001;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.mobile-link:last-child {
    margin-bottom: 0;
}

.mobile-link:hover {
    background: linear-gradient(135deg, #e1306c, #c13584);
    color: white;
    transform: translateX(5px);
}

.mobile-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Main Content */
main {
    margin-top: 42px;
    padding: 0 0;
    background: #f1f1f1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}


/* Minimal Footer Styles */
.minimal-footer {
    background: #f8f9fa;
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #6c757d;
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.footer-link {
    color: #495057;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    position: relative;
}

.footer-link:hover {
    color: #e1306c;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #e1306c;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .minimal-footer {
        padding: 1rem 0;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .footer-link {
        font-size: 0.8rem;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-menu {
        position: fixed;
        top: 70px; 
        right: 1rem;
        width: auto;
    }
}

@media (max-width: 480px) {
    .logo-main {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .search-container {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .mobile-menu {
        min-width: auto; 
        right: 1rem;
    }
}


/* Fix for side-to-side movement on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Prevents horizontal scroll */
    position: relative;
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem; /* Reduce navbar padding */
    }
    
    .profile-card {
        padding: 2rem 1rem; /* Reduce profile card padding */
    }
    
    .profile-stats {
        gap: 1rem; /* Shrink the gap between posts/followers stats */
    }

    .profile-username {
        font-size: 1.5rem; /* Shrink long usernames */
        word-break: break-all;
    }
}