* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --accent-teal: #00d4ff;
    --accent-cyan: #00ffcc;
    --accent-blue: #0099ff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-logo-image {
    max-width: 250px;
    width: 80%;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 0;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.content-section:nth-child(even) {
    background-color: var(--bg-light);
}

.content-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.content-section > .container > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-section:nth-child(even) .feature-card {
    background-color: var(--bg-light);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* Contact Form */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form input,
#contact-form textarea {
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--bg-white);
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
}

#contact-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact-form button:hover {
    background-color: #1a1a1a;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    border-top: 3px solid var(--accent-teal);
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

#ipfs-hash {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    word-break: break-all;
    color: var(--accent-teal);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-logo-image {
        max-width: 300px;
        margin-bottom: 1.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
}


/* NFT Styles */
.wallet-btn {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.wallet-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.wallet-status {
    text-align: center;
    margin: 1rem 0;
    font-weight: bold;
}

.nft-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.nft-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.nft-card img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.nft-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.nft-card h3 {
    margin: 0.5rem 0;
    color: #fff;
}

.token-id {
    color: #667eea;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.description {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.view-details-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 1rem;
    transition: transform 0.2s;
}

.view-details-btn:hover {
    transform: scale(1.02);
}

.loading-message {
    text-align: center;
    color: #ccc;
    padding: 2rem;
}

.wallet-address {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.wallet-address .wallet-state {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.wallet-address.connected .wallet-state {
    color: #065f46;
    background: #d1fae5;
}

.wallet-address.info .wallet-state {
    color: #1e40af;
    background: #dbeafe;
}

.wallet-address.error .wallet-state {
    color: #991b1b;
    background: #fee2e2;
}

.wallet-address .wallet-main {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.wallet-address .wallet-full {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: var(--text-light);
    word-break: break-all;
}
