@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #0a0a0a;
    --surface: rgba(18, 18, 18, 0.78);
    --surface-solid: #171717;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.76);
    --green: #00cc66;
    --green-strong: #00ff66;
    --blue: #007bff;
    --blue-strong: #1d8cff;
    --gray: #777777;
    --red: #ff4444;
    --purple: #8f63ff;
    --purple-soft: rgba(143, 99, 255, 0.16);
    --glass-border: rgba(255, 255, 255, 0.14);
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Montserrat", "Space Grotesk", "Segoe UI", sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.subpage-section {
    padding-top: 50px !important;
}

#bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

a,
button {
    font: inherit;
}

.section {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.nav-wrap {
    position: sticky;
    top: 18px;
    z-index: 20;
    display: flex;
    justify-content: center;
    padding: 0 24px;
    pointer-events: none;
}

.navbar {
    width: min(1180px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 14px 22px;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.68);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    pointer-events: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    white-space: nowrap;
}

.brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--green-strong);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.language-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.flag-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.flag-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flag-btn:hover,
.flag-btn.is-active {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.hero {
    min-height: 500px;
    padding: 120px 0 76px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    margin: 0;
    color: var(--green-strong);
    font-size: 56px;
    line-height: 1.05;
    font-weight: 900;
    text-shadow: 0 0 4px rgba(0, 255, 102, 0.6), 0 0 10px rgba(0, 255, 102, 0.4);
}

.hero-subtitle {
    margin: 12px 0 0;
    font-size: 22px;
    font-weight: 700;
}

.hero p {
    margin: 12px auto 0;
    max-width: 640px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 16px;
}

.button-row {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.button-row--left {
    justify-content: flex-start;
}

.btn {
    --btn-bg: var(--surface-solid);
    --btn-bg-hover: #222222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 24px;
    border: 0;
    border-radius: 10px;
    background: var(--btn-bg);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.btn:hover,
.btn:focus-visible {
    background: var(--btn-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.btn--blue {
    --btn-bg: var(--blue);
    --btn-bg-hover: var(--blue-strong);
}

.btn--green {
    --btn-bg: var(--green);
    --btn-bg-hover: var(--green-strong);
}

.btn--gray {
    --btn-bg: var(--gray);
    --btn-bg-hover: #969696;
}

.btn--large {
    min-height: 62px;
    padding: 18px 40px;
    font-size: 18px;
}

.about {
    min-height: 650px;
    padding: 80px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 54px;
    align-items: stretch;
}

.about-content {
    text-align: left;
}

.about-content h2 {
    margin: 0 0 20px;
    font-size: 36px;
    font-weight: 900;
}

.about-content h3 {
    margin: 30px 0 15px;
    font-size: 24px;
    font-weight: 800;
}

.about-content p {
    margin: 0 0 20px;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.65;
}

.bold {
    font-weight: 800;
}

.bold-red {
    color: var(--red);
    font-weight: 800;
}

.bold-green {
    color: var(--green);
    font-weight: 800;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px;
}

.btn--social {
    width: 306px;
    min-height: 48px;
    justify-content: flex-start;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(143, 99, 255, 0.24), rgba(18, 18, 18, 0.78) 58%);
    border: 1px solid rgba(178, 148, 255, 0.38);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn--social:hover,
.btn--social:focus-visible {
    background: linear-gradient(135deg, rgba(143, 99, 255, 0.34), rgba(30, 30, 30, 0.92) 60%);
    border-color: rgba(201, 181, 255, 0.7);
}

.btn--social img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 22px;
}

.btn--donate {
    margin-top: 4px;
}

.about-stats {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 18px;
}

.stat {
    min-height: 0;
    padding: 20px;
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.86);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat strong {
    display: block;
    color: var(--green-strong);
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
}

.stat span {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.content-section {
    padding: 92px 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading h2,
.contact h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 900;
}

.section-heading p {
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.content-card {
    min-width: 0;
    min-height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(18, 18, 18, 0.82);
    border: 1px solid var(--glass-border);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
    display: flex;
    flex-direction: column;
}

.content-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--muted);
    text-decoration: none;
}

.content-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.project-card .content-card__media img {
    object-fit: cover;
}

.content-card__body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.content-card__body h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
}

.content-card__body p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 15px;
}

.content-tags {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.content-tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 204, 102, 0.13);
    color: var(--green-strong);
    border: 1px solid rgba(0, 255, 102, 0.22);
    font-size: 12px;
    font-weight: 800;
}

.content-card__links {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mini-link {
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-link:hover,
.mini-link:focus-visible {
    background: rgba(0, 204, 102, 0.28);
    transform: translateY(-1px);
}

.mini-link.is-disabled {
    opacity: 0.56;
    pointer-events: none;
}

.video-thumb__placeholder {
    font-weight: 900;
    letter-spacing: 0;
}

.video-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.video-music strong {
    color: var(--green-strong);
}

.content-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(18, 18, 18, 0.55);
}

.section-action {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.contact {
    padding: 80px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 46px;
    align-items: center;
}

.contact-text {
    max-width: 790px;
    text-align: left;
}

.contact-text p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.contact-panel {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(16, 16, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.contact-panel h3 {
    position: relative;
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 900;
}

.contact-step {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-step span {
    color: var(--green-strong);
    font-weight: 900;
}

.contact-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    font-weight: 700;
}

.popup {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 50;
    max-width: 320px;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--green);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.popup.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.footer {
    margin-top: 30px;
    text-align: center;
}

.footer-bar {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--green), var(--blue));
}

.footer p {
    margin: 10px 0 0;
    padding: 0 20px 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.error-body {
    background: var(--bg);
}

.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.error-title {
    margin: 0 0 20px;
    font-size: 48px;
    font-weight: 900;
}

.error-code {
    margin: 0 0 40px;
    font-size: 120px;
    line-height: 1;
    font-weight: 900;
}

@media (max-width: 980px) {
    .navbar {
        align-items: flex-start;
        border-radius: 24px;
        flex-direction: column;
    }

    .nav-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 14px;
    }

    .about,
    .contact {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: none;
    }

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

@media (max-width: 640px) {
    .section {
        width: min(100% - 28px, 1200px);
    }

    .nav-wrap {
        top: 10px;
        padding: 0 14px;
    }

    .navbar {
        padding: 14px;
    }

    .brand span {
        font-size: 15px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero {
        padding-top: 90px;
    }

    .hero-title {
        font-size: 40px;
    }

    .about,
    .content-section,
    .contact {
        padding: 58px 0;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .social-buttons,
    .btn--social {
        width: 100%;
    }
}
/* Popup Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--surface-solid);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal.is-visible .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.modal-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-body {
    padding: 32px;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #fff;
}

.modal-meta {
    display: flex;
    gap: 16px;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.modal-description {
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 24px;
}

.modal-description h1, .modal-description h2, .modal-description h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: #fff;
}

.modal-description p {
    margin-bottom: 16px;
}

.modal-description ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.modal-description li {
    margin-bottom: 8px;
}

.modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.content-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mini-link.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 600px) {
    .modal-body {
        padding: 20px;
    }
    .modal-title {
        font-size: 1.5rem;
    }
}