

        /* =========================================
           03. LAYOUT & TYPOGRAPHY UTILITIES
        ========================================= */
        @media (min-width: 768px) {
            .container { padding: 0 calc(var(--space-lg) + env(safe-area-inset-right, 0px)) 0 calc(var(--space-lg) + env(safe-area-inset-left, 0px)); }
        }
@media (min-width: 1024px) {
            .section-padding {
                padding-top: var(--space-2xl);
                padding-bottom: var(--space-2xl);
            }
        }


        /* =========================================
           04. HEADER & NAVIGATION
        ========================================= */
        @media (min-width: 1024px) {
            .nav-links { display: flex; }
        }
@media (min-width: 1024px) {
            .mobile-toggle { display: none; }
        }


        /* =========================================
           05. HERO SECTION
        ========================================= */
        @media (min-width: 1024px) {
            .hero-grid {
                grid-template-columns: 1.1fr 0.9fr;
            }
        }


        /* =========================================
           06. SERVICES SECTION (Editorial Catalog)
        ========================================= */
        @media (min-width: 1024px) {
            .service-row {
                grid-template-columns: 80px 1.2fr 2fr;
                gap: var(--space-lg);
            }
        }


        /* =========================================
           07. WHY HARNAD SECTION (Clean Light Editorial)
        ========================================= */
        @media (min-width: 1024px) {
            .why-grid {
                grid-template-columns: 1fr 1.2fr;
                gap: var(--space-2xl);
            }
        }
@media (min-width: 640px) {
            .why-values-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }


        /* =========================================
           08. PROFESSIONAL BACKGROUND
        ========================================= */
        @media (min-width: 1024px) {
            .bg-grid {
                grid-template-columns: 1.2fr 0.8fr;
            }
        }


        /* =========================================
           10. SELECTED PROJECTS SECTION
        ========================================= */
        @media (min-width: 1024px) {
            .featured-project {
                grid-template-columns: 1fr 1fr;
            }
        }
@media (min-width: 768px) {
            .harryfolio-box {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
            }
        }


        /* =========================================
           11. PROCESS SECTION (Horizontal Workflow)
        ========================================= */
        @media (min-width: 1024px) {
            .process-timeline {
                grid-template-columns: repeat(5, 1fr);
                gap: var(--space-sm);
            }
        }


        /* =========================================
           12. FAQ ACCORDION SECTION
        ========================================= */
        @media (min-width: 1024px) {
            .faq-grid {
                grid-template-columns: 0.8fr 1.2fr;
            }
        }


        /* =========================================
           13. FINAL CTA & FOOTER
        ========================================= */
        @media (min-width: 768px) {
            .footer-grid {
                grid-template-columns: 2fr 1fr 1fr;
            }
        }


        /* =========================================
           14. REVEAL ANIMATIONS & ACCESSIBILITY
        ========================================= */
        @media (prefers-reduced-motion: reduce) {
            .reveal-on-scroll {
                opacity: 1 !important;
                transform: none !important;
                transition: none !important;
            }
            html {
                scroll-behavior: auto;
            }
        }

/* =========================================
   16. CERTIFICATION & PROJECTS RESPONSIVE
========================================= */
@media (min-width: 1024px) {
    
    
    .cert-details {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .cert-detail-group {
        flex: 1 1 40%;
    }
    
    .supporting-project-grid {
        grid-template-columns: 1fr 1.5fr;
        align-items: center;
        gap: 4rem;
    }
    
    .modal-body {
        padding: 2.5rem;
    }
}


/* =========================================
   17. TABLET OPTIMIZATIONS (768px - 1023px)
========================================= */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-grid,
    .why-grid,
    .bg-grid,
    .featured-project,
    .supporting-project-grid,
    .faq-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
        align-items: center;
    }
    
    .process-timeline {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-row {
        grid-template-columns: 60px 1fr;
    }
}

/* =========================================
   18. COMPREHENSIVE MOBILE OPTIMIZATIONS (< 768px)
   Full layout hardening for all phone brands & models
========================================= */
@media (max-width: 767px) {
    /* Global Container Bounds */
    .container {
        padding-left: clamp(1rem, 4vw, 1.5rem);
        padding-right: clamp(1rem, 4vw, 1.5rem);
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .section-padding {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    /* Header & Navigation */
    .nav-wrapper {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .brand-logo {
        font-size: clamp(0.85rem, 3.8vw, 1rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    /* Hero Section */
    .hero-section {
        padding-top: calc(var(--header-height) + 1.5rem);
        padding-bottom: 2.5rem;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        min-width: 0;
    }

    .hero-content {
        width: 100%;
        min-width: 0;
    }

    .hero-cta-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-proof-strip {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .proof-item {
        min-width: 0;
    }

    .proof-number {
        font-size: clamp(1.1rem, 4.5vw, 1.3rem);
    }

    .proof-label {
        font-size: clamp(0.6rem, 2.2vw, 0.7rem);
        line-height: 1.25;
    }

    .proof-divider {
        display: none;
    }

    .code-studio-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .studio-header {
        padding: 0.6rem 0.85rem;
    }

    .studio-body {
        padding: 1rem 0.85rem;
        font-size: 0.78rem;
        line-height: 1.6;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Featured Projects Section */
    .featured-project {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin-top: 2rem !important;
        margin-bottom: 2rem;
    }

    .project-visual {
        padding: 0.65rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .browser-frame {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .browser-topbar {
        padding: 0.35rem 0.5rem;
        gap: 0.35rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .browser-dots {
        gap: 3px;
        flex-shrink: 0;
    }

    .b-dot {
        width: 6px;
        height: 6px;
    }

    .browser-address {
        flex: 1 1 0%;
        min-width: 0;
        width: 0;
        max-width: 100%;
        padding: 2px 5px;
        font-size: 0.65rem;
        box-sizing: border-box;
    }

    .browser-url {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        display: block;
    }

    .browser-badge-live {
        display: none !important;
    }

    .browser-viewport {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .browser-viewport .real-project-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

    .project-details {
        padding: 1.25rem 0.85rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .featured-project-title {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
        margin-bottom: 0.35rem;
        word-break: break-word;
    }

    .project-subtitle {
        font-size: clamp(0.85rem, 3.2vw, 0.95rem);
        margin-bottom: 0.75rem;
        word-break: break-word;
    }

    .case-study-details {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: 0.75rem;
    }

    .case-study-meta-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0.6rem 0.7rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .case-study-meta-grid .cs-item:nth-child(3) {
        grid-column: span 2;
        padding-top: 0.35rem;
        border-top: 1px dashed var(--border-color);
    }

    .cs-item {
        min-width: 0;
    }

    .cs-label {
        font-size: 0.62rem;
        letter-spacing: 0.05em;
    }

    .cs-val {
        font-size: 0.78rem;
        word-break: break-word;
    }

    .case-study-narrative {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .cs-block {
        padding: 0.6rem 0.75rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .cs-block-title {
        font-size: 0.68rem;
    }

    .cs-block p {
        font-size: 0.8rem;
        line-height: 1.45;
        word-break: break-word;
    }

    .project-links-row {
        width: 100%;
        margin-top: 0.75rem;
    }

    .harryfolio-box {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-top: 2.5rem !important;
    }

    .harryfolio-title {
        font-size: 1.1rem;
    }

    .harryfolio-box .btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }

    /* Services Section (2 Streamlined Services & Tag Chips) */
    .services-header {
        margin-bottom: 2rem;
    }

    .services-catalog {
        gap: 2rem;
    }

    .service-row {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding-bottom: 2rem;
    }

    .service-num {
        font-size: 1.25rem;
        font-weight: 800;
        line-height: 1;
    }

    .service-main {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .service-main h3 {
        font-size: clamp(1.15rem, 4.5vw, 1.35rem);
        margin-bottom: 0.4rem;
    }

    .service-main p {
        font-size: 0.875rem;
        line-height: 1.55;
    }

    .service-tags-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: 0.65rem;
    }

    .service-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.35rem 0.6rem;
        font-size: 0.78rem;
        font-weight: 500;
        border-radius: var(--radius-sm);
        line-height: 1.35;
        max-width: 100%;
        word-break: break-word;
    }

    /* Why Section */
    .why-grid {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
        width: 100%;
        min-width: 0;
    }

    .why-values-grid {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        min-width: 0;
    }

    .value-card {
        padding: 1rem 0.85rem;
        width: 100%;
        box-sizing: border-box;
    }

    .value-card h3 {
        font-size: 1rem;
    }

    .value-card p {
        font-size: 0.825rem;
        line-height: 1.5;
    }

    /* Professional Certification */
    .certification-wrapper {
        padding: 1.25rem 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cert-divider {
        margin: 1.25rem 0;
    }

    .cert-details {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        width: 100%;
    }

    .cert-detail-group {
        width: 100%;
        min-width: 0;
    }

    .cert-value {
        font-size: 0.925rem;
        word-break: break-word;
    }

    .certification-wrapper .btn {
        width: 100%;
        justify-content: center;
        margin-top: 1.5rem !important;
    }

    /* Technologies Matrix */
    .tech-matrix {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
        margin-top: 1.5rem;
    }

    .tech-item {
        font-size: 0.825rem;
        padding: 0.35rem 0.5rem;
    }

    /* Process Timeline */
    .process-timeline {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
        margin-top: 1.5rem;
    }

    .process-step {
        padding-top: 0.75rem;
        width: 100%;
    }

    /* FAQ */
    .faq-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .faq-trigger {
        font-size: 0.95rem;
        padding: 1rem 0;
        gap: 0.75rem;
    }

    .faq-content {
        font-size: 0.875rem;
        line-height: 1.55;
    }

    /* CTA Section */
    .cta-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .cta-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .site-footer {
        padding-top: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        margin-bottom: 2rem;
    }

    .footer-desc {
        max-width: 100%;
    }

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

/* =========================================
   19. SMALL PHONE OPTIMIZATIONS (< 480px & < 360px)
   For compact screens (iPhone SE, Galaxy A-series, Xiaomi Redmi, Folded outer displays)
========================================= */
@media (max-width: 480px) {
    .hero-cta-group,
    .project-links-row {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-group .btn,
    .project-links-row .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-proof-strip {
        gap: 0.25rem;
    }

    .proof-item {
        padding: 0 2px;
    }

    .proof-number {
        font-size: 1.05rem;
    }

    .proof-label {
        font-size: 0.58rem;
    }

    .cert-detail-group {
        flex: 1 1 100%;
    }
}

@media (max-width: 360px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .brand-logo {
        font-size: 0.8rem;
    }

    .hero-proof-strip {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .tech-matrix {
        grid-template-columns: 1fr;
    }

    .case-study-meta-grid {
        grid-template-columns: 1fr;
    }

    .case-study-meta-grid .cs-item:nth-child(3) {
        grid-column: span 1;
    }
}

/* =========================================
   SHORT SCREEN / LANDSCAPE OPTIMIZATIONS
========================================= */
@media (max-height: 500px) and (orientation: landscape) {
    .section-padding, .hero-section {
        padding-top: calc(var(--header-height) + var(--space-md));
        padding-bottom: var(--space-lg);
    }
    .hero-grid {
        gap: var(--space-md);
    }
}
