/* Instagram Style CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: keep-all;
}
a{
    text-decoration: none;
    color: inherit;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #262626;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
    height: 100vh;
    height: 100dvh;
}

/* Background Video */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: contrast(1.1) brightness(110%) saturate(1.5);
}

/* Background Overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Instagram Layout */
.instagram-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    background-color: #00000000;
}

/* Left Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 245px;
    height: 100vh;
    background-color: rgb(0 0 0 / 16%);
    backdrop-filter: blur(30px);
    border-right: 1px solid #ffffff3f;
    z-index: 1000;
    /* overflow-y: auto; */
    transition: all .3s ease-in-out;
}

.sidebar-content {
    padding: 8px 12px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Logo Section */
.logo-section {
    padding: 25px 12px 16px;
    margin-bottom: 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.211);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #262626;
}

.logo img {
    max-width: 120px;
    height: auto;
    display: block;
    filter: invert(1);
    transition: all .3s ease-in-out;
}

.logo-text {
    background: linear-gradient(45deg, #405de6, #5b51d8, #833ab4, #c13584, #e1306c, #fd1d1d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Navigation */
.main-nav {
    flex: 1;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px;
    color: #e5e5e5;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    transition: background-color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    /* font-weight: 600; */
    background-color: #f2f2f2;
    color: #262626;
}

.nav-item.active .nav-link {
    font-weight: 700;
}

.nav-link svg {
    margin-right: 16px;
    width: 24px;
    height: 24px;
}

.profile-pic-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 16px;
}

.profile-pic-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* More Section */
.more-section {
    margin-top: auto;
    padding-top: 20px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-links .nav-link {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.contact-links .nav-link:hover {
    transform: none;
    background-color: rgba(0, 0, 0, 0.359);
    color: #ffffffdd;
}
    


/* Main Content */
.main-content {
    margin-left: 245px;
    flex: 1;
    max-width: none;
    width: calc(100% - 245px);
    padding: 0;
    background-color: #00000000;
    /* backdrop-filter: blur(5px); */
    min-height: 100vh;
}

/* Stories Section */
.stories-section {
    padding: 16px 0;
    border-bottom: 1px solid #dbdbdb;
    margin-bottom: 24px;
}

.stories-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    cursor: pointer;
}

.story-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 2px;
    margin-bottom: 4px;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ffffff;
    object-fit: cover;
}

.story-username {
    font-size: 12px;
    color: #262626;
    text-align: center;
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Posts Feed */
.posts-feed {
    max-width: 470px;
}

.post {
    background-color: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    margin-bottom: 24px;
}

/* Post Header */
.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
}

.post-user {
    display: flex;
    align-items: center;
}

.post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 2px;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid #ffffff;
    object-fit: cover;
}

.post-user-info {
    display: flex;
    flex-direction: column;
}

.post-username {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    text-decoration: none;
}

.post-location {
    font-size: 12px;
    color: #8e8e8e;
}

.post-options {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #262626;
}

/* Post Image */
.post-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
}

.post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Actions */
.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px 8px;
}

.post-actions-left {
    display: flex;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #262626;
    transition: color 0.2s ease;
}

.action-btn:hover {
    color: #8e8e8e;
}

.action-btn svg {
    width: 24px;
    height: 24px;
}

/* Post Content */
.post-content {
    padding: 0 16px 16px;
}

.post-likes {
    margin-bottom: 8px;
}

.likes-count {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.post-caption {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.post-caption .post-username {
    font-weight: 600;
    margin-right: 8px;
}

.caption-text {
    color: #262626;
}

.post-hashtags {
    margin-bottom: 8px;
}

.hashtag {
    color: #00376b;
    text-decoration: none;
    margin-right: 4px;
    font-size: 14px;
}

.hashtag:hover {
    text-decoration: underline;
}

.post-comments {
    margin-bottom: 8px;
}

.view-comments {
    background: none;
    border: none;
    color: #8e8e8e;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.view-comments:hover {
    color: #262626;
}

.post-time {
    font-size: 10px;
    color: #8e8e8e;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.2px;
}



/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #00000000;
    z-index: 1000;
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 10px;
}
.mobile-logo,
.mobile-menu-toggle {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.21);
    backdrop-filter: blur(20px);
    bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px;
}
.mobile-logo{line-height: 1; vertical-align: middle;}
.mobile-logo img {
    max-height: 100%;
    filter: invert(1);
}

.mobile-menu-toggle {
    /* background: none; */
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    
    aspect-ratio: 1/1;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: rgb(255, 255, 255);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    height: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column-reverse;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* margin-bottom: 40px; */
}
.mobile-menu-logo{display: flex; align-items: center;justify-content: center;}
.mobile-menu-logo img {
    filter: invert(1);
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: white;
}

.mobile-menu-list {
    list-style: none;
    margin: 5rem 0 auto 0;
    padding: 0;
    /* flex: 1; */
    /* text-align: right; */

}

.mobile-menu-list li {
    margin-bottom: 0;
}

.mobile-menu-link {
    display: block;
    padding: 10px 0;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease;
}

.mobile-menu-link:hover {
    color: #ff6b6b;
}

.mobile-menu-contacts {
    padding: 40px 12px 20px;
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
}

.mobile-contact-link {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 12px;
    padding-top: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.mobile-contact-link:hover {
    color: white;
}

.mobile-social-links {
    display: flex;
    gap: 20px;
    flex-direction: row-reverse;
}

.mobile-social-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.mobile-social-link:hover {
    color: #ff6b6b;
}

/* Hover Effects and Transitions */
.story-item:hover .story-avatar {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.post-avatar:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.action-btn:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar,
.right-sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.right-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb,
.right-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.right-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

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

/* Focus States for Accessibility */
.nav-link:focus,
.action-btn:focus,
.btn:focus {
    outline: 2px solid #0095f6;
    outline-offset: 2px;
    border-radius: 4px;
}



/* Responsive Design */
@media (max-width: 1264px) {
    .main-content {
        margin-right: 0;
        max-width: none;
        width: calc(100% - 245px);
    }
}

/* Tablet/Medium Screen - Icon Only Navigation */
@media (max-width: 1124px) {
    .logo-section{display: flex; justify-content: center; }
    .sidebar {
        width: 80px;
    }
    
    .main-content {
        margin-left: 80px;
        width: calc(100% - 80px);
    }
    
    .logo-section {
        padding: 20px 8px 12px;
        text-align: center;
    }
    
    .logo img {
        max-width: 40px;
        height: auto;
    }
    
    .nav-text {
        display: none;
    }
    
    .nav-link {
        justify-content: center;
        padding: 12px 8px;
    }
    
    .nav-link svg {
        margin-right: 0;
    }
    
    .sidebar-content {
        padding: 8px;
    }
    
    .more-section .nav-text {
        display: none;
    }
    
    /* Tooltip effect for icon-only navigation */
    .nav-link {
        position: relative;
    }
    
    .nav-link:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 60px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 1001;
        opacity: 0;
        animation: fadeIn 0.2s ease forwards;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: none;
        padding: 0;
        /* padding-top: 60px;  */
        /* Space for mobile header */
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .stories-section {
        padding: 16px;
        margin-bottom: 0;
        border-bottom: none;
    }
    
    .post {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 0;
        border-bottom: 8px solid #fafafa;
    }
    
    /* Mobile Stories Adjustment */
    .stories-container {
        gap: 12px;
    }
    
    .story-item {
        min-width: 64px;
    }
    
    .story-avatar {
        width: 64px;
        height: 64px;
    }
    
    .story-username {
        max-width: 64px;
    }
}

@media (max-width: 680px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-stats {
        justify-content: center;
        gap: 20px;
    }
}
/* Large Desktop */
@media (min-width: 1400px) {
    
    .hero-container{max-width: auto; margin: 0;}
    .hero-title{font-size: 3.25rem;}
    .brand-highlight{font-size: 6.5rem;}
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Desktop */
@media (max-width: 1399px) and (min-width: 1025px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .brand-highlight {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-container {
        padding: 0 40px;
    }
    .accordion-title {font-size: 2.7rem;}
    
}

@media (max-width: 768px) and (min-width: 481px) {
    .nav-link {
        font-size: 12px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .instagram-layout {
        min-height: 100dvh;
    }
}

/* Extra Small Mobile */
@media (max-width: 380px) {
    /* Placeholder for extra small mobile styles */
}

/* Footer Styles */
.footer {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer-content {
    padding: 50px 40px 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #667eea;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cccccc;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item:hover {
    color: #667eea;
}

.footer-contact-item svg {
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal-link {
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: #667eea;
}

/* Footer Mobile Responsive */
@media (max-width: 768px) {
    .footer-content {
        padding: 40px 20px 0;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h3.footer-title {
        font-size: 1.3rem;
    }
    
    .footer-section h4.footer-subtitle {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 30px 15px 0;
    }
    
    .footer-top {
        gap: 25px;
    }
    
    .footer-section h3.footer-title {
        font-size: 1.2rem;
    }
    
    .footer-section:last-child .footer-contact{
        text-align: center;
        align-items: center;
    }
    
    .footer-description {
        font-size: 0.85rem;
    }
    
    .footer-social-link {
        width: 35px;
        height: 35px;
    }
    
    .footer-legal {
        gap: 15px;
    }
}