/* ========================================================
   BALVANT AHIR - RESPONSIVE DESIGN STYLESHEET
   Dedicated responsive breakpoints for Tablet & Mobile devices
   ======================================================== */

/* --- TABLET & DESKTOP CONTAINER ADJUSTMENT (min-width: 768px) --- */
@media (min-width: 768px) {
    .container {
        padding: 0 2.5rem;
    }
}

/* --- LARGE TABLET & SMALL LAPTOP (max-width: 1200px) --- */
@media (max-width: 1200px) {
    .hero-title {
        font-size: clamp(2.2rem, 5vw, 4.4rem);
    }

    .tools-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
}

/* --- TABLET / IPAD BREAKPOINT (max-width: 1024px) --- */
@media (max-width: 1024px) {
    /* Navigation Bar */
    .nav-links,
    .nav-cta {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-drawer {
        display: flex;
    }

    /* Section Spacing on Tablet */
    #work,
    #skills,
    #tools,
    #experience,
    #education,
    footer {
        padding: 50px 0;
    }

    /* Hero Section */
    #home {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 1.5rem);
        padding-bottom: 2.25rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.25rem;
    }

    .hero-badge-pill {
        margin: 0 auto 1.15rem auto;
    }

    .hero-desc {
        margin: 0 auto 1.35rem auto;
    }

    .hero-stats {
        margin: 0 auto 1.75rem auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-photo-frame {
        max-width: 320px;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        margin: 0 auto;
    }

    .hero-floating-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -15px;
        white-space: nowrap;
    }

    /* Tools Section */
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.15rem;
    }

    /* Credentials & Education */
    .edu-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .cert-visual-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.25rem;
    }

    .cert-thumb {
        max-width: 320px;
        margin: 0 auto;
    }

    .cert-verify-btn {
        margin: 0 auto;
    }

    /* Work Section */
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Skills Matrix */
    .skills-matrix {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-cell.cell-accent-filler {
        display: none !important;
    }

    .skill-cell {
        padding: 1.85rem 1.5rem;
    }
}

/* --- MOBILE PHONES / VERTICAL TABLETS (max-width: 768px) --- */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    /* Section Spacing */
    #work,
    #skills,
    #tools,
    #experience,
    #education,
    footer {
        padding: 44px 0;
    }

    /* Hero Section Spacing on Mobile (Ensures Badge pill never goes under fixed navbar) */
    #home {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 1.5rem);
        padding-bottom: 2.25rem;
    }

    .hero-badge-pill {
        max-width: 100%;
        font-size: 0.74rem;
        letter-spacing: 0.04em;
        padding: 6px 14px;
        margin: 0 auto 1.15rem auto;
        line-height: 1.35;
        text-align: center;
        white-space: normal;
    }

    .status-indicator {
        flex-shrink: 0;
    }

    .section-header {
        margin-bottom: 1.35rem;
        padding-bottom: 0.65rem;
    }

    .section-header h2 {
        font-size: 1.95rem;
    }

    /* Work Grid */
    .work-grid {
        grid-template-columns: 1fr;
    }

    .project-img-wrap {
        height: 240px;
    }

    .work-tabs {
        width: 100%;
        justify-content: flex-start;
        padding: 4px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Skills Matrix Grid */
    .skills-matrix {
        grid-template-columns: 1fr;
    }

    .skill-cell.cell-accent-filler {
        display: none !important;
    }

    .skill-cell {
        padding: 1.5rem 1.25rem;
    }

    /* Tools Grid */
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .tool-box {
        padding: 0.9rem;
    }

    .tool-svg {
        width: 38px;
        height: 38px;
    }

    .tool-label {
        font-size: 0.82rem;
    }

    /* Experience Timeline */
    .exp-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.75rem 0.5rem;
    }

    .exp-role {
        font-size: 1.2rem;
    }

    /* Education Cards */
    .credential-card {
        padding: 2rem 1.5rem;
    }

    .cred-title {
        font-size: 1.2rem;
    }

    /* Footer */
    .footer-heading {
        font-size: 2.6rem;
    }

    .footer-connect-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .footer-link-pill {
        justify-content: center;
        width: 100%;
    }

    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* --- SMALL MOBILE PHONES (max-width: 480px) --- */
@media (max-width: 480px) {
    /* Tight, minimal section padding for compact mobile view */
    #work,
    #skills,
    #tools,
    #experience,
    #education,
    footer {
        padding: 36px 0;
    }

    #home {
        padding-top: calc(var(--nav-height) + 1.35rem);
        padding-bottom: 2rem;
    }

    .hero-badge-pill {
        font-size: 0.68rem;
        letter-spacing: 0.03em;
        padding: 6px 10px;
        gap: 6px;
        margin-bottom: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.05rem;
        letter-spacing: -0.03em;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        border-bottom: 1px solid var(--border);
        padding-bottom: 0.75rem;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-photo-frame {
        max-width: 270px;
    }

    .hero-floating-card {
        padding: 10px 14px;
        bottom: -20px;
    }

    .floating-icon-wrap {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .floating-text h4 {
        font-size: 0.82rem;
    }

    .floating-text p {
        font-size: 0.7rem;
    }

    /* Tools 2 columns on very small screens */
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    .tool-box {
        aspect-ratio: 1.25 / 1;
    }

    .project-details {
        padding: 1.25rem;
    }

    .project-footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
