/* ============================================================
   responsive.css — Ajitesh Portfolio
   Custom styles + responsive overrides
   ============================================================ */


/* ─────────────────────────────────────────────
   PROJECT CARDS (text-only, no thumbnail)
───────────────────────────────────────────── */

.project-card {
    position: relative;
    min-height: 300px;
    background: #111;
    border-radius: 12px;
    padding: 30px;
}

.project-tag {
    font-size: 12px;
    letter-spacing: 2px;
    color: #aaa;
}

.project-desc {
    font-size: 14px;
    line-height: 1.75;
    color: #ccc;
    max-width: 100%;
}

.project-link {
    font-size: 12px;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: underline;
}

.project-link:hover {
    color: var(--theme-color);
}


/* ─────────────────────────────────────────────
   SKILLS GRID
───────────────────────────────────────────── */

.tool-section .tool-inner .tool-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.tool-section .tool-inner .tool-content .tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: calc(25% - 20px);
    min-width: 90px;
}

.tool-section .tool-inner .tool-content .tool-item .box-img {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-section .tool-inner .tool-content .tool-item .box-img img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.tool-section .tool-inner .tool-content .tool-item .dsn-skills-item {
    width: 100%;
}

.tool-section .tool-inner .tool-content .tool-item .text-skills,
.tool-section .tool-inner .tool-content .tool-item .text_skills {
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 8px;
    display: block;
}


/* ─────────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────────── */

.about-personal-2 .sm-title-block {
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 1px;
}


/* ─────────────────────────────────────────────
   TABLET  ≤ 991px
───────────────────────────────────────────── */

@media only screen and (max-width: 991px) {

    .tool-section .tool-inner .tool-content .tool-item {
        width: calc(33.333% - 20px);
    }

    .project-card {
        min-height: 240px;
        padding: 24px;
    }

    .about-personal-2 .max-w750 {
        max-width: 100%;
        margin-left: 0;
        padding: 0 15px;
    }

    /* stack project cards vertically */
    .dsn-posts {
        flex-direction: column !important;
    }

    .dsn-posts .dsn-item-post {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* ─────────────────────────────────────────────
   MOBILE  ≤ 767px
───────────────────────────────────────────── */

@media only screen and (max-width: 767px) {

    /* header */
    .site-header {
        top: 12px;
        left: 12px;
        right: 12px;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* skills */
    .tool-section .tool-inner .tool-content {
        gap: 14px;
    }

    .tool-section .tool-inner .tool-content .tool-item {
        width: calc(33.333% - 14px);
        min-width: 80px;
    }

    .tool-section .tool-inner .tool-content .tool-item .box-img img {
        width: 42px;
        height: 42px;
    }

    .tool-section .tool-inner .tool-content .tool-item .text-skills,
    .tool-section .tool-inner .tool-content .tool-item .text_skills {
        font-size: 10px;
    }

    /* projects */
    .project-card {
        min-height: 200px;
        padding: 20px;
    }

    .dsn-posts .dsn-item-post .post-title {
        font-size: 26px !important;
    }

    /* about */
    .about-personal-2 .sm-title-block {
        font-size: 13px;
    }
}


/* ─────────────────────────────────────────────
   SMALL MOBILE  ≤ 575px
───────────────────────────────────────────── */

@media only screen and (max-width: 575px) {

    /* skills: 2 columns */
    .tool-section .tool-inner .tool-content {
        gap: 12px;
        padding: 14px;
    }

    .tool-section .tool-inner .tool-content .tool-item {
        width: calc(50% - 12px);
    }

    .tool-section .tool-inner .tool-content .tool-item .box-img {
        padding: 12px;
    }

    .tool-section .tool-inner .tool-content .tool-item .box-img img {
        width: 36px;
        height: 36px;
    }

    /* projects */
    .project-card {
        min-height: 180px;
        padding: 18px;
    }

    .dsn-posts .dsn-item-post .post-title {
        font-size: 22px !important;
    }

    .project-desc {
        font-size: 12px;
    }

    /* about */
    .about-personal-2 .sm-title-block {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
}


/* ─────────────────────────────────────────────
   VERY SMALL  ≤ 380px
───────────────────────────────────────────── */

@media only screen and (max-width: 380px) {

    .site-header {
        top: 8px;
        left: 8px;
        right: 8px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .tool-section .tool-inner .tool-content .tool-item {
        width: calc(50% - 10px);
    }

    .project-card {
        padding: 14px;
    }
}


/* ── Resume nav button ── */
.resume-nav-btn {
    cursor: pointer;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    letter-spacing: inherit;
    display: inline-block;
}

.resume-nav-btn:hover {
    color: var(--theme-color);
}