@font-face {
    font-family: Poppins;
    src: url("../fonts/Poppins.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: Poppins;
    src: url("../fonts/Poppins-Bold.ttf") format("truetype");
    font-weight: 700;
}

:root {
    --ink: #101828;
    --muted: #64748b;
    --line: #e5e7eb;
    --soft: #f6f8fb;
    --teal: #13b7a6;
    --blue: #3158e8;
    --amber: #f6b24b;
    --danger: #d14343;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Poppins, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); text-decoration: none; }

.container { max-width: 1180px; }

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.nav-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
}

.brand img {
    width: auto;
    height: 72px;
    max-width: 238px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #334155;
    font-size: 15px;
}

.nav-links a.active { color: var(--blue); font-weight: 700; }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    margin: 4px auto;
}

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 78% 20%, rgba(19, 183, 166, 0.18), transparent 28%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 56%, #f9fafb 100%);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 48px;
    align-items: center;
    padding: 70px 15px;
}

.eyebrow {
    color: var(--teal);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 13px;
}

.hero h1 {
    margin: 12px 0 18px;
    font-size: 58px;
    line-height: 1.03;
    font-weight: 700;
}

.lead {
    color: #475569;
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions, .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn-krutix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
}

.btn-krutix:hover { color: #fff; background: var(--blue); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { color: var(--ink); border-color: var(--blue); background: #f8fbff; }
.btn-danger-soft { color: var(--danger); border-color: #ffd7d7; background: #fff8f8; }

.hero-panel {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.metric {
    min-height: 96px;
    padding: 16px;
    border-radius: 8px;
    background: var(--soft);
}

.metric strong { display: block; font-size: 24px; }
.metric span { color: var(--muted); font-size: 13px; }

.code-window {
    border-radius: 8px;
    overflow: hidden;
    background: #111827;
    color: #d1fae5;
    min-height: 260px;
}

.window-bar {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 14px;
    background: #0f172a;
}

.window-bar i {
    width: 11px;
    height: 11px;
    display: block;
    border-radius: 50%;
    background: var(--amber);
}

.window-bar i:first-child { background: #ef4444; }
.window-bar i:last-child { background: var(--teal); }

pre {
    margin: 0;
    padding: 22px;
    white-space: pre-wrap;
    color: #dbeafe;
    font: 15px/1.7 Consolas, Monaco, monospace;
}

.section {
    padding: 84px 0;
}

.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-title { font-size: 36px; font-weight: 700; margin: 0 0 12px; }
.section-desc { color: var(--muted); line-height: 1.8; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

.project-media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e0f7f4, #e8edff);
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #1f3b8f;
    font-weight: 700;
}

.project-body { padding: 20px; }
.project-body h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.project-body p { color: var(--muted); line-height: 1.7; margin-bottom: 16px; }

.project-logo-row {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    padding: 8px;
    margin: -58px 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    position: relative;
}

.project-logo-row img,
.project-detail-logo,
.project-logo-admin img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-title-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1120px;
}

.project-title-wrap h1 {
    margin-top: 0;
}

.project-title-wrap .lead {
    margin-bottom: 0;
}

.project-detail-logo {
    flex: 0 0 auto;
    display: block;
    width: 132px;
    height: 132px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #273b91;
    font-size: 12px;
    font-weight: 700;
}
.pill.green { background: #e6faf6; color: #0b766c; }
.pill.amber { background: #fff5df; color: #9a5a00; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.feature strong { display: block; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; line-height: 1.7; }

.page-hero {
    padding: 74px 0;
    background: linear-gradient(135deg, #f7fbff, #f9fafb);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 { font-size: 44px; font-weight: 700; margin: 0 0 12px; }
.content-panel, .form-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 28px;
}

.legal-content h2 { font-size: 24px; margin-top: 28px; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.8; }

.form-control, .custom-select, textarea.form-control {
    border-radius: 8px;
    border-color: var(--line);
    min-height: 48px;
}

textarea.form-control { min-height: 140px; }
label { font-weight: 700; font-size: 14px; }
.alert { border-radius: 8px; }

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #fff;
    cursor: zoom-in;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.gallery-item img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    background: rgba(15, 23, 42, 0.88);
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox img {
    max-width: min(1180px, 94vw);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--ink);
    color: #fff;
    padding: 24px;
}

.admin-sidebar a {
    display: block;
    color: #dbeafe;
    padding: 11px 0;
}

.admin-main { padding: 34px; background: var(--soft); }
.admin-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 24px; }
.table td, .table th { vertical-align: middle; }
.thumb { width: 84px; height: 58px; border-radius: 6px; object-fit: cover; background: var(--soft); }
.logo-thumb { object-fit: contain; padding: 6px; background: #fff; border: 1px solid var(--line); }
.project-logo-admin {
    display: flex;
    align-items: center;
    gap: 14px;
}
.project-logo-admin img {
    width: 96px;
    height: 70px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 54px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-brand span, .footer-brand { color: #fff; }
.footer-brand img {
    height: 78px;
    max-width: 250px;
}
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 12px; }
.site-footer a { display: block; color: #cbd5e1; margin-bottom: 8px; }
.site-footer p { color: #94a3b8; }
.copyright { text-align: center; margin: 32px 0 0; color: #94a3b8; }

@media (max-width: 991px) {
    .hero-grid, .project-grid, .feature-grid, .footer-grid, .admin-shell {
        grid-template-columns: 1fr;
    }

    .hero h1 { font-size: 42px; }
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        left: 15px;
        right: 15px;
        top: 76px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links.open { display: flex; }
}

@media (max-width: 575px) {
    .brand img {
        height: 58px;
        max-width: 190px;
    }

    .hero { min-height: auto; }
    .hero-grid { padding: 44px 15px; }
    .hero h1 { font-size: 34px; }
    .project-title-wrap {
        align-items: flex-start;
        gap: 14px;
    }
    .project-detail-logo {
        width: 78px;
        height: 78px;
        padding: 7px;
    }
    .project-title-wrap h1 {
        font-size: 30px;
    }
    .section { padding: 56px 0; }
    .section-title { font-size: 29px; }
    .metric-grid, .gallery { grid-template-columns: 1fr; }
    .admin-main { padding: 20px; }
}
