:root {
    --primary-color: #a259ff;
    --secondary-color: #7b32d7;
    --background-dark: #222;
    --text-light: #eee;
    --border-radius: 8px;
}

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

body {
    position: relative;
    overflow-x: hidden;
    z-index: 1;
    font-family: "Segoe UI", sans-serif;
    background-color: #111;
    color: var(--text-light);
}

header {
    padding: 30px 20px 15px;
    text-align: center;
    background-color: #1a1a1a;
    z-index: 2;
}

.logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px #a259ff88;
    background: #fff;
    transition: box-shadow 0.3s;
}

.logo:hover {
    box-shadow: 0 0 40px #a259ffcc;
}

header h1 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 8px;
}

header p {
    color: #bbb;
    font-size: 0.9em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    z-index: 2;
}

.search-bar {
    text-align: center;
    margin-bottom: 20px;
}

#searchInput {
    padding: 8px;
    width: 100%;
    max-width: 350px;
    border-radius: var(--border-radius);
    border: 1px solid #333;
    background: var(--background-dark);
    color: var(--text-light);
    font-size: 0.95em;
}

.section-title {
    font-size: 1.6em;
    margin: 15px 0 10px;
    text-align: left;
    text-transform: uppercase;
}

.mainnet-title {
    color: var(--primary-color);
}

.testnet-title {
    color: #ff914d;
}

.project-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    justify-content: center;
}

.project-card {
    background: var(--background-dark);
    border: 1px solid #333;
    border-radius: var(--border-radius);
    padding: 12px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.03);
    display: grid;
    place-items: center;
    min-height: 260px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(162, 89, 255, 0.2), 0 0 0 1px rgba(162, 89, 255, 0.3);
    background: #1c1c1c;
    border-color: var(--primary-color);
}

.card-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    background: #fff;
    margin-bottom: 8px;
}

.project-info h3 {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 6px;
}

.project-info p {
    color: #bbb;
    font-size: 0.85em;
    margin-bottom: 10px;
    min-height: 50px;
    max-width: 90%;
}

.buttons a {
    display: inline-block;
    margin: 0 6px 0 0;
    padding: 6px 12px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85em;
    transition: background 0.2s;
}

.buttons a:hover {
    background: var(--secondary-color);
}

.why-choose {
    max-width: 1200px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
    z-index: 2;
}

.why-choose h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.why-choose .subtitle {
    color: #aaa;
    font-size: 1em;
    margin-bottom: 30px;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.reason-card {
    background: var(--background-dark);
    border: 1px solid #333;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.03);
    display: grid;
    place-items: center;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(162, 89, 255, 0.2), 0 0 0 1px rgba(162, 89, 255, 0.3);
    background: #1c1c1c;
    border-color: var(--primary-color);
}

.icon {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.reason-card h3 {
    color: #fff;
    font-size: 1em;
    margin-bottom: 6px;
}

.reason-card p {
    color: #bbb;
    font-size: 0.85em;
    line-height: 1.4;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #777;
    background: #1a1a1a;
    z-index: 2;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .logo {
        width: 120px;
        height: 120px;
    }
    header h1 {
        font-size: 1.6em;
    }
    .section-title {
        font-size: 1.4em;
    }
    .project-card, .reason-card {
        min-height: 240px;
    }
    .project-info p, .reason-card p {
        font-size: 0.8em;
    }
    .why-choose h2 {
        font-size: 1.6em;
    }
    .why-choose .subtitle {
        font-size: 0.9em;
    }
    .grid-cards {
        grid-template-columns: 1fr;
    }
}