/* ============================================================
   RESPONSIVE.CSS — Sajal Portfolio
   Layout reference: Bruno Simon style stacked mobile layout
   ─────────────────────────────────────────────────────────
   ≤ 1400px  Large desktop tweak
   ≤ 1200px  Small desktop / large laptop
   ≤ 1024px  Tablet landscape
   ≤ 768px   Tablet portrait / large phone (~8.5")
   ≤ 600px   Mid-size phones
   ≤ 480px   Small phones (~5.5")
   ≤ 360px   Very small phones
============================================================ */

/* ── Large Desktop (≤ 1400px) ── */
@media (max-width: 1400px) {
    .description-section {
        right: 2rem;
        max-width: 380px;
    }

    .skills-section {
        padding: 6rem 2.5rem 10rem;
    }

    .services-qa-section {
        padding: 5.4rem 2.5rem 7rem;
    }

    .workflow-section {
        padding: 5.2rem 2.5rem 6.2rem;
    }

    .testimonials-section {
        padding: 5.2rem 2.5rem 6.2rem;
    }

    .clients-section {
        padding: 4.8rem 2.5rem 5.8rem;
    }
}

/* ── Small Desktop / Large Laptop (≤ 1200px) ── */
@media (max-width: 1200px) {
    .hero-name {
        font-size: clamp(3rem, 8vw, 6.5rem);
    }

    .profile-container {
        max-width: 420px;
        margin: 8rem auto 0;
    }

    .description-section {
        right: 1.5rem;
        max-width: 350px;
    }

    .description {
        font-size: 1rem;
    }

    .scroll-text {
        display: none;
    }

    .services-qa-head {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .workflow-head {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonials-head {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-qa-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .clients-head {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .clients-title {
        max-width: 16ch;
    }

    .clients-head-dot {
        left: auto;
        right: 0.2rem;
        top: -0.2rem;
    }

    .clients-grid {
        grid-template-columns: repeat(var(--clients-cols-desktop, 1), minmax(0, 1fr));
    }

    .testimonials-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        align-items: start;
    }

    .testimonials-side {
        position: static;
        top: auto;
        align-self: start;
        width: 100%;
        max-width: 220px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.8rem;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .testimonials-client {
        gap: 0.55rem;
    }

    .testimonials-avatar {
        width: 100%;
        max-width: 190px;
        aspect-ratio: 3 / 4;
    }

    .testimonials-controls {
        margin-top: 0.1rem;
        gap: 0.6rem;
    }

    .workflow-step {
        min-height: unset;
        padding: 1rem 0 2rem;
    }

    .workflow-step+.workflow-step {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .services-qa-media,
    .services-qa-screen {
        width: min(100%, 640px);
        aspect-ratio: 1.42 / 1;
        min-height: unset;
    }
}

/* ── Tablet Landscape (≤ 1024px) ── */
@media (max-width: 1024px) {
    header {
        padding: 1.8rem 2.5rem;
    }

    .site-footer {
        width: calc(100% - 1rem);
        min-height: 0;
        padding: 1.4rem 1rem 1.2rem;
    }

    .site-footer-title {
        font-size: 0.82rem;
    }

    .site-footer-nav a {
        font-size: 0.92rem;
    }

    .site-footer-main {
        grid-template-columns: 1fr auto 1fr;
        gap: 1rem;
    }

    .site-footer-column-center {
        justify-self: center;
    }

    .site-footer-contact {
        margin-top: 1rem;
    }

    .site-footer-contact-link {
        font-size: 1rem;
    }

    .hero-section {
        padding: 5.5rem 2rem 4rem;
    }

    .hero-name {
        font-size: clamp(2.8rem, 7.5vw, 5.2rem);
        left: 0;
    }

    .profile-container {
        max-width: 360px;
        margin: 7rem auto 0;
    }

    .description-section {
        right: 1rem;
        max-width: 300px;
    }

    .description {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .scroll-text {
        display: none;
    }

    .about-page {
        padding: 7rem 2rem 5rem;
    }

    .clients-section {
        padding: 4.4rem 2rem 5.2rem;
        border-radius: 8px;
    }

    .clients-title {
        max-width: 14ch;
        font-size: clamp(1.65rem, 5.8vw, 2.8rem);
    }

    .clients-divider {
        margin-bottom: 2.2rem;
    }

    .client-logo-item {
        min-height: 112px;
    }

    .client-logo {
        gap: 0.52rem;
        font-size: clamp(0.69rem, 1.28vw, 0.83rem);
    }

    .client-logo-image,
    .client-logo-placeholder {
        width: min(160px, 90%);
        height: 49px;
    }

    .client-logo-placeholder {
        width: 76px;
        height: 76px;
        font-size: 0.9rem;
    }

    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-hero-summary-box {
        width: 100%;
        min-height: 0;
    }

    .contact-page {
        padding: 6.8rem 2rem 4.8rem;
    }

    .contact-section {
        padding: 2rem;
    }

    .contact-head {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .contact-title {
        font-size: clamp(1.65rem, 5.8vw, 2.8rem);
        max-width: 14ch;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-card-grid,
    .about-highlight-grid {
        grid-template-columns: 1fr;
    }

    .about-stack-wrap {
        grid-template-columns: 1fr;
    }
}

/* ── Tablet Portrait / Large Phone — up to ~8.5" (≤ 768px) ── */
@media (max-width: 768px) {

    /* ─ Header ─ */
    header {
        padding: 0.85rem 0.95rem;
    }

    .header-content {
        align-items: flex-start;
    }

    .header-name {
        font-size: 0.84rem;
        letter-spacing: 0.9px;
        font-weight: 700;
    }

    .header-left .intro-text {
        font-size: 0.88rem;
        margin-top: 0.15rem;
    }

    .menu-btn {
        padding: 0.36rem 0.72rem;
        font-size: 0.72rem;
        margin-top: 0;
        min-height: 34px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 18px rgba(0, 0, 0, 0.24);
        letter-spacing: 0.02em;
    }

    .menu-icon .arrow {
        font-size: 0.62rem;
    }

    /* ─ Footer ─ */
    .site-footer {
        width: calc(100% - 1rem);
        padding: 0.85rem 0.7rem 0.8rem;
    }

    .site-footer-mark {
        font-size: 1.2rem;
    }

    .site-footer-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-areas: "quick portfolio social";
        gap: 0.55rem;
        margin-top: 0;
        padding: 0.15rem 0 0.2rem;
        align-items: start;
    }

    .site-footer-main .site-footer-column:nth-child(1) {
        grid-area: quick;
        justify-self: start;
        text-align: left;
        align-items: flex-start;
        width: 100%;
    }

    .site-footer-main .site-footer-column:nth-child(2) {
        grid-area: portfolio;
        justify-self: center;
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .site-footer-main .site-footer-column:nth-child(3) {
        grid-area: social;
        width: 100%;
        justify-self: end;
        text-align: right;
        align-items: flex-end;
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    .site-footer-main .site-footer-column:nth-child(3) .site-footer-nav {
        align-items: flex-end;
    }

    .site-footer-title {
        font-size: 0.86rem;
        margin-bottom: 0.55rem;
        letter-spacing: 0;
        text-transform: none;
        color: #79e8a4;
        font-weight: 700;
    }

    .site-footer-nav {
        gap: 0.55rem;
    }

    .site-footer-nav a {
        font-size: 0.86rem;
        line-height: 1.45;
        color: #e8edf2;
        font-weight: 700;
    }

    .site-footer-glow-dot {
        width: 14px;
        height: 14px;
        left: 78%;
        top: 58%;
    }

    .site-footer-contact {
        display: none;
    }

    .about-page {
        padding: 6rem 1.6rem 4rem;
    }

    .about-hero-title {
        font-size: clamp(1.72rem, 9vw, 2.6rem);
    }

    .about-hero-summary-box {
        padding: 1rem;
    }

    .about-hero-summary-box h3 {
        font-size: 1.1rem;
    }

    .about-hero-summary-list li {
        font-size: 0.86rem;
        padding: 0.62rem 0.64rem;
    }

    /* Mobile: remove table/card feel and keep simple normal list */
    .about-hero-summary-box {
        border: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        min-height: 0;
    }

    .about-hero-summary-list {
        list-style: disc;
        padding-left: 1rem;
        gap: 0.5rem;
    }

    .about-hero-summary-list li {
        border: 0;
        background: transparent;
        border-radius: 0;
        padding: 0;
        color: #b9c1cb;
    }

    .about-hero-description {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .about-quick-stats {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .about-timeline-item {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .about-cta {
        padding: 1.4rem;
    }

    .site-footer-contact-link {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .clients-section {
        padding: 4rem 1.6rem 4.8rem;
    }

    .contact-page {
        padding: 6rem 1.6rem 4.2rem;
    }

    .contact-section {
        padding: 1.4rem;
    }

    .contact-two-col {
        grid-template-columns: 1fr;
        gap: 0.58rem;
    }

    .clients-grid {
        grid-template-columns: repeat(var(--clients-cols-tablet, 1), minmax(0, 1fr));
    }

    .client-logo-item {
        min-height: 96px;
    }

    .client-logo {
        font-size: clamp(0.66rem, 3.12vw, 0.8rem);
    }

    .client-logo-image,
    .client-logo-placeholder {
        width: min(146px, 90%);
        height: 46px;
    }

    .client-logo-placeholder {
        width: 68px;
        height: 68px;
    }

    /* ─ Hero Section ─ */
    .hero-section {
        padding: 4.3rem 0.95rem 2.8rem;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: auto;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        position: relative;
        gap: 0.35rem;
    }

    /* Show full name with compact sizing on mobile */
    .name-separator,
    .name-last {
        display: inline;
    }

    .hero-name {
        position: static;
        font-size: clamp(1.95rem, 9.1vw, 2.45rem);
        text-align: left;
        width: 100%;
        letter-spacing: -0.02em;
        line-height: 0.98;
        white-space: normal;
        margin-bottom: 0.15rem;
        z-index: 1;
        left: auto;
        top: auto;
    }

    .hero-name .name-first,
    .hero-name .name-last {
        display: inline-block;
        white-space: nowrap;
    }

    .hero-name .name-separator {
        display: inline-block;
        width: 0.28em;
    }

    /* Hide hero image on mobile as requested */
    .profile-container {
        display: none;
    }

    /* Description — below photo, LEFT aligned (matching reference image) */
    .description-section {
        position: static;
        transform: none;
        right: auto;
        top: auto;
        width: 100%;
        max-width: 100%;
        margin: 0.15rem 0 0;
        padding: 0;
        text-align: left;
        animation: none;
        opacity: 1;
    }

    .description-content {
        padding-right: 0;
    }

    .description {
        font-size: 0.95rem;
        text-align: left;
        line-height: 1.62;
        color: var(--text-white);
        max-width: 32ch;
    }

    /* Keep mobile clean */
    .scroll-text {
        display: none;
    }

    /* Menu */
    .menu-overlay {
        top: 4.2rem;
        right: 1rem;
        width: min(220px, calc(100vw - 1rem));
        padding: 0.66rem 0.68rem;
    }

    .menu-nav a {
        font-size: 0.82rem;
        padding: 0.38rem 0.4rem;
    }

    .services-qa-section {
        padding: 4.2rem 1.6rem 5.2rem;
    }

    .workflow-section {
        padding: 4.2rem 1.6rem 5rem;
    }

    .testimonials-section {
        padding: 4.2rem 1.6rem 5rem;
    }

    .services-qa-title {
        font-size: clamp(1.5rem, 8vw, 1.92rem);
    }

    .workflow-title {
        font-size: clamp(1.55rem, 8vw, 2.2rem);
        max-width: 12ch;
    }

    .testimonials-title {
        font-size: clamp(1.55rem, 8vw, 2.2rem);
        max-width: 12ch;
    }

    .services-qa-divider {
        margin-bottom: 1.8rem;
    }

    .services-qa-question {
        font-size: 16px;
    }

    .services-qa-index {
        font-size: 0.86rem;
    }

    .services-qa-answer {
        font-size: 13px;
        line-height: 1.65;
    }

    .services-qa-media,
    .services-qa-screen {
        width: min(100%, 460px);
        aspect-ratio: 1.42 / 1;
        min-height: unset;
    }

    .workflow-step-number {
        font-size: clamp(3.8rem, 18vw, 5.4rem);
        margin-bottom: 2.2rem;
    }

    .workflow-step-title {
        font-size: 1.26rem;
    }

    .workflow-step-copy {
        font-size: 0.98rem;
        max-width: 100%;
    }

    .testimonials-quote-wrap {
        min-height: unset;
        gap: 0;
        position: relative;
        padding-top: 0.6rem;
    }

    .testimonials-quote-mark {
        position: absolute;
        top: -0.35rem;
        left: -0.08rem;
        font-size: clamp(4.8rem, 18vw, 7rem);
        margin-bottom: 0;
    }

    .testimonials-quote {
        font-size: clamp(1.44rem, 5.75vw, 1.84rem);
        line-height: 1.5;
        max-width: 100%;
        margin-top: 0.5rem;
        position: relative;
        z-index: 1;
    }

    .testimonials-card {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .testimonials-side {
        position: static;
        top: auto;
        max-width: 172px;
        padding: 0;
        gap: 0.65rem;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .testimonials-avatar {
        max-width: 152px;
    }

    .testimonials-client-name {
        font-size: 0.9rem;
    }

    .testimonials-client-role {
        font-size: 0.76rem;
    }

    .testimonials-controls {
        margin-top: 0.2rem;
        gap: 0.5rem;
    }

    .testimonials-button {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ── Medium Phones (≤ 600px) ── */
@media (max-width: 600px) {
    .hero-section {
        padding: 4.2rem 0.85rem 2.5rem;
    }

    .clients-section {
        padding: 3.6rem 0.9rem 4.2rem;
    }

    .contact-page {
        padding: 5.4rem 0.9rem 3.8rem;
    }

    .contact-section {
        padding: 1rem 0.85rem;
    }

    .contact-title {
        font-size: clamp(1.5rem, 8vw, 2.1rem);
    }

    .contact-copy h2 {
        font-size: 1.12rem;
    }

    .contact-form label {
        font-size: 0.82rem;
    }

    .clients-title {
        font-size: clamp(1.5rem, 8vw, 2.15rem);
    }

    .clients-divider {
        margin-bottom: 1.65rem;
    }

    .client-logo-item {
        min-height: 84px;
        padding: 1rem 0.45rem;
    }

    .client-logo {
        gap: 0.42rem;
        font-size: clamp(0.61rem, 2.8vw, 0.72rem);
    }

    .clients-grid {
        grid-template-columns: repeat(var(--clients-cols-mobile, 1), minmax(0, 1fr));
    }

    .client-logo-image,
    .client-logo-placeholder {
        width: min(130px, 92%);
        height: 41px;
    }

    .client-logo-placeholder {
        width: 59px;
        height: 59px;
        font-size: 0.78rem;
    }

    .hero-name {
        font-size: clamp(1.72rem, 8.9vw, 2.2rem);
        margin-bottom: 0.1rem;
    }

    .profile-container {
        display: none;
    }

    .description {
        font-size: 0.9rem;
    }

    .testimonials-card {
        grid-template-columns: 1fr;
        gap: 0.95rem;
    }

    .testimonials-side {
        position: static;
        top: auto;
        max-width: 150px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .testimonials-avatar {
        max-width: 132px;
    }

    .testimonials-client-name {
        font-size: 0.84rem;
    }

    .testimonials-client-role {
        font-size: 0.72rem;
    }

    .testimonials-controls {
        margin-top: 0.15rem;
        gap: 0.42rem;
    }

    .testimonials-button {
        width: 36px;
        height: 36px;
        font-size: 0.98rem;
    }

    .site-footer {
        width: calc(100% - 0.7rem);
        padding: 0.8rem 0.62rem 0.78rem;
    }

    .site-footer-main {
        gap: 0.42rem;
    }

    .site-footer-title {
        font-size: 0.78rem;
    }

    .site-footer-nav a {
        font-size: 0.78rem;
    }
}

/* ── Small Phones — ~5.5" (≤ 480px) ── */
@media (max-width: 480px) {
    header {
        padding: 0.7rem 0.75rem;
    }

    .header-name {
        font-size: 0.8rem;
    }

    .header-left .intro-text {
        font-size: 0.78rem;
    }

    .menu-btn {
        padding: 0.34rem 0.64rem;
        font-size: 0.68rem;
        gap: 0.3rem;
        min-height: 31px;
    }

    .hero-section {
        padding: 4rem 0.75rem 2.2rem;
    }

    .hero-name {
        font-size: clamp(1.46rem, 7.8vw, 1.9rem);
        margin-bottom: 0.05rem;
    }

    .profile-container {
        display: none;
    }

    .description {
        font-size: 0.84rem;
        line-height: 1.58;
    }

    .site-footer {
        width: calc(100% - 0.6rem);
        padding: 0.7rem 0.55rem 0.68rem;
    }

    .site-footer-mark {
        font-size: 1.05rem;
    }

    .site-footer-main {
        gap: 0.35rem;
    }

    .site-footer-nav a {
        font-size: 0.7rem;
        letter-spacing: 0.02em;
    }

    .site-footer-title {
        font-size: 0.72rem;
        margin-bottom: 0.35rem;
    }

    .site-footer-glow-dot {
        width: 12px;
        height: 12px;
        left: 80%;
        top: 57%;
    }

    .menu-overlay {
        top: 3.85rem;
        right: 0.6rem;
        width: min(200px, calc(100vw - 0.8rem));
        padding: 0.58rem 0.6rem;
    }

    .menu-nav a {
        font-size: 0.74rem;
    }

    .menu-nav li {
        margin: 0;
    }

    .scroll-text {
        display: none;
    }
}

/* ── Very Small Phones (≤ 360px) ── */
@media (max-width: 360px) {
    .hero-name {
        font-size: clamp(1.28rem, 6.8vw, 1.65rem);
        margin-bottom: 0.6rem;
    }

    .profile-container {
        display: none;
    }

    .description {
        font-size: 0.8rem;
    }

    .menu-nav a {
        font-size: 1.6rem;
    }

    .skills-section {
        padding: 3rem 1rem 7rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }
}

/* ============================================================
   SKILLS SECTION — Responsive
============================================================ */

/* ── Small Desktop / Laptop (≤ 1200px) ── */
@media (max-width: 1200px) {
    .skills-section {
        padding: 5rem 2rem 9rem;
    }

    .skills-container {
        gap: 3rem;
    }

    .skills-about {
        font-size: 1rem;
    }

    .stat-number {
        font-size: clamp(2.5rem, 4vw, 4.5rem);
    }

    .projects-section {
        padding: 5rem 2rem 8rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.4rem;
        max-width: 100%;
    }

    .project-card {
        width: min(100%, var(--project-card-width));
    }

    .projects-divider {
        margin-bottom: 2.1rem;
    }
}

/* ── Tablet Landscape (≤ 1024px) ── */
@media (max-width: 1024px) {
    .skills-section {
        padding: 4.5rem 2rem 8rem;
    }

    .skills-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .skills-about {
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: clamp(2.2rem, 3.5vw, 4rem);
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .projects-section {
        padding: 4.5rem 2rem 7rem;
    }

    .projects-head {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projects-title {
        max-width: 16ch;
    }
}

/* ── Tablet / Large Phone (≤ 768px) ── */
@media (max-width: 768px) {
    .skills-section {
        padding: 4rem 1.6rem 8rem;
    }

    /* Stack left and right columns */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 4rem;
    }

    .skills-right {
        padding-top: 0;
    }

    .skills-about {
        font-size: 1rem;
        line-height: 1.8;
    }

    .resume-btn {
        font-size: 0.95rem;
        padding: 0.75rem 2rem;
    }

    /* Stats: 3 cols on tablet */
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .stat-label {
        font-size: 0.88rem;
    }

    .projects-section {
        padding: 4rem 1.6rem 7rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        max-width: 100%;
    }

    .project-card {
        width: 100%;
        --project-card-width: 100%;
    }

    .projects-divider {
        gap: 0.75rem;
        margin-bottom: 1.9rem;
    }

    .projects-divider-mark {
        font-size: 1.3rem;
    }

    .projects-more-wrap {
        margin-top: 1.8rem;
    }

    .projects-more-btn {
        width: 100%;
        max-width: 320px;
    }

    .project-visual {
        min-height: 0;
    }

    .project-name {
        font-size: 1.12rem;
    }

    .project-desc {
        font-size: 0.91rem;
    }

    .tech-pill {
        font-size: 0.76rem;
        padding: 0.46rem 0.8rem;
    }
}

/* ── Medium Phones (≤ 600px) ── */
@media (max-width: 600px) {
    .skills-section {
        padding: 3.5rem 1.4rem 7.5rem;
    }

    .skill-name {
        font-size: 1rem;
    }

    .skill-tags {
        font-size: 0.88rem;
    }

    .stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: clamp(2rem, 9vw, 3.2rem);
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .projects-section {
        padding: 3.5rem 1.4rem 6.5rem;
    }

    .projects-tag {
        font-size: 0.88rem;
    }

    .projects-title {
        font-size: clamp(1.7rem, 9vw, 2.6rem);
    }

    .projects-divider {
        gap: 0.6rem;
    }

    .projects-divider-mark {
        font-size: 1.08rem;
    }

    .projects-divider-track {
        height: 12px;
    }

    .projects-more-btn {
        font-size: 0.82rem;
        padding: 0.72rem 1.2rem;
    }

    .project-visual {
        min-height: 0;
    }

    .project-name {
        font-size: 1.02rem;
    }

    .project-desc {
        font-size: 0.86rem;
        line-height: 1.65;
    }
}

@media (hover: none),
(pointer: coarse) {

    .project-card,
    .project-card a,
    .project-card button {
        cursor: auto;
    }

    .project-hover-cursor {
        display: none;
    }
}

/* ── Small Phones (≤ 480px) ── */
@media (max-width: 480px) {
    .skills-section {
        padding: 3rem 1.2rem 7rem;
    }

    .skills-tag {
        font-size: 0.9rem;
        margin-bottom: 1.8rem;
    }

    .skill-name {
        font-size: 0.95rem;
    }

    .skill-tags {
        font-size: 0.82rem;
    }

    .skill-item {
        padding-top: 1.2rem;
    }

    .skills-about {
        font-size: 0.9rem;
        line-height: 1.75;
    }

    .resume-btn {
        font-size: 0.88rem;
        padding: 0.7rem 1.7rem;
    }

    /* Stats: stack into column on very small phones */
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
    }

    .stat-number {
        font-size: clamp(2.2rem, 12vw, 3rem);
    }

    .stat-label {
        font-size: 0.78rem;
    }

    .projects-section {
        padding: 3rem 1.2rem 6rem;
    }

    .project-visual {
        min-height: 0;
    }

    .project-meta {
        padding: 0;
    }

    .project-name {
        font-size: 0.98rem;
    }

    .project-desc {
        font-size: 0.8rem;
    }

    .tech-pill {
        font-size: 0.68rem;
        padding: 0.35rem 0.62rem;
    }

    .about-page {
        padding: 5.4rem 1.2rem 3.6rem;
    }

    .about-hero-title {
        font-size: clamp(1.52rem, 8.5vw, 2.1rem);
    }

    .about-card,
    .about-highlight,
    .about-stack-group {
        padding: 1rem;
    }

    .about-cta h2 {
        font-size: clamp(1.25rem, 7vw, 1.8rem);
    }
}