:root {
    --color-background: #07100f;
    --color-surface: rgba(255, 255, 255, 0.035);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text: #f4f7f6;
    --color-text-muted: #98aaa6;
    --color-primary: #0d8375;
    --color-primary-hover: #10a391;
    --color-primary-soft: rgba(13, 131, 117, 0.14);
    --color-primary-border: rgba(13, 131, 117, 0.34);
    --color-overlay: rgba(0, 0, 0, 0.72);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--color-background);
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(13, 131, 117, 0.20), transparent 32%),
        radial-gradient(circle at bottom right, rgba(13, 131, 117, 0.10), transparent 28%),
        var(--color-background);
    color: var(--color-text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 18%, rgba(13, 131, 117, 0.13), transparent 24%),
        radial-gradient(circle at 82% 72%, rgba(13, 131, 117, 0.10), transparent 26%),
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.018), transparent 42%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.035;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: radial-gradient(circle at center, black 0%, black 45%, transparent 82%);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.page-container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 78px 0 42px;
}

.hero-section {
    position: relative;
    text-align: center;
    margin-bottom: 72px;
}

.hero-section::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 42%;
    width: 520px;
    height: 220px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(13, 131, 117, 0.10);
    filter: blur(70px);
    pointer-events: none;
    z-index: -1;
}

.main-logo {
    width: min(280px, 80vw);
    height: auto;
    display: block;
    margin: 0 auto 20px;
    filter: drop-shadow(0 24px 52px rgba(13, 131, 117, 0.18));
}

.hero-text {
    max-width: 820px;
    margin: 0 auto;
    color: #d7e2df;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: -0.4px;
}

.project-section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    padding: 70px 0;
    border-top: 1px solid var(--color-border);
}

.project-section::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(13, 131, 117, 0.055);
    filter: blur(55px);
    pointer-events: none;
    z-index: -1;
}

.project-section:nth-of-type(odd)::before {
    left: -150px;
}

.project-section:nth-of-type(even)::before {
    right: -150px;
}

.project-section:last-of-type {
    border-bottom: 1px solid var(--color-border);
}

.project-section:nth-of-type(even) {
    grid-template-columns: 1.15fr 0.85fr;
}

.project-section:nth-of-type(even) .project-visual {
    order: 2;
}

.project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-logo {
    width: min(520px, 100%);
    max-height: 260px;
    object-fit: contain;
    opacity: 0.94;
    filter:
        saturate(0.80)
        brightness(0.98)
        drop-shadow(0 28px 46px rgba(0, 0, 0, 0.34));
}

.project-content {
    min-width: 0;
}

.project-label {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--color-primary-soft);
    border: 1px solid var(--color-primary-border);
    color: #b9ffef;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 0 26px rgba(13, 131, 117, 0.08);
}

.project-title {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
    letter-spacing: -1.8px;
}

.project-description {
    max-width: 620px;
    margin: 20px 0 26px;
    color: var(--color-text-muted);
    font-size: 18px;
    line-height: 1.8;
}

.project-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.project-point {
    padding: 12px 14px;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.55;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 15px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    transition: 0.2s ease;
    box-shadow: 0 16px 34px rgba(13, 131, 117, 0.18);
}

.project-button::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.project-button:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
}

.project-button:hover::after {
    transform: translateX(3px);
}

.footer {
    margin-top: 42px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.footer-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.footer-button:hover {
    color: var(--color-text);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: var(--color-overlay);
    backdrop-filter: blur(14px);
}

.modal-overlay.is-active {
    display: flex;
}

.modal-box {
    width: min(820px, 100%);
    max-height: min(900px, calc(100vh - 36px));
    overflow-y: auto;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(13, 131, 117, 0.11), transparent 34%),
        #0b1715;
    border: 1px solid var(--color-border);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: rgba(11, 23, 21, 0.94);
    border-bottom: 1px solid var(--color-border);
}

.modal-title {
    margin: 0;
    font-size: 24px;
}

.modal-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    font-size: 22px;
}

.modal-content {
    padding: 22px 24px 24px;
    color: var(--color-text-muted);
    line-height: 1.55;
    font-size: 15px;
}

.modal-content h3 {
    margin: 18px 0 7px;
    color: var(--color-text);
    font-size: 17px;
}

.modal-content h3:first-child {
    margin-top: 0;
}

.modal-content p {
    margin: 0 0 10px;
}

@media (max-width: 880px) {
    .page-container {
        padding-top: 58px;
    }

    .hero-section {
        margin-bottom: 46px;
    }

    .hero-section::before {
        width: 340px;
        height: 180px;
    }

    .hero-text {
        font-size: 18px;
        line-height: 1.5;
    }

    .project-section,
    .project-section:nth-of-type(even) {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 42px 0;
    }

    .project-section::before {
        width: 220px;
        height: 220px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .project-section:nth-of-type(odd)::before,
    .project-section:nth-of-type(even)::before {
        left: 50%;
        right: auto;
    }

    .project-section:nth-of-type(even) .project-visual {
        order: 0;
    }

    .project-visual {
        justify-content: center;
    }

    .project-logo {
        width: min(380px, 95%);
        max-height: 190px;
    }

    .project-content {
        text-align: center;
    }

    .project-label {
        margin-left: auto;
        margin-right: auto;
    }

    .project-description {
        margin-left: auto;
        margin-right: auto;
        font-size: 16px;
    }

    .project-button {
        margin: 0 auto;
    }

    .project-points {
        grid-template-columns: 1fr;
        text-align: left;
    }
}