* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="24" font-size="24">🦐</text></svg>'), auto;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: url('assets/background.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #fff;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 2rem;
}

.content {
    text-align: center;
    max-width: 600px;
}

.logo {
    max-width: 100%;
    width: clamp(280px, 60vw, 500px);
    height: auto;
    animation: pulse 2s ease-in-out infinite;
    margin-bottom: 1rem;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.5));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.tagline {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
    opacity: 0.95;
}

.buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="24" font-size="24">🦐</text></svg>'), pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-x {
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-x:hover {
    border-color: #1da1f2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(29, 161, 242, 0.4);
}

.btn-dex {
    border-color: rgba(0, 230, 118, 0.3);
}

.btn-dex:hover {
    border-color: #00e676;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 230, 118, 0.4);
}

.btn-memes {
    border-color: rgba(255, 107, 53, 0.3);
}

.btn-memes:hover {
    border-color: #ff6b35;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 53, 0.4);
}

.btn-emoji {
    font-size: 1.2rem;
}

/* Memes Gallery Page */
.memes-page {
    overflow-y: auto;
}

.header {
    z-index: 1;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.back-link {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="24" font-size="24">🦐</text></svg>'), pointer;
}

.back-link:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) translateX(-3px);
}

.page-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(2rem, 8vw, 4rem);
    text-shadow: 3px 3px 0 #ff6b35, 6px 6px 0 rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

.gallery-container {
    flex: 1;
    z-index: 1;
    padding: 0 2rem 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
    aspect-ratio: 1 / 1;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="24" font-size="24">🦐</text></svg>'), pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contract Address Bar */
.ca-bar {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
    font-family: 'Poppins', sans-serif;
}

.ca-label {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.ca-address {
    font-family: monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ca-copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="24" font-size="24">🦐</text></svg>'), pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ca-copy-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.ca-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.ca-copy-btn:active {
    transform: scale(0.95);
}

.ca-copied {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #00c853;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.ca-copied.show {
    opacity: 1;
    top: -2.5rem;
}

.footer {
    z-index: 1;
    text-align: center;
    padding: 1rem;
    padding-bottom: 6.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .buttons {
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .ca-bar {
        width: calc(100% - 2rem);
        max-width: 400px;
    }
    
    .ca-address {
        flex: 1;
        max-width: none;
    }
}

@media (max-width: 400px) {
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 220px;
    }
    
    .back-link {
        position: static;
        transform: none;
        display: inline-block;
        margin-bottom: 1rem;
    }
    
    .back-link:hover {
        transform: translateX(-3px);
    }
    
    .header {
        padding: 1.5rem 1rem;
    }
    
    .gallery-container {
        padding: 0 1rem 1.5rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
}
