/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set the background color for the entire page */
body {
    background-color: #000000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #ffffff;
}

/* Container to center the logo */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    text-align: center;
}

/* Add keyframes for the fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Update the logo styles */
.logo {
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto 2rem;
    animation: fadeIn 1.5s ease-out;
}

/* Wallet section styles */
.wallet-section {
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(230, 221, 221, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wallet-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.wallet-address code {
    font-family: 'Courier New', Courier, monospace;
    color: #4CAF50;
}

.copy-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.copy-button:hover {
    background: #45a049;
}

.copy-button:active {
    transform: scale(0.98);
}

/* Telegram link styles */
.telegram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.telegram-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.telegram-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Products section styles */
.products-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: start;
    margin-top: 1.5rem;
    padding: 0 2rem;
}

.product-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.product-link:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 250px;
    height: auto;
    transition: opacity 0.5s;
    display: block;
    background: #000000;
    opacity: 0;
}

.product-image.loaded {
    opacity: 1;
}

.product-link:hover .product-image {
    opacity: 1;
}

.in-progress {
    opacity: 1;  /* More faded than the default 0.85 */
    filter: grayscale(10%);  /* Slight grayscale effect */
}

.product-link:hover .in-progress {
    opacity: 0.8;  /* Less faded on hover, but still more than non-in-progress */
    filter: grayscale(0%);  /* Remove grayscale on hover */
}

/* Responsive design */
@media (max-width: 900px) {
    .products-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
        padding: 0 1rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    .logo {
        max-width: 110px;
        margin-bottom: 1.5rem;
        margin-top: 2rem;
    }
    .products-section {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 0 0.5rem;
    }
    .project {
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    .product-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }
    .wallet-section {
        max-width: 100%;
        padding: 1rem;
        margin-top: 2rem;
    }
    .wallet-address {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    .copy-button {
        width: 100%;
        padding: 0.5rem;
        font-size: 1rem;
    }
    .telegram-link {
        margin-top: 1.5rem;
        padding: 0.5rem;
    }
    .telegram-icon {
        width: 28px;
        height: 28px;
    }
    .popping-statement {
        padding-left: 2rem;
        padding-right: 2rem;
        font-size: 1.1rem;
        line-height: 1.4;
    }
    .category-badge {
        font-size: 0.85rem;
    }
    .project {
        margin-bottom: 2.2rem;
    }
    .sub-statement {
        font-size: 0.98rem;
        padding-left: 1rem;
        padding-right: 1rem;
        margin: 1rem 0 0.7rem 0;
    }
}

@media (max-width: 400px) {
    .logo {
        max-width: 200px;
    }
    .wallet-section {
        padding: 0.5rem;
    }
    .wallet-address {
        font-size: 0.75rem;
    }
    .copy-button {
        font-size: 0.9rem;
    }
    .telegram-icon {
        width: 22px;
        height: 22px;
    }
}

.project {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 140px;
    height: 18px;
    background: #333;
    border-radius: 9px;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    color: #fff;
    font-size: 0.75rem;
    text-align: center;
    line-height: 18px;
    z-index: 1;
    border: 1px solid #b1b1b1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar::before {
    content: '';
    display: block;
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    z-index: 0;
    transition: width 0.6s;
}

.progress-bar, .progress-bar * {
    position: relative;
    z-index: 1;
}

.progress-bar.complete {
    background: #4caf50;
    color: #fff;
    font-weight: normal;
}
.progress-bar.complete::before {
    display: none;
}

.popping-statement {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 2.5rem 0 0.5rem 0;
    letter-spacing: 0.5px;
    line-height: 1.1;
    padding-left: 3rem;
    padding-right: 3rem;
    text-transform: uppercase;
}

.category-badge {
    font-family: 'Poppins', Arial, sans-serif;
    display: inline-block;
    padding: 0;
    border-radius: 0;
    font-size: .8rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    background: none;
    color: #ffffff;
    letter-spacing: 0.5px;
}
.category-badge.education { background: none; color: #ffffff; }
.category-badge.famine { background: none; color: #ffffff; }
.category-badge.addiction { background: none; color: #ffffff; }
.category-badge.homelessness { background: none; color: #ffffff; }

.sub-statement {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: .9rem;
    color: #b5b4b4;
    text-align: justify;
    text-align-last: center;
    margin: 1.2rem 0 1rem 0;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-weight: 400;
}

.highlight-hardest {
    color: #e53935;
    padding-bottom: 0;
}

.founder-btn-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 2.5rem 0;
}
.founder-btn {
    margin-top: 16px;
    text-transform: uppercase;
    font-size: .8rem;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    padding: 12px 28px;
    font-family: inherit;
    text-shadow: none;
    user-select: none;
    transition: all .1s ease-in;
    background-color: #4CAF50;
    border: 1px solid #4CAF50;
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 1px;
}
.founder-btn:hover {
    background-color: #388e3c;
    color: #fff;
    border-color: #388e3c;
}

.bracket {
    position: relative;
    top: -0.12em;
}

.language-switcher {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1rem;
    z-index: 10;
}
.language-switcher a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5em;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.language-switcher a:hover {
    opacity: 1;
    text-decoration: underline;
}

.language-switcher a.active {
    font-weight: bold;
    text-decoration: underline;
    opacity: 1;
    text-underline-offset: 0.25em;
}

.projects-header {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 1.2rem 0 0.5rem 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.startup-icon {
    display: block;
    margin: 0.7rem auto 0 auto;
    max-width: 60px;
    height: auto;
}

.progress-row {
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.5rem;
}

.startup-icon.small {
    position: absolute;
    left: -65px;
    top: 60%;
    transform: translateY(-50%);
    max-width: 54px;
    height: auto;
    margin: 0;
    pointer-events: none;
}

.hide-platforms {
    display: none;
} 