/* ============================================================
   THE HUSTLE BEAR — Responsive Stylesheet (Premium Mobile Focus)
   Breakpoints: 320px, 375px, 480px, 768px, 992px, 1200px, 1440px
   ============================================================ */

/* ============ STICKY MOBILE ACTIONS & FLOATING BUTTONS ============ */
.floating-actions {
    position: fixed;
    bottom: 100px; /* Elevated to completely avoid sticky bottom quote bar */
    right: 16px; /* Exactly 16px screen edge margin */
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999; /* Ensure it stays above everything */
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.btn-float {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform var(--transition-spring), background var(--transition-base);
}

.btn-float:active {
    transform: scale(0.9);
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-phone {
    background-color: var(--secondary);
}

/* Sticky Bottom Bar for Mobile Quote CTA */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 14px 20px;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.8);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    z-index: 998;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
}

.sticky-bottom-bar.visible {
    transform: translateY(0);
}

.sticky-bottom-bar .btn {
    width: 100%;
    height: 50px;
    min-height: 50px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* Hide hero mobile logo on desktop */
.hero-mobile-logo {
    display: none;
}

/* ============ ULTRA-LARGE SCREENS (≥ 1440px) ============ */
@media (min-width: 1440px) {
    .container {
        max-width: 1360px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    :root {
        --fs-5xl: 4.5rem;
        --fs-4xl: 3.5rem;
        --fs-3xl: 3rem;
    }
}

/* ============ DESKTOP (≤ 1200px) ============ */
@media (max-width: 1200px) {
    :root {
        --fs-5xl: 3rem;
        --fs-4xl: 2.5rem;
        --fs-3xl: 2rem;
    }

    .container {
        padding: 0 var(--space-xl);
    }

    .hero-content {
        gap: var(--space-3xl);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }

    .process-timeline {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
        row-gap: var(--space-2xl);
    }

    .process-line {
        display: none;
    }
}

/* ============ LAPTOP / LANDSCAPE TABLETS (≤ 992px) ============ */
@media (max-width: 992px) {
    :root {
        --fs-5xl: 2.5rem;
        --fs-4xl: 2.25rem;
        --space-5xl: 6rem;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero-left {
        max-width: 100%;
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-right {
        margin-top: var(--space-xl);
    }

    .hero-illustration {
        max-width: 400px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-us-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .why-us-illustration {
        order: -1;
        display: flex;
        justify-content: center;
    }

    .why-us-svg {
        max-width: 350px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        order: 1;
    }

    .contact-info {
        order: 2;
    }
}

/* ============ PREMIUM PORTRAIT TABLETS & SMARTPHONES (≤ 768px) ============ */
@media (max-width: 768px) {
    :root {
        --header-height: 56px; /* Compact mobile header height */
        --space-5xl: 44px; /* Section spacing: 40–50px */
        --space-4xl: 36px;
        --space-3xl: 28px;
        --space-2xl: 20px;
    }

    /* Overall Layout Padding — content fills the full device width */
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    .container,
    .wrapper,
    section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    img, svg, video, canvas {
        max-width: 100%;
        height: auto;
    }

    .container {
        margin: 0 auto;
        max-width: 420px; /* Centered, app-like content column */
        padding: 0 16px;
    }

    .section {
        padding: 44px 0; /* Section spacing: 40–50px */
    }

    .section-header {
        margin-bottom: var(--space-2xl) !important;
    }

    /* Global Typography Requirements */
    .hero-title {
        font-size: 26px !important; /* Main Heading: 26px */
        line-height: 1.2;
        text-align: center;
        font-weight: 800;
        letter-spacing: -0.5px;
    }

    .hero-description {
        font-size: 14px !important; /* Body: 14px */
        line-height: 1.5;
        text-align: center;
        color: var(--medium-text);
        margin-top: 10px;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 26px !important; /* Main Heading: 26px */
        line-height: 1.25;
        font-weight: 800;
        letter-spacing: -0.5px;
    }

    .section-subtitle {
        font-size: 18px !important; /* Sub Heading: 18px */
        line-height: 1.5;
        margin-top: 6px;
    }

    body {
        font-size: 14px; /* Body: 14px */
    }

    .reason-content p,
    .process-step-desc,
    .portfolio-overlay-content p,
    .faq-answer p,
    .contact-detail p,
    .footer-desc,
    .footer-newsletter-text {
        font-size: 14px !important; /* Body: 14px */
        line-height: 1.5;
    }

    /* Buttons Configuration */
    .btn {
        width: 100%; /* Full width */
        height: 48px; /* Exact height: 48px */
        min-height: 48px;
        font-size: 14px !important; /* Button Text: 14px */
        font-weight: 600;
        border-radius: 12px; /* Exact radius: 12px */
        padding: 0 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    }

    .btn-primary {
        background: var(--gradient-primary);
        box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
        color: #fff;
    }

    .btn-outline {
        border: 1.5px solid var(--secondary);
        background: transparent;
    }

    /* Touch Feedback Animation on Button Press */
    .btn:active {
        transform: scale(0.96);
        box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
    }

    /* Sticky Header on Mobile — 56px, logo only (left) + hamburger only (right) */
    .header,
    .header.scrolled {
        background: rgba(13, 13, 13, 0.9) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(212, 175, 55, 0.8);
        height: 56px;
    }

    .navbar {
        height: 56px;
    }

    /* CTA lives inside the mobile menu instead — never in the header */
    .nav-cta {
        display: none !important;
    }

    .logo-bear {
        width: 26px;
        height: 26px;
    }

    .logo-text {
        font-size: 15px;
    }

    .hamburger {
        padding: 6px;
    }

    .hamburger-line {
        width: 20px; /* Icon size: 20px */
    }

    .sticky-bottom-bar {
        display: block;
    }

    /* Full-Screen Premium Animated Mobile Navigation */
    .mobile-menu {
        width: 100vw;
        height: 100vh;
        right: -100vw;
        border-radius: 0;
        background: rgba(13, 13, 13, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 24px;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu-header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 20px 24px;
        border-bottom: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-nav-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;
        margin-top: 40px;
    }

    .mobile-nav-link {
        font-size: 24px; /* Large menu items */
        font-weight: 700;
        color: var(--primary);
        padding: 8px 24px;
        text-align: center;
        background: transparent;
        border-radius: 0;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    }

    .mobile-nav-link:hover, .mobile-nav-link:active {
        background: transparent;
        color: var(--secondary);
        transform: scale(1.08);
        padding-left: 24px;
    }

    .mobile-cta {
        width: 80%;
        max-width: 300px;
        margin-top: 20px;
    }

    /* Redesigned Mobile Hero Section — compact height that hugs its content */
    .hero {
        min-height: 0;
        display: block;
        padding-top: calc(var(--header-height) + 14px);
        padding-bottom: 24px;
    }

    .hero .container {
        width: 100%;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0;
        width: 100%;
    }

    .hero-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Centered logo at the top of Hero */
    .hero-mobile-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-bottom: 10px;
    }

    .hero-mobile-logo .logo-bear {
        width: 34px; /* Compact logo */
        height: 34px;
    }

    .hero-mobile-logo .logo-text {
        font-size: 16px;
        font-weight: 800;
        color: var(--primary);
        letter-spacing: -0.5px;
    }

    /* Centered tagline (badge) below logo */
    .hero-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
        align-self: center;
        font-size: 11px;
        padding: 5px 12px;
    }

    /* Full-width CTA Buttons with 12px Spacing */
    .hero-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px; /* Button spacing: 12px */
        margin-bottom: 20px;
    }

    .hero-buttons .btn {
        width: 100%; /* Full width */
    }

    .hero-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
        gap: 10px; /* Card gap */
        padding-top: 0;
        border-top: none;
        margin-bottom: 0;
    }

    .hero-stat-divider {
        display: none !important;
    }

    .hero-stat {
        background: rgba(17, 17, 17, 0.55);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(212, 175, 55, 0.35);
        border-radius: 12px;
        padding: 12px 10px;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease;
    }

    .hero-stat:active {
        transform: scale(0.95);
    }

    .hero-stat-number {
        font-size: 22px;
        font-weight: 800;
        color: var(--secondary);
        line-height: 1.1;
    }

    .hero-stat-plus {
        font-size: 16px;
        font-weight: 800;
        color: var(--secondary);
    }

    .hero-stat-label {
        font-size: 11.5px;
        font-weight: 500;
        color: var(--medium-text);
        margin-top: 4px;
        text-transform: none;
        letter-spacing: 0;
    }

    /* Hero Illustration directly below Statistics — kept small so hero stays compact */
    .hero-right {
        display: flex;
        width: 100%;
        margin-top: 16px;
        justify-content: center;
        align-items: center;
    }

    .hero-illustration {
        width: 100%;
        max-width: 75%; /* Hero illustration: max width 75% */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-main-svg,
    .hero-main-visual {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* ============ PREMIUM MOBILE SERVICES GRID (2x2 compact cards) ============ */

    /* Reduce section spacing — services section ~40% shorter overall */
    .services.section {
        padding: 22px 0 26px !important;
    }

    .services .section-header {
        margin-bottom: 14px !important;
    }

    .services-grid,
    .services-grid-top,
    .services-grid-bottom {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2-column grid */
        gap: 12px; /* Gap between cards: 12px */
    }

    .services-grid-top {
        margin-bottom: 12px !important;
    }

    .services-grid-bottom {
        margin-bottom: 0 !important;
    }

    /* Last card (Content Creating) sits alone on its own row, centered */
    .services-grid-bottom .service-card:last-child {
        grid-column: 1 / -1;
        width: 48%;
        max-width: 48%;
        margin: 0 auto;
    }

    .service-card {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        width: 100%;
        min-height: 150px; /* Height: 150–170px */
        max-height: 170px;
        padding: 14px 14px 40px;
        gap: 8px;
        border-radius: 16px;
        background: #111111;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid #B8860B;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42), 0 0 14px rgba(184, 134, 11, 0.1);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
        overflow: hidden;
    }

    /* Simplify the desktop glow/border-fill layers — the glass card above replaces them */
    .service-card-glow,
    .service-card::before {
        display: none;
    }

    /* Smooth hover scale + stronger gold glow */
    .service-card:hover {
        transform: translateY(-4px);
        border-color: var(--gold-light, #F4D03F);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 22px rgba(212, 175, 55, 0.3);
    }

    /* Touch feedback */
    .service-card:active {
        transform: scale(0.96);
        border-color: var(--secondary);
        box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
    }

    .service-icon {
        width: 42px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        background: rgba(212, 175, 55, 0.06);
        border: 1.5px solid var(--gold-metallic); /* Gold outline */
        border-radius: 50%;
        flex-shrink: 0;
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.12);
    }

    .service-icon svg {
        width: 18px;
        height: 18px;
    }

    .service-card:hover .service-icon {
        border-color: var(--gold-light, #F4D03F);
        box-shadow: 0 0 14px var(--gold-glow);
        transform: scale(1.08);
    }

    /* Hide the long desktop title/description — mobile uses compact versions instead */
    .service-title,
    .service-desc {
        display: block !important;
    }

    /* Compact mobile title: 15px bold gold, centered, single line — always visible */
    .service-title-mobile {
        display: block !important;
        width: 100%;
        font-size: 15px;
        font-weight: 700;
        color: var(--gold-metallic) !important;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Short description: 12px white, centered, max 2 lines — always visible */
    .service-subtitle-mobile {
        display: -webkit-box !important;
        width: 100%;
        font-size: 12px;
        font-weight: 400;
        color: #F8F8F8 !important;
        opacity: 0.85;
        line-height: 1.4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2; /* Maximum 2 lines */
        line-clamp: 2;
        overflow: hidden;
        padding: 0 2px;
    }

    /* Small circular arrow button, bottom-right corner of the card — always visible */
    .service-title {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 36px;
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.18;
        color: var(--gold-metallic) !important;
        white-space: normal;
    }

    .service-desc {
        display: -webkit-box !important;
        width: 100%;
        margin: -4px 0 0;
        padding: 0 2px;
        color: #F8F8F8 !important;
        font-size: 12px;
        font-weight: 400;
        line-height: 1.3;
        opacity: 0.85;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .service-link {
        position: absolute !important;
        right: 12px;
        bottom: 12px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 0;
        margin: 0;
        font-size: 0; /* hide the "Learn More" text node, keep the arrow icon */
        color: var(--gold-metallic);
        background: rgba(212, 175, 55, 0.08);
        border: 1px solid var(--gold-metallic); /* Gold border */
        border-radius: 50%;
        gap: 0;
        opacity: 1 !important;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease;
    }

    .service-link svg {
        width: 14px;
        height: 14px;
        color: var(--gold-metallic);
    }

    /* Arrow hover animation */
    .service-card:hover .service-link {
        background: var(--gold-metallic);
        border-color: var(--gold-light, #F4D03F);
        transform: scale(1.1);
    }

    .service-card:hover .service-link svg {
        color: #0D0D0D;
        transform: translateX(1px);
    }

    .service-card:active .service-link {
        background: var(--secondary);
        border-color: var(--secondary);
    }

    .service-card:active .service-link svg {
        color: #0D0D0D;
    }

    /* Why choose us reasons vertical layout */
    .why-us-reasons {
        gap: 12px; /* Card gap */
    }

    .why-reason {
        padding: 14px; /* Reduced card padding */
        border-radius: 14px;
    }

    .reason-icon {
        width: 38px; /* Icons: 36–40px */
        height: 38px;
    }

    .reason-icon svg {
        width: 18px;
        height: 18px;
    }

    .why-us-svg {
        max-width: 190px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* Compact 2-column process timeline instead of the squeezed desktop 4-up grid */
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        row-gap: 16px;
        padding-top: var(--space-md);
    }

    .process-step-icon {
        width: 40px; /* Icons: 36–40px */
        height: 40px;
        margin: 0 auto 8px;
        border-width: 2px;
    }

    .process-step-icon svg {
        width: 18px;
        height: 18px;
    }

    .process-step-desc {
        max-width: 100%;
    }

    /* ============ PREMIUM MOBILE PROJECT CARDS (luxury black & gold) ============ */
    .portfolio.section {
        padding: 22px 0 26px !important;
    }

    .portfolio .section-header {
        margin-bottom: 16px !important;
    }

    .portfolio-filters {
        margin-bottom: 18px !important;
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .portfolio-grid {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .portfolio-item {
        width: 100%;
    }

    .portfolio-card {
        display: flex;
        flex-direction: column;
        aspect-ratio: auto; /* stacked thumbnail + info panel, not a square hover card */
        border-radius: 18px; /* Card radius: 18px */
        background: rgba(13, 13, 13, 0.82); /* Luxury glass */
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(212, 175, 55, 0.4); /* Gold border */
        box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 16px rgba(212, 175, 55, 0.06); /* Luxury shadow + soft gold glow */
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
        overflow: hidden;
    }

    /* Hover lift + stronger gold glow */
    .portfolio-card:hover {
        transform: translateY(-4px);
        border-color: var(--gold-light, #F4D03F);
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(212, 175, 55, 0.28);
    }

    .portfolio-card:active {
        transform: scale(0.98);
    }

    /* Thumbnail: fixed 150px height, colorful gradients masked into black/gold */
    .portfolio-image {
        position: relative;
        width: 100%;
        height: 150px; /* Image height: 150px */
        flex-shrink: 0;
        overflow: hidden;
    }

    /* Mask the original colorful inline gradients — no purple/pink/blue on mobile */
    .portfolio-image::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(160deg, rgba(24, 24, 24, 0.94) 0%, rgba(8, 8, 8, 0.97) 100%);
        z-index: 1;
    }

    .portfolio-image-content {
        position: relative;
        z-index: 2;
        color: var(--gold-metallic);
    }

    .portfolio-image-content svg {
        stroke: var(--gold-metallic) !important;
        opacity: 0.95;
    }

    .portfolio-image-content span {
        color: rgba(248, 248, 248, 0.85);
        font-size: 12px;
    }

    .portfolio-card:hover .portfolio-image {
        transform: none; /* disable the desktop zoom-in effect on mobile */
    }

    /* Info panel — always visible, no hover-only overlay */
    .portfolio-overlay {
        position: static;
        inset: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        display: block;
        opacity: 1;
        padding: 14px 16px 16px;
    }

    .portfolio-card:hover .portfolio-overlay {
        opacity: 1;
    }

    .portfolio-overlay-content {
        display: flex;
        flex-direction: column;
        text-align: left;
        color: #fff;
        padding: 0;
        transform: none;
    }

    .portfolio-card:hover .portfolio-overlay-content {
        transform: none;
    }

    /* Reorder: Title → Category → Tech stack → Button */
    .portfolio-overlay-content h4 {
        order: 1;
        font-size: 16px; /* Project Title: 16px */
        font-weight: 700;
        color: var(--gold-metallic); /* Gold */
        margin-bottom: 4px;
    }

    .portfolio-cat {
        order: 2;
        display: inline-block;
        width: fit-content;
        padding: 0;
        margin-bottom: 6px;
        background: transparent;
        border: none;
        border-radius: 0;
        font-size: 13px; /* Category: 13px */
        font-weight: 500;
        color: #F8F8F8; /* White */
        opacity: 0.85;
    }

    /* Long desktop description is replaced by the short tech-stack line on mobile */
    .portfolio-overlay-content p {
        display: none;
    }

    .portfolio-tech-mobile {
        display: block;
        order: 3;
        font-size: 12px; /* Technology: 12px */
        font-weight: 500;
        color: var(--gold-light, #F4D03F); /* Light gold */
        opacity: 0.9;
        margin-bottom: 12px;
    }

    /* Gold outline "View Project →" button */
    .portfolio-view-btn {
        order: 4;
        align-self: flex-start;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 7px 16px !important;
        font-size: 13px !important;
        font-weight: 600;
        color: var(--gold-metallic);
        background: transparent;
        border: 1px solid var(--gold-metallic);
        border-radius: 999px !important;
        box-shadow: none;
        transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    }

    .portfolio-view-btn::after {
        content: ' →';
    }

    .portfolio-card:hover .portfolio-view-btn {
        background: var(--gold-metallic);
        color: #0D0D0D;
        border-color: var(--gold-light, #F4D03F);
    }

    .portfolio-card:active .portfolio-view-btn {
        background: var(--secondary);
        color: #0D0D0D;
        border-color: var(--secondary);
    }

    .portfolio-card {
        border-radius: 20px;
        background: #080808;
        border: 1px solid #B8860B;
    }

    .portfolio-image {
        height: 176px;
        border-radius: 20px 20px 0 0;
    }

    .portfolio-image::before {
        display: none;
    }

    .portfolio-card:hover .portfolio-image {
        transform: scale(1.02);
    }

    .mock-browser {
        width: 84%;
        max-width: 280px;
    }

    .portfolio-overlay {
        padding: 18px;
    }

    .portfolio-overlay-content {
        gap: 0;
        padding: 0;
    }

    .portfolio-overlay-content h4 {
        font-size: 18px;
        font-weight: 800;
        margin-bottom: 5px;
    }

    .portfolio-cat {
        margin-bottom: 7px;
        font-weight: 600;
    }

    .portfolio-overlay-content p {
        display: block !important;
        order: 3;
        width: 100%;
        margin-bottom: 12px;
        font-size: 13px !important;
        line-height: 1.35;
        color: rgba(248, 248, 248, 0.82);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .portfolio-tech-tags {
        order: 4;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 14px;
    }

    .portfolio-tech-tags span {
        min-height: 24px;
        padding: 5px 9px;
        font-size: 11px;
    }

    .portfolio-actions {
        order: 5;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .portfolio-view-btn,
    .portfolio-demo-btn {
        align-self: stretch;
        width: 100% !important;
        min-height: 40px !important;
        padding: 8px 10px !important;
        border-radius: 999px !important;
        font-size: 12px !important;
        font-weight: 800;
    }

    .portfolio-view-btn::after {
        content: none;
    }

    .portfolio-demo-btn {
        color: #0D0D0D;
        background: var(--gradient-secondary);
        border: 1px solid var(--gold-light, #F4D03F);
        box-shadow: 0 10px 20px rgba(212, 175, 55, 0.22);
    }

    /* Stats section 2x2 grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px 12px; /* Reduced card padding */
        border-radius: 14px;
    }

    .stat-icon svg {
        width: 24px; /* Icons: 36–40px max, kept smaller for this dense grid */
        height: 24px;
    }

    /* Testimonials Touch-Swipe Slider */
    .testimonial-carousel {
        padding: 0;
    }

    .testimonial-slide {
        padding: 0 4px;
    }

    .testimonial-card {
        padding: 18px 16px; /* Reduced card padding */
        border-radius: 14px;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
    }

    .testimonial-text {
        font-size: 14px !important;
        margin-bottom: 14px;
    }

    /* Pricing Plans Layout */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pricing-card {
        padding: 18px 16px; /* Reduced card padding */
        border-radius: 14px;
    }

    /* FAQ accordion card spacing */
    .faq-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .faq-item {
        margin-bottom: 0;
        border-radius: 12px;
    }

    .faq-question {
        padding: 14px 16px; /* Reduced card padding */
    }

    .faq-answer p {
        padding: 0 16px 14px 16px;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
    }

    .faq-icon svg {
        width: 13px;
        height: 13px;
    }

    /* Contact form alignment (Form first, details below) */
    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .contact-form-wrapper {
        order: 1; /* Form first */
    }

    .contact-info {
        order: 2; /* Info below */
    }

    .contact-form {
        padding: 18px 16px; /* Reduced card padding */
        border-radius: 14px;
    }

    .contact-info-card {
        padding: 16px 14px; /* Reduced card padding */
        border-radius: 14px;
    }

    .contact-detail-icon {
        width: 38px; /* Icons: 36–40px */
        height: 38px;
    }

    .contact-map {
        border-radius: 12px;
    }

    .map-placeholder {
        height: 130px;
    }

    .form-group input, 
    .form-group select, 
    .form-group textarea {
        min-height: 48px; /* Input height: 48px */
        border-radius: 10px;
    }

    /* Footer structure on Mobile — compact */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-top {
        padding: 36px 0 20px;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-desc {
        text-align: center;
        margin: 0 auto 16px;
    }

    .social-link {
        width: 32px; /* Compact footer icons */
        height: 32px;
    }

    .social-link svg {
        width: 14px;
        height: 14px;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-links a:hover {
        padding-left: 0; /* Clear translate hover on mobile header links */
    }

    .newsletter-form {
        max-width: 320px;
        margin: 0 auto;
    }

    .back-to-top {
        bottom: 155px; /* Stay perfectly above phone floating items */
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

/* ============ LANDSCAPE SMARTPHONES (≤ 480px) ============ */
@media (max-width: 480px) {
    :root {
        --fs-5xl: 1.85rem;
        --fs-4xl: 1.65rem;
        --fs-3xl: 1.50rem;
    }

    .why-us-svg {
        max-width: 200px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 165px;
    }
}

/* ============ SMALL SMARTPHONES (≤ 375px) ============ */
@media (max-width: 375px) {
    .hero-stats {
        gap: 8px;
    }
}

/* ============ ULTRA SMALL SMARTPHONES (≤ 320px) ============ */
@media (max-width: 320px) {
    .hero-mobile-logo .logo-text {
        font-size: 15px;
    }
}
