
/* =========================================================
   ROOT / THEME
   ========================================================= */

:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface2: #f0f2f5;

    --text: #101218;
    --muted: #687080;
    --border: #e4e7ec;

    --accent: #635bff;
    --accent2: #8b5cf6;

    --shadow: 0 18px 55px rgba(15, 23, 42, 0.08);

    --radius: 22px;
    --max: 1120px;

    /* Fonts */
    --font-sans:
        "Inter",
        "Noto Sans Bengali",
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --font-code:
        "JetBrains Mono",
        "Noto Sans Bengali",
        monospace;
}


/* =========================================================
   DARK THEME
   ========================================================= */

@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] {
        --bg: #0b0d12;
        --surface: #12151c;
        --surface2: #171b24;

        --text: #f4f5f7;
        --muted: #9ca3af;
        --border: #242a35;

        --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }
}

:root[data-theme="dark"] {
    --bg: #0b0d12;
    --surface: #12151c;
    --surface2: #171b24;

    --text: #f4f5f7;
    --muted: #9ca3af;
    --border: #242a35;

    --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}


/* =========================================================
   RESET / GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--bg);
    color: var(--text);

    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   CODE / PROGRAMMING TEXT
   ========================================================= */

code,
pre,
kbd,
samp {
    font-family: var(--font-code);
}

code {
    font-size: 0.9em;
}

pre {
    overflow-x: auto;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(calc(100% - 40px), var(--max));
    margin: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;

    background: color-mix(
        in srgb,
        var(--bg) 86%,
        transparent
    );

    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.brand span {
    color: var(--accent);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav > a,
.theme-btn {
    padding: 9px 13px;

    border-radius: 12px;

    color: var(--muted);

    font-size: 0.92rem;
}

.main-nav > a:hover,
.main-nav > a.active {
    color: var(--text);
    background: var(--surface2);
}

.theme-btn {
    border: 1px solid var(--border);

    background: var(--surface);

    cursor: pointer;

    font-size: 1rem;
}

.menu-btn {
    display: none;

    border: 0;
    background: transparent;

    color: var(--text);

    font-size: 1.5rem;

    cursor: pointer;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 680px;

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;

    gap: 70px;

    align-items: center;

    padding: 85px 0;
}

.eyebrow {
    margin: 0 0 12px;

    color: var(--accent);

    font-size: 0.72rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero h1 {
    max-width: 760px;

    margin: 0;

    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 1.02;

    letter-spacing: -0.065em;
}

.hero h1 span {
    background: linear-gradient(
        110deg,
        var(--accent),
        var(--accent2)
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-text {
    max-width: 650px;

    margin: 26px 0;

    color: var(--muted);

    font-size: 1.16rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    padding: 12px 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

    font-weight: 750;

    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary {
    background: var(--text);
    color: var(--bg);

    border-color: var(--text);
}

.btn.ghost {
    background: var(--surface);
}


/* =========================================================
   QUICK STATS
   ========================================================= */

.quick-stats {
    display: flex;

    gap: 35px;

    margin-top: 45px;
}

.quick-stats div {
    display: grid;
}

.quick-stats strong {
    font-size: 1.5rem;
}

.quick-stats span {
    color: var(--muted);

    font-size: 0.8rem;
}


/* =========================================================
   HERO PHOTO
   ========================================================= */

.hero-photo {
    position: relative;

    justify-self: end;

    width: min(100%, 390px);
}

.photo-frame {
    aspect-ratio: 1;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 36px;

    background:
        linear-gradient(
            135deg,
            var(--surface2),
            var(--surface)
        );

    box-shadow: var(--shadow);
}

.photo-frame img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   FLOATING CARD
   ========================================================= */

.floating-card {
    position: absolute;

    left: -40px;
    bottom: 28px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 17px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 17px;

    box-shadow: var(--shadow);

    font-size: 0.84rem;
}

.floating-card small {
    display: block;

    color: var(--muted);
}

.status-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #22c55e;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 100px 0;
}

.section-soft {
    background: var(--surface2);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}

.section-head h2,
.contact-card h2 {
    margin: 0;

    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;

    letter-spacing: -0.045em;
}

.text-link {
    color: var(--accent);

    font-size: 0.9rem;
    font-weight: 750;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-grid {
    display: grid;

    grid-template-columns: 1.3fr 0.7fr;

    gap: 30px;
}

.about-card,
.info-list,
.contact-card {
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.about-card {
    padding: 34px;

    color: var(--muted);

    font-size: 1.05rem;
}

.about-card p {
    margin-top: 0;
}

.info-list {
    padding: 10px 25px;
}

.info-list div {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 0;

    border-bottom: 1px solid var(--border);
}

.info-list div:last-child {
    border: 0;
}

.info-list span {
    color: var(--muted);
}

.info-list b {
    text-align: right;

    font-size: 0.9rem;
}


/* =========================================================
   PROJECT / BLOG CARDS
   ========================================================= */

.card-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.project-card,
.blog-card {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow:
        0 8px 35px rgba(15, 23, 42, 0.04);

    transition: 0.25s ease;
}

.project-card:hover,
.blog-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow);
}

.card-image {
    display: block;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: var(--surface2);
}

.card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: 0.4s;
}

.project-card:hover .card-image img {
    transform: scale(1.035);
}

.card-body {
    padding: 23px;
}

.card-body h3 {
    margin: 7px 0;

    font-size: 1.3rem;

    letter-spacing: -0.025em;
}

.card-body p {
    margin: 0 0 17px;

    color: var(--muted);
}

.meta {
    display: flex;
    justify-content: space-between;

    gap: 12px;

    color: var(--muted);

    font-size: 0.75rem;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meta span {
    color: var(--accent);

    font-weight: 800;
}

.tag-row {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin: 18px 0;
}

.tag-row span {
    padding: 4px 8px;

    background: var(--surface2);

    border: 1px solid var(--border);
    border-radius: 7px;

    color: var(--muted);

    font-size: 0.72rem;
}


/* =========================================================
   BLOG
   ========================================================= */

.blog-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.blog-card {
    display: grid;

    grid-template-columns: 90px 1fr;

    padding: 0;
}

.blog-number {
    display: grid;
    place-items: center;

    background: var(--surface2);

    color: var(--accent);

    font-size: 2rem;
    font-weight: 900;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    padding-top: 40px;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 45px;
}

.contact-card p:not(.eyebrow) {
    color: var(--muted);
}

.socials {
    display: flex;

    justify-content: flex-end;

    gap: 8px;

    flex-wrap: wrap;
}

.socials a {
    padding: 9px 12px;

    border: 1px solid var(--border);
    border-radius: 10px;

    font-size: 0.85rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 25px 0;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 0.8rem;
}

.footer-inner {
    display: flex;

    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   LISTING PAGE
   ========================================================= */

.listing-page {
    padding: 90px 0 120px;
}

.page-intro {
    max-width: 700px;

    margin-bottom: 35px;
}

.page-intro h1 {
    margin: 0;

    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1;

    letter-spacing: -0.06em;
}

.page-intro p:last-child {
    color: var(--muted);

    font-size: 1.05rem;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.toolbar {
    display: flex;

    gap: 12px;

    margin-bottom: 28px;
}

.search,
.select {
    width: 100%;

    padding: 13px 15px;

    outline: none;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 13px;

    color: var(--text);
}

.search:focus,
.select:focus {
    border-color: var(--accent);
}

.select {
    max-width: 220px;
}

.empty {
    padding: 40px;

    text-align: center;

    color: var(--muted);
}

.hidden {
    display: none !important;
}


/* =========================================================
   DOCUMENTATION CARDS
   ========================================================= */

.doc-grid {
    display: grid;

    gap: 14px;
}

.doc-card {
    display: grid;

    grid-template-columns: 60px 1fr 25px;

    align-items: center;

    gap: 20px;

    padding: 25px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 18px;

    transition: 0.2s ease;
}

.doc-card:hover {
    transform: translateY(-2px);

    border-color: var(--accent);
}

.doc-card > span {
    color: var(--accent);

    font-size: 0.75rem;
    font-weight: 900;
}

.doc-card h3 {
    margin: 0;
}

.doc-card p {
    margin: 3px 0 0;

    color: var(--muted);
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 800px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--max)
        );
    }

    .menu-btn {
        display: block;
    }

    .main-nav {
        position: absolute;

        top: 72px;
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;
        align-items: stretch;

        padding: 10px 14px;

        background: var(--surface);

        border-bottom: 1px solid var(--border);
    }

    .main-nav.open {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;

        gap: 45px;

        padding: 60px 0;
    }

    .hero-photo {
        justify-self: center;

        width: min(100%, 330px);
    }

    .floating-card {
        left: -10px;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        display: block;
    }

    .socials {
        justify-content: flex-start;

        margin-top: 25px;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .card-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3.25rem;
    }

    .section {
        padding: 70px 0;
    }

    .quick-stats {
        gap: 22px;
    }

    .toolbar {
        flex-direction: column;
    }

    .select {
        max-width: none;
    }

    .blog-card {
        grid-template-columns: 65px 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }
}





/*project store css ===================================================
==========================================================
*/

        /* =====================================================
           PROJECT STORE
           ===================================================== */

        .projects-store {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 22px;
        }


        /* =====================================================
           PROJECT CARD
           ===================================================== */

        .store-card {
            display: flex;
            flex-direction: column;

            overflow: hidden;

            background: var(--surface);

            border: 1px solid var(--border);
            border-radius: var(--radius);

            box-shadow:
                0 8px 35px rgba(15, 23, 42, .04);

            transition: .25s ease;
        }

        .store-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow);
        }


        /* =====================================================
           PROJECT IMAGE
           ===================================================== */

        .store-image {
            display: block;

            aspect-ratio: 16 / 10;

            overflow: hidden;

            background: var(--surface2);
        }

        .store-image img {
            width: 100%;
            height: 100%;

            object-fit: cover;

            transition: .4s ease;
        }

        .store-card:hover .store-image img {
            transform: scale(1.035);
        }


        /* =====================================================
           CARD BODY
           ===================================================== */

        .store-body {
            display: flex;
            flex-direction: column;
            flex: 1;

            padding: 23px;
        }


        /* =====================================================
           META
           ===================================================== */

        .store-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;

            gap: 10px;

            margin-bottom: 8px;
        }

        .store-type {
            display: inline-flex;
            align-items: center;

            width: fit-content;

            padding: 5px 9px;

            border-radius: 8px;

            font-size: .68rem;
            font-weight: 900;

            letter-spacing: .08em;
        }


        /* FREE */

        .store-type.free {
            color: #16a34a;

            background: rgba(34, 197, 94, .10);

            border: 1px solid rgba(34, 197, 94, .20);
        }


        /* PAID */

        .store-type.paid {
            color: #d97706;

            background: rgba(245, 158, 11, .10);

            border: 1px solid rgba(245, 158, 11, .20);
        }


        .store-platform {
            color: var(--muted);

            font-size: .72rem;
            font-weight: 700;
        }


        /* =====================================================
           TITLE
           ===================================================== */

        .store-body h2 {
            margin: 6px 0 7px;

            font-size: 1.35rem;
            line-height: 1.25;

            letter-spacing: -.025em;
        }


        /* =====================================================
           DESCRIPTION
           ===================================================== */

        .store-description {
            margin: 0;

            color: var(--muted);

            font-size: .92rem;
        }


        /* =====================================================
           TAGS
           ===================================================== */

        .store-tags {
            display: flex;
            flex-wrap: wrap;

            gap: 6px;

            margin: 18px 0 20px;
        }

        .store-tags span {
            padding: 4px 8px;

            background: var(--surface2);

            border: 1px solid var(--border);
            border-radius: 7px;

            color: var(--muted);

            font-size: .70rem;
        }


        /* =====================================================
           ACTION BUTTONS
           ===================================================== */

        .store-actions {
            display: grid;

            grid-template-columns: 1fr 1fr;

            gap: 9px;

            margin-top: auto;
        }

        .store-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;

            min-height: 42px;

            padding: 9px 12px;

            border: 1px solid var(--border);
            border-radius: 12px;

            font-size: .78rem;
            font-weight: 800;

            text-align: center;

            transition: .2s ease;
        }

        .store-btn:hover {
            transform: translateY(-1px);

            border-color: var(--accent);
        }

        .store-btn.primary {
            background: var(--text);
            color: var(--bg);

            border-color: var(--text);
        }

        .store-btn.secondary {
            background: var(--surface);
            color: var(--text);
        }


        /* =====================================================
           PAID PRICE / INFO
           ===================================================== */

        .store-price {
            margin: 0 0 18px;

            color: var(--text);

            font-size: .88rem;
            font-weight: 800;
        }


        /* =====================================================
           MOBILE
           ===================================================== */

        @media (max-width: 950px) {

            .projects-store {
                grid-template-columns: repeat(2, 1fr);
            }

        }


        @media (max-width: 600px) {

            .projects-store {
                grid-template-columns: 1fr;
            }

        }
