:root {
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --nav-background: rgba(28, 28, 28, 0.95);
    --card-background: #2a2a2a;
    --accent-color: #ff4757;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-background);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.featured {
    background-color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

main {
    margin-top: 80px;
    padding: 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    border-radius: 12px;
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.theme-toggle, .notification {
    cursor: pointer;
    padding: 0.5rem;
}

.user-cube {
    background: var(--accent-color);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav {
        padding: 0.5rem 1rem;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--nav-background);
        padding: 0.8rem;
        display: flex;
        justify-content: space-around;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .theme-toggle, .notification {
        display: none;
    }

    .user-cube {
        padding: 0.3rem;
    }

    main {
        margin-top: 60px;
        margin-bottom: 60px;
        padding: 0.5rem;
    }

    .gallery {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0.5rem;
    }

    .gallery-item {
        background: transparent;
        margin-bottom: 1rem;
    }

    .gallery-item img {
        border-radius: 12px;
    }

    .avatar-item {
        aspect-ratio: 1/1 !important;
    }

    .phone-item {
        aspect-ratio: 9/16 !important;
    }

    .gallery-item {
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    .gallery-item img {
        border-radius: 8px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .overlay-content h3 {
        font-size: 0.9rem;
        margin: 0;
    }

    .featured {
        display: none;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr !important;
    }

    .nav-links a {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .logo img {
        height: 24px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .nav-links {
        display: none;
    }

    main {
        margin-bottom: 1rem;
    }
}

@media (hover: none) {
    .overlay {
        opacity: 1;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    }

    .gallery-item:active img {
        transform: scale(1.02);
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
    }
}

.gallery-item img {
    will-change: transform;
    backface-visibility: hidden;
}

.gallery-item {
    aspect-ratio: 16/9;
}

.phone-item {
    aspect-ratio: 9/16 !important;
    background: transparent;
}

.avatar-item {
    aspect-ratio: 1/1 !important;
    background: transparent;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0.5rem;
    }

    .gallery-item {
        background: transparent;
        margin-bottom: 1rem;
    }

    .gallery-item img {
        border-radius: 12px;
    }
} 