:root {
    --bg: rgb(0, 0, 33);
    --pcard-bg: rgba(6, 7, 40, 0.96);
    --pcard-b: None;
    --scard-bg: #ffffff08;
    --scard-b: #040453bf;
    --primary: #1e90ff;
    --text: #c9cbe3;
    --muted: #62788d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Poppins", sans-serif;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-nav {
    padding: 24px 0 12px;
}

.page-nav a {
    text-decoration: none;
    color: var(--text);
}

.page-nav a:hover {
    color: var(--text);
}

.project-hero {
    display: grid;
    /*grid-template-columns: 1.1fr 0.9fr;*/
    gap: 28px;
    padding: 28px 0 56px;
    align-items: center;

}

.anime {
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.anime.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-copy,
.hero-panel,
.detail-section,
.sidebar-card {
    background: var(--pcard-bg);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-copy {
    padding: 34px;
}

.hero-copy h1 {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
    font-weight: 550;
    margin-bottom: 18px;
}

.hero-copy p {
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 18px;
    background: var(--primary);
    color: #06051c;
    border: 1px solid var(--primary);
    transition: all 0.25s ease;
    font-weight: 550;
}

.button:hover {
    background-color: transparent;
    color: var(--primary);
}
.hero-panel {
    overflow: hidden;
}

.hero-panel img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.project-main {
    display: flex;
    flex-direction: column;
    margin-bottom: 7rem;
    gap: 24px;
}

.detail-section {
    padding: 28px;

}

.detail-section-head {
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 14px;
    color: var(--muted);
}

.detail-section p,
.detail-section li {
    color: var(--text);
    line-height: 1.8;
    font-size: 15px;
}

.detail-section ul {
    padding-left: 18px;
}

.detail-section li+li {
    margin-top: 10px;
}

.detail-section.code-section .code-block {
    width: 100%;
    overflow-x: auto;
    border-radius: 22px;
    border: 1px solid var(--scard-b);
    padding: 20px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95rem;
    color: #e8ecff;
    line-height: 1.6;
    white-space: pre;
}

.code-box {
  color: var(--text);
  padding: 20px;
  border-radius: 12px;
  font-size: 14px;
  overflow-x: auto;
  line-height: 1.6;
}

.code-box pre {
  padding: 12px 0px;
  border-radius: 8px;
  overflow-x: auto;
}

.code-box h2, .code-box h3 {
  margin-top: 20px;
}

.hljs {
    border-radius: 10px;
    font-family: sans-serif;
    background-color: var(--scard-bg) !important;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

.gallery-card {
    overflow: hidden;
}

.gallery-card a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-card p {
    padding: 0 10px;
    padding-top: 5px;
}

.gallery-card img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.gallery-card a:hover img {
    transform: scale(1.03);
}

.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-card {
    padding: 22px;
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 500;
}

.sidebar-card p,
.sidebar-card li {
    color: var(--text);
    line-height: 1.8;
    font-size: 14px;
}

.sidebar-card ul {
    padding-left: 18px;
}

.sidebar-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebar-stack span {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--scard-bg);
    border: 1px solid var(--scard-b);
    font-size: 13px;
}

@media (max-width: 920px) {
    .project-hero {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        order: -1;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: calc(100% - 20px);
    }

    .hero-copy,
    .detail-section,
    .sidebar-card {
        padding: 20px;
        border-radius: 22px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card img {
        height: 220px;
    }

    .button {
        width: 100%;
    }
}