:root {
    --bg1: #7f9cff;
    --bg2: #6f8ff7;
    --bg3: #5a76e8;
    --surface: rgba(255, 255, 255, 0.12);
    --surface-strong: rgba(255, 255, 255, 0.18);
    --surface-dark: rgba(11, 26, 78, 0.22);
    --line: rgba(255, 255, 255, 0.18);
    --accent: #ff6c25;
    --text: #ffffff;
    --neumo-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    --neumo-border: 1px solid rgba(255, 255, 255, 0.15);
    --neumo-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    --neumo-shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.15);
    --neumo-shadow-focus: 0 0 0 3px rgba(255, 108, 37, 0.25);
}

/* ===== WHITE FLASH ROOT FIX ===== */
html {
    background: #6f8ff7;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* -----------------------------
     Mobile left-slide off-canvas
     ----------------------------- */
@media (max-width: 991.98px) {
    #primary-navigation {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        min-height: 100vh !important;
        height: 100vh !important;
        box-sizing: border-box !important;
        will-change: transform !important;
        transform: translateX(-100%);
        transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s ease !important;
        z-index: 1125;
        background: linear-gradient(160deg, rgba(11, 18, 52, 0.98), rgba(29, 45, 110, 0.94) 52%, rgba(76, 96, 220, 0.9));
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        padding: calc(env(safe-area-inset-top) + 14px) 18px calc(20px + env(safe-area-inset-bottom));
        box-shadow: none;
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        contain: layout style paint;
        border-radius: 0;
        left: 0 !important;
        margin-left: 0 !important;
    }

    #primary-navigation.show {
        transform: translateX(0);
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Prevent accidental horizontal scrollbar from off-canvas nav */
    html,
    body {
        overflow-x: hidden;
    }

    .navbar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(6, 12, 32, 0.68);
        opacity: 0;
        visibility: hidden;
        transition: opacity 260ms ease, visibility 260ms ease;
        z-index: 1112;
        will-change: opacity, visibility;
        contain: layout style paint;
        pointer-events: none;
    }

    .navbar-backdrop.show,
    #primary-navigation.show+.navbar-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* style the close button in the collapse */
    .site-header .nav-drawer__head {
        position: sticky;
        top: 0;
        z-index: 1135;
        padding-top: max(env(safe-area-inset-top), 8px);
        padding-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-height: 48px;
        pointer-events: auto;
        contain: layout style;
    }

    .site-header .nav-drawer__close {
        background: transparent;
        border: 0;
        color: #fff;
        font-size: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        position: relative;
        top: 0;
        right: 0;
        border-radius: 999px;
        z-index: 1135;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        /* Limit animation to the properties that actually change. */
        transition: background-color 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out;
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
        margin: 0 0 0 auto;
        touch-action: manipulation;
        box-shadow: none;
    }

    .site-header .nav-drawer__close:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: scale(1.05);
    }

    .site-header .nav-drawer__close:active {
        transform: scale(0.95);
    }

    /* Vertical menu layout and spacing for mobile */
    #primary-navigation .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 10px 4px 4px !important;
        margin: 8px 0 0 0 !important;
        align-items: stretch !important;
        contain: layout style;
    }

    #primary-navigation .nav-link {
        padding: 14px 16px !important;
        border-radius: 14px !important;
        color: #fff !important;
        background: transparent !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        /* Limit animation to the properties that actually change. */
        transition: background-color 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out;
        text-decoration: none;
        display: flex;
        align-items: center;
        min-height: 44px;
        touch-action: manipulation;
    }

    #primary-navigation .nav-link:active {
        transform: scale(0.98);
    }

    #primary-navigation .nav-link.active {
        background: rgba(255, 255, 255, 0.12) !important;
        border-left: 3px solid var(--accent);
        padding-left: 11px !important;
    }

    /* Ensure Hire Us shows only inside mobile menu */
    .hireus-cta--mobile {
        display: none !important;
    }

    #primary-navigation.show .hireus-cta--mobile {
        display: inline-flex !important;
    }

    /* Keep overscroll controlled while JS handles fixed-body scroll lock */
    body.nav-open {
        overscroll-behavior: none !important;
    }

    body.nav-open>*:not(.site-header):not(.navbar-backdrop) {
        pointer-events: none !important;
        /* keep visible but non-interactive */
        -webkit-user-select: none !important;
        user-select: none !important;
    }

    /* Smooth glass panel look for mobile off-canvas */
    .site-header .collapse.navbar-collapse {
        border-radius: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
        background-color: rgba(12, 22, 54, 0.72);
    }

    /* Nice scrollbar for mobile nav */
    .site-header .collapse.navbar-collapse::-webkit-scrollbar {
        width: 8px;
    }

    .site-header .collapse.navbar-collapse::-webkit-scrollbar-track {
        background: transparent;
    }

    .site-header .collapse.navbar-collapse::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.12);
        border-radius: 4px;
        border: 2px solid transparent;
        background-clip: content-box;
    }

    .site-header .collapse.navbar-collapse::-webkit-scrollbar-thumb:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

.service-item .service-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.service-item .service-link {
    color: var(--accent);
    font-size: 0.8rem;
    text-decoration: none;
}

@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hireus-services-sidebar {
        max-width: 100%;
    }
}

.landing {
    width: 100%;
    position: relative;
}

.hero,
.panel {
    /* Use full available width for hero/panel to ensure edge-to-edge visuals
       while preserving inner content constraints via .hero-copy/.hero-grid */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    overflow-x: clip;
}

.hero-copy {
    max-width: 640px;
    margin-left: clamp(32px, 6vw, 92px);
    position: relative;
    z-index: 2;
}

.hero.hero-stars {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: 100svh;
    isolation: isolate;
    background:
        radial-gradient(circle at 15% 20%, rgba(124, 243, 255, 0.18), transparent 32%),
        radial-gradient(circle at 82% 16%, rgba(255, 108, 37, 0.16), transparent 26%),
        linear-gradient(180deg, rgba(124, 156, 255, 0.95) 0%, rgba(106, 136, 255, 0.92) 52%, rgba(86, 118, 235, 0.96) 100%);
}

.hero.hero-split.hero-stars {
    min-height: 100vh !important;
    min-height: calc(var(--vh, 1vh) * 100) !important;
    min-height: 100svh !important;
    padding-left: clamp(16px, 4vw, 56px);
    padding-right: clamp(16px, 4vw, 56px);
    margin-top: -108px;
    padding-top: 136px !important;
    padding-bottom: 72px;
}

/* Fix: ensure hero / landing sections render immediately on load
   Some browsers defer rendering when `content-visibility` or large
   negative margins are present — force visibility and neutralize
   the negative offset to avoid initial clipped/misplaced layout. */
.landing-home>section {
    content-visibility: visible !important;
    contain-intrinsic-size: auto !important;
}

.hero.hero-split.hero-stars,
.hero.hero-stars {
    margin-top: 0 !important;
    /* keep intended top padding but avoid negative pull-up */
    padding-top: 136px !important;
}

.hero.hero-stars::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.5px),
        radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.5px);
    background-size: 140px 140px, 220px 220px;
    background-position: 0 0, 60px 40px;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.hero-star-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 0;
}

.hero.hero-stars>*:not(.hero-star-canvas) {
    position: relative;
    z-index: 2;
}

.hero-logo {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    margin: 0 0 18px;
    object-fit: contain;
    opacity: 1 !important;
    position: relative;
    z-index: 3;
    will-change: opacity;
    backface-visibility: hidden;
}

.hero-copy .eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    opacity: .88
}

.hero-brand {
    font-size: clamp(44px, 7vw, 92px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: .95;
    text-transform: uppercase;
    margin-bottom: 12px
}

.hero-copy h1 {
    margin: 0;
    max-width: 520px;
    font-size: clamp(42px, 4.8vw, 68px);
    line-height: .92;
    text-transform: uppercase;
    font-weight: 900
}

.subtitle {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-top: 18px;
    font-size: 14px
}



.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px
}

.hero .cta-row .btn {
    width: auto;
    min-width: 124px;
    flex: 0 0 auto;
    border-radius: 999px;
    white-space: nowrap;
}

.hero .cta-row .btn:hover,
.hero .cta-row .btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--neumo-shadow-focus);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--neumo-bg);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: var(--neumo-shadow);
    border: var(--neumo-border);
    /* Limit animation to the properties that actually change. */
    transition: background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Fix GSAP fighting with CSS transitions on load */
body.gsap-motion [data-reveal],
body.gsap-motion .motion-lift,
body.gsap-motion .hero-copy>* {
    transition: none !important;
    animation: none !important;
}

.btn.glass,
.chip,
.search-chip,
.team-card,
.work-badge,
.team-card.add-card {
    background: var(--neumo-bg);
    border: var(--neumo-border);
    box-shadow: var(--neumo-shadow);
}

.btn.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    color: #fff
}

.section-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.16)
}

.section-title {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 700
}

.portfolio-panel {
    padding-top: clamp(44px, 6vw, 72px)
}

.landing-home #portfolio.portfolio-panel {
    padding-left: clamp(18px, 3vw, 44px);
    padding-right: clamp(18px, 3vw, 44px);
}

.landing-home #portfolio .portfolio-grid-wrapper {
    width: 100%;
    margin-top: 26px;
}

.landing-home #portfolio .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 2vw, 20px);
    justify-items: stretch;
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
}

.landing-home #portfolio .portfolio-grid>.col {
    display: flex;
    flex: initial;
    width: auto;
    max-width: none;
    aspect-ratio: 1 / 1;
}

.landing-home #portfolio .portfolio-grid>.col>.portfolio-card--home {
    width: 100%;
    height: 100%;
}

/* Portfolio section: allow dropdown to show but clip horizontal overflow */
.landing-home #portfolio,
.landing-home #portfolio .portfolio-grid-wrapper,
.landing-home #portfolio .portfolio-grid,
.landing-home #portfolio .portfolio-grid>.col {
    overflow-x: clip;
    overflow-y: visible;
}

.landing-home #portfolio * {
    -ms-overflow-style: none;
    /* IE 10+ */
    scrollbar-width: none;
    /* Firefox */
}

.landing-home #portfolio *::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* Profile page: add gentle left offset for project lists so cards
   don't sit flush to the very edge. Scoped and responsive. */
.profile-page .portfolio-panel,
.profile .portfolio-panel,
.team-profile .portfolio-panel {
    padding-left: 20px;
}

@media (max-width: 768px) {

    .profile-page .portfolio-panel,
    .profile .portfolio-panel,
    .team-profile .portfolio-panel {
        padding-left: 12px;
    }
}

.landing-home {
    display: grid;
    gap: 0;
}

.landing-home>section {
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

.portfolio-head {
    margin-bottom: 28px;
}

.portfolio-card--home {
    min-height: unset;
    background-size: cover;
    background-position: center;
    padding: 0;
}

.portfolio-card--home .portfolio-surface {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card--home:hover .portfolio-surface {
    opacity: 1;
}

.portfolio-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 24px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Home page cards: hide content until hover */
.portfolio-card--home .portfolio-card__content {
    opacity: 0;
    transform: translateY(12px);
}

.portfolio-card--home:hover .portfolio-card__content {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card__tag {
    margin-bottom: 14px;
    display: inline-block;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-card__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.portfolio-card__title {
    font-size: 24px;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.portfolio-card__description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.5;
}

.portfolio-card__button {
    margin-top: 16px;
    border-radius: 999px;
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-card--clickable {
    cursor: pointer;
}

.project-modal .modal-dialog {
    max-width: min(1220px, calc(100vw - 24px));
}

.project-modal .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(20, 28, 74, 0.92), rgba(12, 18, 54, 0.94));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(8, 16, 44, 0.42);
}

.project-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 24px 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.project-modal__eyebrow {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
}

.project-modal .modal-title {
    margin: 0;
    font-family: Oswald, Inter, sans-serif;
    font-size: clamp(28px, 3.4vw, 48px);
    line-height: 0.95;
}

.project-modal .btn-close {
    filter: invert(1);
    opacity: 0.9;
}

.project-modal .modal-body {
    padding: 0;
}

.project-modal__body {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    max-height: 85vh;
}

.project-modal__carousel-wrap {
    position: relative;
    min-height: 420px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-carousel {
    position: relative;
    width: 100%;
    display: block;
}

.project-carousel__viewport {
    overflow: hidden;
    width: 100%;
    min-height: 420px;
    height: clamp(320px, 58vh, 620px);
}

.project-carousel__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    will-change: transform;
}

.project-carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.project-carousel__slide img {
    width: 100%;
    height: 100%;
    min-height: 388px;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
}

.project-carousel__control {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 16, 40, 0.68);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    transform: translateY(-50%);
    z-index: 4;
}

.project-carousel__control--prev {
    left: 14px;
}

.project-carousel__control--next {
    right: 14px;
}

.project-carousel__control:hover {
    transform: translateY(-50%) scale(1.04);
    background: rgba(255, 108, 37, 0.86);
}

.project-carousel__control:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.project-carousel__pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.project-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.34);
    transition: transform 0.2s ease, background-color 0.2s ease;
    will-change: transform;
    transform-origin: center;
}

.project-carousel__dot.is-active {
    transform: scaleX(2.8);
    background: var(--accent);
}

.project-carousel__dot:focus-visible,
.project-carousel__control:focus-visible {
    outline: 2px solid rgba(255, 108, 37, 0.9);
    outline-offset: 3px;
}

.project-modal__details {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    align-content: start;
    overflow-y: auto;
    max-height: 85vh;
}

/* Custom scrollbar for modal details */
.project-modal__details::-webkit-scrollbar {
    width: 6px;
}

.project-modal__details::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.project-modal__details::-webkit-scrollbar-track {
    background: transparent;
}

.project-modal__description {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
    font-size: 15px;
}

.project-modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-modal__tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.project-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.project-image-modal .modal-content {
    background: rgba(5, 10, 30, 0.96);
    border: 0;
    border-radius: 0;
}

.project-image-modal__content {
    position: relative;
}

.project-image-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    opacity: 1;
}

.project-image-modal__body {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow: auto;
}

.project-image-modal__body img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 960px) {
    .project-modal__body {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .project-modal__details {

        max-height: none;
        overflow-y: visible;
        border-left: 0;
    }

    .project-modal__carousel-wrap {
        min-height: 300px;
        max-height: 50vh;
    }

    .project-carousel {
        width: 100%;
    }

    .project-carousel__viewport {
        height: min(42vh, 320px);
        min-height: 280px;
    }

    .project-carousel__control--prev {
        left: 12px;
    }

    .project-carousel__control--next {
        right: 12px;
    }

    .project-carousel__pagination {
        margin-top: 12px;
    }
}

@media (max-width: 576px) {
    .project-modal .modal-header {
        padding: 18px 18px 14px;
    }

    .project-modal__details {
        padding: 18px;
    }

    .project-carousel__viewport {
        min-height: 280px;
        height: 280px;
    }

    .project-carousel__slide img {
        min-height: 0;
        height: 100%;
        max-height: 100%;
    }
}

.portfolio-panel__footer {
    text-align: center;
    margin-top: 40px;
}

.portfolio-empty-state {
    text-align: center;
    padding: 60px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
}

.portfolio-empty-state p {
    margin: 0;
}

.chip {
    min-width: 122px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color .25s ease, color .25s ease, transform .25s ease
}

.chip:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px)
}

.chip.active {
    color: var(--accent)
}

.chip:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px
}

.about-panel {
    text-align: left;
    padding-top: 52px;
    padding-bottom: 74px;
    overflow: clip;
}

.about-brand {
    text-align: center;
    font-size: clamp(56px, 8vw, 100px);
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 28px;
    margin-inline: auto;
}

.about-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: start;
    margin-inline: auto;
}

.about-copy {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 12px 32px rgba(10, 24, 70, 0.12);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
    font-size: 16px;
}

.about-copy strong {
    color: #ffffff;
    font-weight: 700;
}

.about-copy h3 {
    font-size: 26px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px
}

.about-highlight {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 6px;
}

.about-highlight strong {
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.about-highlight span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.55;
    grid-column: 1 / -1;
}

.about-aside {
    display: grid;
    gap: 18px;
}

.about-card {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 24px rgba(10, 24, 70, 0.1);
}

.about-card--accent {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(15, 34, 102, 0.18));
    border-color: rgba(255, 255, 255, 0.2);
}

.about-card-label {
    display: inline-flex;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.about-card strong {
    display: block;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.about-card p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
}

.founders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    text-align: left
}

.founders div {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08)
}

.founders strong {
    font-size: 18px;
    color: #fff
}

.founders span,
.founders small {
    opacity: .92
}

.site-footer {
    padding: 56px 24px 40px;
    margin-top: 80px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    opacity: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto
}

.auth {
    padding: 80px;
    display: flex;
    justify-content: center
}

.auth-card {
    background: rgba(255, 255, 255, 0.06);
    padding: 28px;
    border-radius: 18px;
    width: 320px
}

.auth-shell {
    min-height: calc(100vh - 120px);
    min-height: calc((var(--vh, 1vh) * 100) - 120px);
    min-height: calc(100svh - 120px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

.auth-card-wide {
    width: min(540px, 94%);
    margin: 40px auto;
    padding: 48px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.16)
}

/* Improve auth card spacing on small screens */
@media (max-width: 820px) {
    .auth-shell {
        min-height: calc(100vh - 120px);
        min-height: calc((var(--vh, 1vh) * 100) - 120px);
        min-height: calc(100svh - 120px);
        padding-top: 32px;
        padding-bottom: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .auth-card-wide {
        width: min(420px, 92%);
        padding: 32px;
        margin: 24px auto;
        border-radius: 18px;
    }

    .auth-title {
        font-size: 24px
    }

    .auth-copy {
        display: block;
        margin-bottom: 24px;
    }
}

@media (max-width: 420px) {
    .auth-card-wide {
        width: 94%;
        padding: 24px
    }

    .auth-form input {
        padding: 12px
    }

    .auth-submit {
        padding: 14px
    }
}

.auth-copy {
    margin-bottom: 24px
}

.auth-form label {
    display: block;
    font-size: 14px;
    letter-spacing: .05em;
    margin-top: 20px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-align: left;
}

.auth-form input {
    margin-bottom: 8px;
    background: rgba(8, 24, 96, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 16px;
    /* Prevents auto-zoom on mobile */
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.62)
}

.auth-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 108, 37, 0.25);
    transform: translateY(-1px);
    outline: none;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .input {
    margin-top: 0;
    padding-right: 46px;
    /* Make room for the eye icon */
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 6px;
    font-size: 15px;
    transition: color 0.2s ease;
    display: flex;
    z-index: 2;
}

.password-toggle:hover {
    color: #fff;
}

.auth-row {
    margin-top: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.auth-row-end {
    justify-content: flex-end;
}

.auth-submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px
}

.auth-check input {
    margin: 0;
    width: 16px;
    height: 16px
}

.auth-link,
.auth-switch a {
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.auth-submit {
    display: flex !important;
    margin-top: 16px;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 12px 22px !important;
    min-height: 48px;
    background: linear-gradient(135deg, #ff8a55, #ff6c25) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    /* Limit animation to the properties that actually change. */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.auth-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff9966, #ff7a3d) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 34, 0.3) !important;
}

.auth-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(255, 107, 34, 0.2) !important;
}

.auth-submit:focus-visible {
    outline: 2px solid rgba(255, 108, 37, 0.5);
    outline-offset: 2px;
}

.auth-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 12px;
    width: 100%;
    min-height: 52px;
    padding: 14px 24px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff8a55, #ff6c25);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 28px rgba(255, 108, 37, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(255, 108, 37, 0.34);
    background: linear-gradient(135deg, #ff9a6b, #ff7a3d);
    color: #fff;
}

.auth-submit:active {
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(255, 108, 37, 0.26);
}

.back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 36px;
    padding: 6px;
    border-radius: 999px;
    background: var(--neumo-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    box-shadow: var(--neumo-shadow);
}

.back-home:hover {
    transform: translateY(-2px);
    box-shadow: var(--neumo-shadow-hover);
}

.back-home i {
    font-size: 16px;
    color: var(--text)
}

@media (max-width: 420px) {
    .auth-actions {
        gap: 10px
    }

    .back-home {
        width: 40px;
        height: 36px
    }
}

.auth-switch {
    margin: 14px 0 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88)
}

.admin {
    padding: 40px
}

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

.admin-grid {
    display: flex;
    gap: 18px
}

.box {
    background: rgba(255, 255, 255, 0.04);
    padding: 20px;
    border-radius: 12px
}

.admin-list ul {
    padding-left: 20px
}

.user-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-icon {
    font-size: 24px;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.site-footer {
    width: 100%;
    padding: 56px 40px 20px;
    background: linear-gradient(180deg, rgba(136, 160, 255, 0.96), rgba(109, 134, 255, 0.96));
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer-line,
.footer-bottom-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 50px;
}

.footer-bottom-line {
    margin-top: 50px;
    margin-bottom: 15px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

/* LEFT */
.footer-brand {
    max-width: 260px;
}

.footer-logo {
    width: 140px;
    margin-bottom: 20px;
}

.footer-address {
    color: #e8ecff;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 14px;
}

.footer-phone {
    color: #ff7d3b;
    font-size: 14px;
    margin-bottom: 18px;
    font-weight: 600;
}

.chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icons a {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 22px 34px;
    flex: 1;
}

.footer-column h4 {
    color: var(--accent);
    margin: 0 0 12px;
    font-size: 13px;
}

.footer-column a {
    display: block;
    color: #eef2ff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.8;
}

.footer-copy {
    text-align: center;
    font-size: 11px;
    letter-spacing: .02em;
    opacity: .9;
}

@media (max-width: 1100px) {

    .hero,
    .work-grid,
    .team-row,
    .founders {
        grid-template-columns: 1fr
    }

    .hero {
        min-height: 0;
        padding-top: 32px
    }

    .hero-art {
        min-height: 420px
    }

    .footer-links {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 1rem;
    }

    .site-header nav {
        padding: 0.55rem 1rem 0.55rem 0.7rem;
        border-radius: 22px;
        gap: 12px;
    }

    .brand img {
        max-width: 180px;
        max-height: 40px;
    }

    .hero-stats,
    .feature-grid,
    .stats-grid,
    .service-grid,
    .testimonial-grid,
    .blog-grid,
    .admin-grid,
    .about-highlights,
    .founders {
        grid-template-columns: 1fr;
    }

    .hero,
    .panel {
        width: min(100% - 20px, 1280px)
    }

    .hero,
    .panel {
        padding-left: 10px;
        padding-right: 10px
    }

    .hero {
        gap: 24px
    }

    .hero-copy h1,
    .work-copy h2,
    .about-brand {
        word-break: break-word
    }

    .hero-art {
        min-height: 300px
    }

    .team-card {
        min-height: 200px
    }

    .footer-container {
        gap: 34px;
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: 40px 16px 30px;
        margin-top: 60px;
    }

    .footer-brand {
        margin-bottom: 20px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

.error {
    background: rgba(255, 107, 34, 0.2);
    border: 1px solid var(--accent);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.admin-list .mini-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.admin-list .mini-form input,
.admin-list .mini-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    flex: 1 1 200px;
}

.admin-list .mini-form textarea {
    min-height: 80px;
    resize: vertical;
    flex-basis: 100%;
}

.admin-list .mini-form button {
    flex-shrink: 0;
    align-self: center;
}

.admin-list ul li {
    background: rgba(255, 255, 255, 0.04);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    list-style-type: none;
}

.admin-list ul li p {
    margin: 8px 0 0 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Modern frontend override system */
.site-body {
    margin: 0;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: 100svh;
    color: #fff;
    font-family: Inter, Poppins, Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.3), transparent 18%),
        radial-gradient(circle at 82% 18%, rgba(124, 243, 255, 0.16), transparent 17%),
        radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.14), transparent 26%),
        linear-gradient(145deg, #86a0ff 0%, #7995fb 34%, #6f8ff7 60%, #5974e7 100%);
    overflow-x: hidden;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

.site-body::before,
.site-body::after {
    content: '';
    position: fixed;
    /* Use responsive clamped size so these don't force overflow on small screens */
    width: clamp(160px, 28vw, 512px);
    height: clamp(160px, 28vw, 512px);
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.site-body::before {
    top: -8rem;
    left: -10rem;
    background: rgba(255, 255, 255, 0.18);
}

.site-body::after {
    bottom: -10rem;
    right: -8rem;
    background: rgba(19, 42, 118, 0.2);
}

/* Root-level defensive rules to prevent horizontal overflow on mobile */
html,
body,
.site-body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.site-main,
.footer-shell,
.footer-copy,
.site-footer,
.hero,
.panel {
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.site-header,
.landing-home .hero,
.panel {
    box-sizing: border-box;
}

.page-loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(70, 92, 190, 0.24);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    z-index: 9999;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.22);
    border-top-color: #fff;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.site-header {
    padding: 12px 12px 0;
    background: transparent;
}

/* ==========================================================================
   FINAL COMPREHENSIVE NAVBAR FIX (Resolves Mobile Structural Cutoff)
   ========================================================================== */

.nav-shell {
    position: relative;
    z-index: 1000;
    width: min(1180px, calc(100% - 32px));
    margin: 16px auto 0 auto;
    /* Added distinct margin-top for breathing room */
    display: flex;
    flex-wrap: wrap;
    /* Allows collapse content to drop neatly below */
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 6px 20px rgba(8, 22, 65, 0.12);
    box-sizing: border-box;
    height: auto !important;
    /* Prevents parent from locking height */
    overflow: visible !important;
    /* Forces glass card styling to follow expanded items */
    transition: border-radius 0.3s ease, padding 0.3s ease;
}

/* Header Core Structural Elements */
.nav-shell .brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-shell .brand img {
    height: 32px !important;
    width: auto !important;
    max-width: 160px;
    object-fit: contain;
    display: block;
}


/* Collapse Panel Default Setup */
.nav-shell .navbar-collapse {
    display: flex;
    align-items: center;
    flex-basis: auto;
    flex-grow: 1;
}

.nav-shell .navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin: 0 auto;
    /* Horizontal alignment for desktop */
    padding: 0;
    list-style: none;
}

.nav-shell .navbar-nav .nav-link {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 6px 0;
    display: inline-block;
    position: relative;
}

.nav-shell .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6c25, #ffa052, #ff6c25);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.nav-shell .navbar-nav .nav-link:hover::after,
.nav-shell .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.nav-shell .navbar-nav .nav-link:hover,
.nav-shell .navbar-nav .nav-link.active,
.nav-shell .navbar-nav .nav-link:focus-visible {
    color: rgba(255, 255, 255, 0.85);
}



/* Support for custom profile menu and toggle button */
.profile-menu {
    position: relative;
}

.profile-trigger {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.profile-trigger:hover,
.profile-trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 170px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(89, 112, 233, 0.96);
    box-shadow: 0 8px 24px rgba(10, 20, 58, 0.18);
    display: grid;
    gap: 6px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.profile-dropdown.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-link {
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.9;
}

.profile-link:hover,
.profile-link.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   MOBILE & TABLET BREAKPOINT ENGINE (< 960px)
   ========================================================================== */
@media (max-width: 960px) {
    .nav-shell {
        padding: 10px 16px !important;
        border-radius: 20px !important;
        flex-wrap: nowrap !important;
        /* Converts capsule to clean fluid window panel card */
    }

    .nav-shell .brand img {
        max-width: 140px !important;
        height: 30px !important;
    }

    /* Force bootstrap targets to isolate drop layers correctly */
    #primary-navigation {
        display: none !important;
        /* Keep structural layouts hidden when closed */
        flex-basis: auto !important;
        order: unset !important;
        width: 280px !important;
    }

    /* Activated Toggle State via Javascript classes */
    #primary-navigation.show {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: 0 !important;
        visibility: visible !important;
        height: 100vh !important;
    }

    /* Limit mobile nav panel height so it never overflows the viewport */
    #primary-navigation {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        max-height: 100vh !important;
        height: 100vh !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: linear-gradient(160deg, rgba(11, 18, 52, 0.98), rgba(29, 45, 110, 0.94) 52%, rgba(76, 96, 220, 0.9));
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        transform: translate3d(-102%, 0, 0);
        border-radius: 0 !important;
        box-shadow: none;
        padding: calc(env(safe-area-inset-top) + 14px) 18px calc(20px + env(safe-area-inset-bottom));
        z-index: 1125 !important;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, visibility 0.28s ease !important;
        contain: layout style paint;
        margin-left: 0 !important;
        transition: transform 0.25s ease-out, visibility 0.25s ease-out !important;
    }

    #primary-navigation.show {
        transform: translateX(0);
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .nav-shell .navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 12px !important;
        margin: 8px 0 0 0 !important;
        padding: 10px 4px 4px !important;
    }

    .nav-shell .navbar-nav .nav-link {
        display: block !important;
        width: 100% !important;
        padding: 14px 16px !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        font-size: 16px !important;
        box-sizing: border-box;
        position: relative !important;
    }

    .nav-shell .navbar-nav .nav-link::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 3px !important;
        background: linear-gradient(90deg, #ff6c25, #ffa052, #ff6c25) !important;
        border-radius: 0 0 12px 12px !important;
        transform: scaleX(0) !important;
        transform-origin: left !important;
        transition: transform 0.35s ease !important;
    }

    .nav-shell .navbar-nav .nav-link:hover::after,
    .nav-shell .navbar-nav .nav-link.active::after {
        transform: scaleX(1) !important;
    }

    .nav-shell .navbar-nav .nav-link:hover,
    .nav-shell .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.05) !important;
        color: rgba(255, 255, 255, 0.85) !important;
    }
}

/* Extra Tight Phone Screens Polish (< 420px) */
@media (max-width: 420px) {
    .nav-shell {
        padding: 10px 12px !important;
        gap: 6px !important;
        width: min(100% - 20px, 1180px);
    }

    .nav-shell .brand img {
        max-width: 120px !important;
        height: 26px !important;
    }
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-main {
    position: relative;
    z-index: 1;
}

.section-wrap {
    padding: 104px 0;
}

.section-wrap+.section-wrap {
    padding-top: 76px;
}

.section-head {
    display: grid;
    gap: 12px;
    margin-bottom: 40px;
    max-width: 780px;
}

.eyebrow {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 700;
}

.section-title {
    margin: 0;
    font-family: Oswald, Inter, sans-serif;
    font-size: clamp(34px, 4vw, 62px);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.motion-word {
    display: inline-block;
    transform-origin: 50% 100%;
    will-change: transform, opacity;
}

.services-page .section-head {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    justify-items: center;
}

.services-page .section-title {
    display: block;
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
}

.services-page .section-copy {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.services-page .eyebrow {
    width: 100%;
    text-align: center;
}

.section-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 670px;
    font-size: clamp(15px, 1.5vw, 17px);
}

.section-head .section-copy {
    margin-top: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: var(--neumo-border);
    background: var(--neumo-bg);
    color: #fff;
    font-weight: 700;
    /* Limit animation to the properties that actually change. */
    transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: var(--neumo-shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--neumo-shadow-hover);
    background: rgba(255, 255, 255, 0.15);
}

/* Remove Bootstrap's default boxy focus ring */
.btn:focus,
.btn:active,
.btn:focus-visible {
    outline: none !important;
    box-shadow: var(--neumo-shadow-focus) !important;
}

.btn:hover:focus,
.btn:hover:active {
    box-shadow: var(--neumo-shadow-hover) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #ff8a55, #ff6c25);
    border: none;
    box-shadow: 0 6px 16px rgba(255, 108, 37, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff9966, #ff7a3d);
    box-shadow: 0 10px 24px rgba(255, 108, 37, 0.4);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
    min-height: 46px;
    padding: 12px 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Form button alignment */
form .btn,
form button[type="submit"],
form button[type="button"] {
    min-height: 46px;
    padding: 12px 20px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.glass-card,
.hero-panel,
.stat-card,
.feature-card,
.service-card,
.portfolio-card,
.testimonial-card,
.contact-card,
.notice-card,
.blog-card,
.counter-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    contain: layout paint;
}

.hero-wrap {
    min-height: calc(100svh - 84px);
    display: grid;
    align-items: center;
    padding: 36px 0 56px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.03fr 0.97fr;
    gap: 44px;
    align-items: center;
}

.hero-title {
    margin: 0;
    max-width: 11ch;
    font-family: Oswald, Inter, sans-serif;
    font-size: clamp(54px, 8vw, 108px);
    line-height: 0.92;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.hero-title .accent {
    color: #ff6c25;
}

.hero-lead {
    margin: 18px 0 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-stats,
.stats-grid,
.feature-grid,
.service-grid,
.testimonial-grid,
.contact-grid,
.footer-grid,
.blog-grid {
    display: grid;
    gap: 22px;
}

.hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 30px;
}

.stat-card,
.feature-card,
.service-card,
.portfolio-card,
.testimonial-card,
.contact-card,
.notice-card,
.blog-card,
.counter-card {
    border-radius: 24px;
    padding: 24px;
}

.feature-card h3,
.service-card h3,
.portfolio-card h3,
.testimonial-card h3,
.contact-card h3,
.blog-card h3,
.notice-card h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
}

.feature-card p,
.service-card p,
.portfolio-card p,
.testimonial-card p,
.contact-card p,
.blog-card p,
.notice-card p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.72;
}

.stat-number,
.counter-value {
    display: block;
    font-family: Oswald, Inter, sans-serif;
    font-size: clamp(30px, 3vw, 56px);
    line-height: 1;
}

.stat-label,
.counter-label {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

.hero-panel {
    position: relative;
    min-height: 640px;
    border-radius: 42px;
    display: block;
    overflow: hidden;
    isolation: isolate;
}

.hero-panel::before,
.hero-panel::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-panel::before {
    top: -6%;
    right: -8%;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(124, 243, 255, 0.38), transparent 68%);
}

.hero-panel::after {
    left: -10%;
    bottom: -10%;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, rgba(255, 108, 37, 0.22), transparent 68%);
}

.hero-visual {
    position: relative;
    min-height: 640px;
    padding: 26px;
}

.section-panel {
    border-radius: 36px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    box-shadow: 0 16px 40px rgba(10, 20, 58, 0.16);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.text-block {
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.78);
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
}

.feature-card,
.service-card,
.testimonial-card,
.contact-card,
.notice-card,
.blog-card,
.counter-card {
    position: relative;
    overflow: hidden;
}

.icon-badge,
.service-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.service-card {
    min-height: 220px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 600px) {
    .service-card {
        min-height: auto;
        padding: 12px;
    }
}

.pill-row,
.chip-row,
.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill,
.chip,
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

/* =========================
   RESPONSIVE DROPDOWN
========================= */

.portfolio-filter-dropdown {

    width: min(100%, 920px);
    box-sizing: border-box;

    margin: 18px auto 30px;

    padding: clamp(14px, 2vw, 18px);

    border-radius: 28px;

    border: 1px solid rgba(255, 255, 255, 0.16);

    background: linear-gradient(135deg, rgba(127, 156, 255, 0.42), rgba(90, 118, 232, 0.34));

    box-shadow: 0 22px 46px rgba(35, 49, 118, 0.22);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    position: relative;

    /* ensure dropdown sits above page layers and is tappable on mobile */
    z-index: 60;

}

.portfolio-filter-dropdown__control {

    position: relative;

    display: grid;

    gap: 12px;
    width: min(100%, 760px);
    margin-inline: auto;

}

.portfolio-filter-dropdown__trigger {

    width: 100%;

    min-height: 54px;

    border-radius: 20px;

    padding: 14px 18px;

    border: 1px solid rgba(255, 255, 255, 0.18);

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));

    color: #fff;

    font-size: 15px;

    font-weight: 600;

    box-shadow: 0 14px 34px rgba(28, 42, 110, 0.22);

    display: inline-flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    text-align: left;

    cursor: pointer;
    touch-action: manipulation;
    position: relative;
    z-index: 62;

}

.portfolio-filter-dropdown__trigger:focus {

    outline: none;

    border-color: rgba(255, 108, 37, 0.68);

    box-shadow: 0 0 0 0.22rem rgba(255, 108, 37, 0.18);

}

.portfolio-filter-dropdown__trigger-label {

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}

.portfolio-filter-dropdown__trigger-caret {

    flex: 0 0 auto;

    width: 10px;

    height: 10px;

    border-right: 2px solid rgba(255, 255, 255, 0.9);

    border-bottom: 2px solid rgba(255, 255, 255, 0.9);

    transform: rotate(45deg) translateY(-2px);

    transition: transform 0.2s ease;

}

.portfolio-filter-dropdown.is-open .portfolio-filter-dropdown__trigger-caret {

    transform: rotate(-135deg) translateY(2px);

}

.portfolio-filter-dropdown__menu {

    position: absolute;

    left: 0;

    right: 0;

    top: calc(100% + 10px);

    display: grid;

    gap: 8px;

    padding: 10px;

    border-radius: 22px;

    border: 1px solid rgba(255, 255, 255, 0.15);

    background: linear-gradient(180deg, rgba(16, 28, 84, 0.98), rgba(12, 20, 64, 0.98));

    box-shadow: 0 24px 48px rgba(22, 34, 96, 0.4);

    max-height: min(48vh, 340px);

    overflow-y: auto;

    z-index: 10;

    scrollbar-width: none;
    -ms-overflow-style: none;

}

.portfolio-filter-dropdown__menu::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;

}

.portfolio-filter-dropdown__menu::-webkit-scrollbar-thumb {

    background: rgba(255, 255, 255, 0.2);

    border-radius: 999px;

}

.portfolio-filter-dropdown__option {

    width: 100%;

    border: 0;

    border-radius: 14px;

    padding: 12px 14px;

    background: transparent;

    color: #fff;

    font-size: 15px;

    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;

}

.portfolio-filter-dropdown__option:hover,
.portfolio-filter-dropdown__option:focus-visible,
.portfolio-filter-dropdown__option.is-active {

    background: rgba(255, 108, 37, 0.18);

    color: #fff;

    outline: none;
    transform: translateY(-1px);

}

/* =========================
   MOBILE
========================= */

@media(max-width:768px) {

    .portfolio-filter-dropdown {

        width: 100%;

        padding: 14px;

        margin: 18px auto 28px;

    }

    .portfolio-filter-dropdown__control {
        width: 100%;
    }

    .landing-home #portfolio .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .portfolio-card--home {
        min-height: unset;
    }

    .portfolio-filter-dropdown__trigger,
    .portfolio-filter-dropdown__option {

        font-size: 14px;

    }

    .portfolio-filter-dropdown__menu {

        position: absolute;

        left: 0;

        right: 0;

        top: calc(100% + 10px);

        bottom: auto;

        width: 100%;

        margin: 0;

        max-height: min(60vh, 420px);

        overflow-y: auto;

        border-radius: 22px;

        padding: 12px;

        box-shadow: 0 18px 40px rgba(22, 34, 96, 0.42);

        z-index: 1000;

    }

}

/* =========================
   PORTFOLIO SECTION
========================= */

.portfolio-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;

    width: 100%;

    align-items: start;

    margin-top: 30px;

}

/* =========================
   CARD
========================= */

.portfolio-card--grid {

    position: relative;

    width: 100%;

    min-height: 420px;

    border-radius: 28px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    background: #0d1634;

    border:
        1px solid rgba(255, 255, 255, .12);

    box-shadow:
        0 20px 50px rgba(8, 18, 52, .18);

    transition:
        transform .35s ease,
        opacity .28s ease,
        box-shadow .35s ease;

}

.portfolio-card--grid.is-filtered-out {

    opacity: 0;

    transform: translateY(16px) scale(0.97);

    pointer-events: none;

}

/* =========================
   IMAGE
========================= */

.portfolio-card__image {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

}

/* =========================
   OVERLAY
========================= */

.portfolio-surface {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(to top,
            rgba(0, 0, 0, .88),
            rgba(0, 0, 0, .15));

}

/* =========================
   CONTENT
========================= */

.portfolio-content {

    position: relative;

    z-index: 2;

    padding: 28px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    height: 100%;

}

/* =========================
   TITLE
========================= */

.portfolio-headline {

    font-size: 40px;

    line-height: 1;

    color: #fff;

    margin-bottom: 12px;

    text-transform: uppercase;

}

/* =========================
   BUTTON
========================= */

.portfolio-card__button {

    align-self: flex-start;

    padding: 14px 22px;

    border-radius: 999px;

    color: #fff;

    text-decoration: none;

    border:
        1px solid rgba(255, 255, 255, .14);

}

/* =========================
   RESPONSIVE GRID
========================= */

@media(max-width:1200px) {

    .portfolio-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }

}

@media(max-width:992px) {

    .portfolio-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}

@media(max-width:768px) {

    .portfolio-grid {

        grid-template-columns:
            repeat(1, minmax(0, 1fr));

    }

}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
    gap: 24px;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-item i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.form-grid {
    display: grid;
    gap: 14px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.input,
.textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 16px;
    /* Prevents auto-zoom on mobile */
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.input::placeholder,
.textarea::placeholder {
    color: rgba(255, 255, 255, 0.64);
}

.input:focus,
.textarea:focus {
    border-color: rgba(255, 108, 37, 0.8);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 108, 37, 0.2);
}

.textarea {
    min-height: 160px;
    resize: vertical;
}

.form-status {
    min-height: 24px;
    font-size: 14px;
    color: #d8f6ff;
}

.tracking-quick-card {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
}

.tracking-quick-card h3 {
    margin-top: 12px;
}

.tracking-inline-form,
.tracking-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
}

.tracking-panel {
    display: grid;
    gap: 24px;
}

.tracking-form {
    width: 100%;
    max-width: 880px;
}

.tracking-notice,
.tracking-empty,
.tracking-result {
    max-width: none;
}

.tracking-notice {
    padding: 18px 20px;
}

.tracking-notice-error {
    background: rgba(255, 108, 37, 0.12);
    border-color: rgba(255, 108, 37, 0.3);
}

.tracking-result {
    padding: 28px;
}

.tracking-result-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.tracking-result h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
}

.tracking-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.tracking-status-approved {
    color: #7ef0b4;
    border-color: rgba(126, 240, 180, 0.45);
    background: rgba(79, 201, 136, 0.18);
}

.tracking-status-pending_approval {
    color: #ffcf8a;
    border-color: rgba(255, 171, 76, 0.45);
    background: rgba(255, 171, 76, 0.16);
}

.tracking-status-rejected {
    color: #ffb28d;
    border-color: rgba(255, 108, 37, 0.45);
    background: rgba(255, 108, 37, 0.16);
}

.tracking-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.tracking-meta div,
.tracking-step,
.tracking-empty {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tracking-meta dt {
    margin-bottom: 6px;
    color: #ff9d4d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tracking-meta dd {
    margin: 0;
    color: #fff;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tracking-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tracking-step {
    display: grid;
    gap: 6px;
    opacity: 0.72;
}

.tracking-step strong {
    color: #fff;
}

.tracking-step span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.tracking-step.is-done {
    opacity: 1;
    border-color: rgba(126, 240, 180, 0.35);
    background: rgba(79, 201, 136, 0.13);
}

.tracking-step.is-pending {
    opacity: 1;
    border-color: rgba(255, 171, 76, 0.35);
    background: rgba(255, 171, 76, 0.12);
}

.tracking-step.is-rejected {
    opacity: 1;
    border-color: rgba(255, 108, 37, 0.42);
    background: rgba(255, 108, 37, 0.14);
}

.tracking-help {
    margin: 20px 0 16px;
}

@media (max-width: 960px) {
    .tracking-quick-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

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

@media (max-width: 640px) {

    .tracking-inline-form,
    .tracking-form,
    .tracking-steps,
    .tracking-meta {
        grid-template-columns: 1fr;
    }

    .tracking-result {
        padding: 20px;
    }

    .tracking-result-head {
        flex-direction: column;
    }

    .tracking-inline-form .btn,
    .tracking-form .btn {
        width: 100%;
    }
}

.hireus-panel {
    padding: 34px 28px 30px;
}

.hireus-head {
    margin-bottom: 22px;
}

.hireus-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 22px;
    align-items: start;
}

.hireus-layout--single {
    grid-template-columns: 1fr;
}

.hireus-layout--dual {
    grid-template-columns: 1fr 420px;
    gap: 28px;
    position: relative;
}

.hireus-layout--dual>div:first-child {
    max-width: 600px;
}

.hireus-services-sidebar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px;
    color: #ffffff;
    height: auto;
    position: relative;
    width: 100%;
    max-width: 420px;
    z-index: 2;
    transform: none;
    right: auto;
    top: auto;
    contain: layout paint;
}

.track-card {
    margin-bottom: 24px;
}

.track-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.track-input {
    width: 100%;
}

.track-btn {
    white-space: nowrap;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.services-list li {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    position: relative;
    justify-content: center;
    flex-direction: row;
}

.services-list li span:not(.service-bullet) {
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    overflow: hidden;
    margin-left: 0;
}

.services-list li:hover span:not(.service-bullet) {
    max-width: 150px;
    opacity: 1;
    margin-left: 10px;
}

.service-bullet {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.services-list li:hover .service-bullet {
    background: rgba(255, 255, 255, 0.25);
}

.hireus-summary {
    padding: 28px;
    color: #ffffff;
}

.hireus-form-card {
    padding: 28px;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(175, 195, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.hireus-summary h3,
.hireus-form-card h3 {
    margin-top: 0;
    color: #ffffff;
}

.hireus-summary p,
.hireus-form-card p {
    color: #ffffff;
}

.hireus-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 14px;
}

.hireus-list li {
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.hireus-list strong {
    font-size: 14px;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.hireus-list span {
    color: rgba(255, 255, 255, 0.82);
}

.hireus-note {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.hireus-form {
    gap: 16px;
}

.form-label {
    display: block;
    margin: 0 0 8px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.form-label-muted {
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.client-type-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.client-type-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    -webkit-user-select: none;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.client-type-option.is-active,
.client-type-option:has(input:checked) {
    background: rgba(255, 108, 37, 0.18);
    border-color: rgba(255, 108, 37, 0.45);
    box-shadow: 0 8px 22px rgba(255, 108, 37, 0.12);
}

.client-type-option input {
    margin: 0;
    accent-color: var(--accent);
}

.form-panel {
    display: grid;
    gap: 14px;
}

.form-panel[hidden] {
    display: none !important;
}

.hireus-panel-title {
    margin: 4px 0 2px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.hireus-submit {
    align-self: flex-start;
    margin-top: 4px;
}

.hireus-notice {
    padding: 14px 18px;
    border-radius: 16px;
}

.hireus-notice.success {
    background: rgba(124, 243, 255, 0.12);
    border: 1px solid rgba(124, 243, 255, 0.26);
}

.hireus-notice.error {
    background: rgba(255, 108, 37, 0.12);
    border: 1px solid rgba(255, 108, 37, 0.3);
}

.footer-line,
.footer-bottom-line {
    height: 1px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.34);
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 54px 0 18px;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 28px;
    display: grid;
    grid-template-columns: minmax(330px, 0.88fr) minmax(0, 1.52fr);
    align-items: start;
    column-gap: 56px;
}

.footer-brand-block {
    max-width: 360px;
}

.footer-text {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    font-size: 15px;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 18px 0 18px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.footer-brand-link img {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.footer-mini-icons {
    margin-top: 16px;
    gap: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-links>div {
    min-width: 0;
    flex: 1;
}

.footer-links h4 {
    margin: 0 0 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ff6c25;
}

.footer-links a {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.35;
    overflow-wrap: anywhere;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links>div:nth-child(3) a {
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(2px);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.social-icons a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 16px rgba(10, 24, 70, 0.14);
}

.social-icons a.social-instagram i {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-icons a.social-linkedin i {
    color: #0077b5;
}

.social-icons a.social-facebook i {
    color: #1877f2;
}

.social-icons a.social-behance i {
    color: #1769ff;
}

/* Also add hover effects to the boxes to make them colorful on hover */
.social-icons a.social-instagram:hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}
.social-icons a.social-instagram:hover i {
    -webkit-text-fill-color: #fff;
}

.social-icons a.social-linkedin:hover {
    background: #0077b5 !important;
    border-color: #0077b5;
}
.social-icons a.social-linkedin:hover i {
    color: #fff;
}

.social-icons a.social-facebook:hover {
    background: #1877f2 !important;
    border-color: #1877f2;
}
.social-icons a.social-facebook:hover i {
    color: #fff;
}

.social-icons a.social-behance:hover {
    background: #1769ff !important;
    border-color: #1769ff;
}
.social-icons a.social-behance:hover i {
    color: #fff;
}

.footer-socials a {
    width: 44px;
    height: 44px;
}

.footer-copy {
    width: min(1180px, calc(100% - 32px));
    margin: 14px auto 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

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

.blog-card {
    min-height: 260px;
}

.blog-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.notice-card {
    max-width: 760px;
}

.admin-shell {
    min-height: calc(100vh - 84px);
    min-height: calc((var(--vh, 1vh) * 100) - 84px);
    display: grid;
    place-items: center;
    padding: 60px 0;
}

.admin-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.admin-card-grid-four {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1400px) {
    .admin-card-grid-four {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .admin-card-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-card-grid-four {
        grid-template-columns: 1fr;
    }
}

.admin-grid .notice-card {
    min-height: 180px;
}

.hover-rise {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.hover-rise:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px rgba(10, 20, 58, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.motion-lift,
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* On mobile: skip reveal animations — show content immediately.
   .is-mobile-viewport is set by an inline <script> in <head>
   BEFORE the stylesheet loads, so this rule takes effect on first paint. */
html.is-mobile-viewport .motion-lift,
html.is-mobile-viewport [data-reveal],
html.is-mobile-viewport [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

.hero-panel,
.hero-visual,
.hero-title,
.hero-lead {
    /* Ensure targets exist for GSAP even if empty */
    min-width: 1px;
}

.is-revealed {
    animation: riseIn 0.45s ease both;
    opacity: 1;
    transform: none;
}

/* Homepage style close to provided reference */

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {

    .hero-grid,
    .contact-grid,
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .hero-visual {
        min-height: 520px;
    }

    .section-wrap {
        padding: 86px 0;
    }

    .feature-grid,
    .stats-grid,
    .service-grid,
    .testimonial-grid,
    .blog-grid,
    .admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-card,
    .portfolio-card.featured {
        grid-column: span 6;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        row-gap: 22px;
    }

    .footer-links {
        flex-direction: column;
        gap: 18px;
    }

    .footer-links>div {
        flex: none;
        min-width: auto;
    }
}

@media (max-width: 960px) {
    .nav-shell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 16px;
        border-radius: 24px;
        position: relative;
    }

    .brand {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .profile-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        cursor: pointer;
    }

    .nav-link {
        width: 100%;
        padding: 12px 14px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-link::after {
        display: none;
    }

    .profile-dropdown {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
    }

    .about-shell {
        grid-template-columns: 1fr;
    }

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

    .about-brand {
        margin-bottom: 20px;
    }

    .about-copy,
    .about-card,
    .founders div {
        padding: 20px;
    }

    .team-grid,
    .showcase-testimonials .testimonial-grid.slim {
        grid-template-columns: 1fr 1fr;
    }

    .section-head {
        margin-bottom: 30px;
    }

    .section-panel {
        padding: 26px;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding-inline: 10px;
    }

    .nav-shell {
        width: min(1180px, calc(100% - 0px));
        padding: 12px 14px;
        border-radius: 26px;
    }

    .container {
        width: min(1180px, calc(100% - 32px));
    }

    .section-wrap {
        padding: 70px 0;
    }

    .section-wrap+.section-wrap {
        padding-top: 56px;
    }

    .hero-wrap {
        min-height: 0;
        padding-top: 28px;
    }

    .hero-panel,
    .hero-visual {
        min-height: 420px;
    }

    .hero-panel {
        border-radius: 30px;
    }

    .hero-title {
        max-width: 100%;
        font-size: clamp(44px, 17vw, 76px);
    }

    .field-grid,
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        align-content: flex-start;
        gap: 16px;
    }

    .site-footer {
        padding-top: 40px;
    }

    .footer-grid {
        padding-top: 22px;
        padding-bottom: 20px;
    }

    .footer-brand-block {
        max-width: 100%;
    }

    .footer-socials a {
        width: 40px;
        height: 40px;
    }

    .section-panel {
        padding: 22px;
        border-radius: 28px;
    }

    .portfolio-card,
    .portfolio-card.featured {
        width: 100%;
        min-height: 260px;
    }

    .floating-card.brand {
        right: 8%;
        width: 148px;
        min-height: 148px;
    }

    .team-grid,
    .showcase-testimonials .testimonial-grid.slim {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 420px) {
    .nav-shell {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .profile-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .profile-menu {
        order: 2;
    }

    .filter-row {
        gap: 10px
    }

    .chip {
        min-width: 84px;
        padding: 8px 12px;
        font-size: 11px
    }

}

/* Home landing structural refinements */
.landing {
    display: grid;
    gap: clamp(44px, 6vw, 88px);
}

.landing .panel {
    position: relative;
}

.section-header,
.portfolio-header {
    display: grid;
    justify-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

.section-header::after,
.portfolio-header::after {
    content: '';
    width: min(220px, 42vw);
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.landing .section-title {
    margin-bottom: 0;
}

.team-row {
    align-items: stretch;
}

.team-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.team-card>.stars {
    order: 1;
    margin-bottom: 0;
}

.team-card__meta {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card__meta .avatar {
    margin: 0;
}

.team-card__body {
    order: 3;
    display: grid;
    justify-items: center;
    gap: 7px;
}

.team-card__body h3,
.team-card__body p,
.team-card__body small {
    margin: 0;
}

.add-card {
    justify-content: center;
    align-items: center;
}

.portfolio-panel {
    display: grid;
    gap: 18px;
}

.portfolio-controls {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: 100%;
}

.portfolio-controls .filter-row {
    margin-bottom: 0;
}

.portfolio-controls .portfolio-active-status {
    margin: 0;
}

.work-grid {
    padding-block: 12px;
}

.work-copy {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.work-copy p {
    margin-top: 0;
}

.about-panel {
    isolation: isolate;
    position: relative;
    display: grid;
    justify-items: center;
    gap: 22px;
}

.about-panel::before {
    content: 'INK CORE';
    position: absolute;
    left: 50%;
    top: 50px;
    z-index: -1;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: clamp(72px, 15vw, 190px);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    white-space: nowrap;
}

.about-shell {
    gap: clamp(18px, 3vw, 34px);
    width: 100%;
    max-width: 1240px;
}

.about-copy {
    display: grid;
    gap: 22px;
}

.about-copy__intro,
.about-copy__text {
    display: grid;
    gap: 14px;
}

.about-copy__text p {
    margin: 0;
}

.about-copy h3 {
    margin-bottom: 0;
}

.about-highlights {
    counter-reset: aboutHighlight;
    margin-top: 4px;
}

.about-highlight {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 12px;
}

.about-highlight::before {
    counter-increment: aboutHighlight;
    content: counter(aboutHighlight, decimal-leading-zero);
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    padding-top: 4px;
}

.about-highlight__content {
    display: grid;
    gap: 6px;
}

.about-aside {
    gap: 18px;
}

.founders {
    align-items: stretch;
}

.founders .founder-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.founders .founder-card__avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.founders .founder-card__body {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

@media (max-width: 1100px) {
    .team-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-grid {
        gap: 34px;
    }
}

@media (max-width: 960px) {

    .section-header,
    .portfolio-header {
        margin-bottom: 24px;
    }

    .about-copy {
        padding: 22px;
    }

    .about-shell {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .review-viewport {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .landing {
        gap: 54px;
    }

    .hero,
    .panel {
        width: min(100% - 22px, 1240px);
    }

    .team-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .team-card {
        min-height: 188px;
        border-radius: 26px;
    }

    .filter-row {
        gap: 10px;
    }

    .portfolio-slider {
        grid-template-columns: 32px 1fr 32px;
        gap: 8px;
    }

    .portfolio-slide-nav {
        width: 32px;
        height: 32px;
    }

    .about-brand {
        font-size: clamp(44px, 14vw, 72px);
    }

    .founders .founder-card {
        padding: 18px;
    }
}

@media (max-width: 420px) {
    .portfolio-panel {
        gap: 10px;
    }

    .work-grid {
        padding: 28px 0 0;
    }

    .work-cluster {
        min-height: 340px;
    }

    .founders .founder-card {
        flex-direction: column;
    }
}

/* Page-specific color accents for auth pages (login/signup) */
.site-body[data-page="login.php"] {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 24%),
        radial-gradient(circle at 78% 24%, rgba(255, 108, 37, 0.16), transparent 22%),
        linear-gradient(145deg, #86a0ff 0%, #7995fb 34%, #6f8ff7 60%, #5974e7 100%) !important;
}

/* Apply same auth styling to forgot/reset password pages and center card */
.site-body[data-page="forgot_password.php"],
.site-body[data-page="reset_password.php"],
.site-body[data-page="verify_otp.php"] {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 24%),
        radial-gradient(circle at 78% 24%, rgba(255, 108, 37, 0.16), transparent 22%),
        linear-gradient(145deg, #86a0ff 0%, #7995fb 34%, #6f8ff7 60%, #5974e7 100%) !important;
}

.site-body[data-page="forgot_password.php"] .card,
.site-body[data-page="reset_password.php"] .card,
.site-body[data-page="verify_otp.php"] .card {
    /* Glass card tuned for auth pages to match site theme */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(10, 20, 58, 0.18);
}

/* Hide the main header on these auth pages to reduce visual clutter */
.site-body[data-page="forgot_password.php"] .site-header,
.site-body[data-page="reset_password.php"] .site-header {
    display: none !important;
}

/* Ensure auth-shell centers vertically with a pleasant top offset */
.site-body[data-page="forgot_password.php"] .auth-shell,
.site-body[data-page="reset_password.php"] .auth-shell {
    min-height: calc((var(--vh, 1vh) * 100) - 40px);
    min-height: calc(100svh - 40px);
    display: grid;
    place-items: center;
    padding: 28px 12px;
}

.site-body[data-page="forgot_password.php"] .auth-card-wide,
.site-body[data-page="reset_password.php"] .auth-card-wide,
.site-body[data-page="verify_otp.php"] .auth-card-wide {
    width: min(520px, 94%);
    padding: 36px;
    margin: 0 auto;
}

/* Make titles and copy readable on auth cards */
.site-body[data-page="forgot_password.php"] .card-title,
.site-body[data-page="reset_password.php"] .card-title,
.site-body[data-page="verify_otp.php"] .card-title {
    color: #fff;
}

.site-body[data-page="forgot_password.php"] .section-copy,
.site-body[data-page="reset_password.php"] .section-copy,
.site-body[data-page="verify_otp.php"] .section-copy {
    color: rgba(255, 255, 255, 0.92);
}

/* Responsive tweaks for auth pages */
@media (max-width: 900px) {

    .site-body[data-page="forgot_password.php"] .auth-card-wide,
    .site-body[data-page="reset_password.php"] .auth-card-wide,
    .site-body[data-page="verify_otp.php"] .auth-card-wide {
        width: min(640px, 92%);
        padding: 28px;
    }
}

@media (max-width: 640px) {

    .site-body[data-page="forgot_password.php"] .auth-card-wide,
    .site-body[data-page="reset_password.php"] .auth-card-wide,
    .site-body[data-page="verify_otp.php"] .auth-card-wide {
        width: 96%;
        padding: 18px;
        border-radius: 22px;
    }

    .site-body[data-page="forgot_password.php"] .card-title,
    .site-body[data-page="reset_password.php"] .card-title,
    .site-body[data-page="verify_otp.php"] .card-title {
        font-size: clamp(20px, 6vw, 28px);
        text-align: center;
    }

    .site-body[data-page="forgot_password.php"] .form-label,
    .site-body[data-page="reset_password.php"] .form-label,
    .site-body[data-page="verify_otp.php"] .form-label {
        font-size: 14px;
    }

    .site-body[data-page="forgot_password.php"] .input,
    .site-body[data-page="reset_password.php"] .input,
    .site-body[data-page="verify_otp.php"] .input {
        font-size: 16px;
        padding: 12px 14px;
    }

    .site-body[data-page="forgot_password.php"] .auth-submit,
    .site-body[data-page="reset_password.php"] .auth-submit,
    .site-body[data-page="verify_otp.php"] .auth-submit {
        width: 100%;
        min-width: 0;
        padding: 12px 16px;
    }

    .site-body[data-page="verify_otp.php"] #resend-info {
        display: block;
        text-align: center;
        margin-bottom: 8px;
    }

    .site-body[data-page="verify_otp.php"] #resend-btn {
        width: 100%;
    }

    .auth-header .back-home {
        position: absolute;
        left: 12px;
        top: 12px;
    }
}

/* Small polish: keep inputs and labels stacked and full-width */
.form-panel {
    display: grid;
    gap: 12px;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Resend row styling (responsive) */
.resend-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.resend-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    white-space: nowrap;
}

.resend-btn-wrap {
    display: flex;
}

.btn.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
}

@media (max-width: 640px) {
    .resend-row {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        justify-content: center;
    }

    .resend-info {
        white-space: normal;
        text-align: center;
        font-size: 13px;
    }

    .resend-btn-wrap {
        width: 100%;
    }

    .resend-btn-wrap .btn {
        width: 100%;
    }
}

/* Tweak back-home position inside the auth card */
.site-body[data-page="forgot_password.php"] .back-home,
.site-body[data-page="reset_password.php"] .back-home {
    position: relative;
    top: 0;
    left: 0;
}

.site-body[data-page="login.php"] .card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    border-radius: 28px !important;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(10, 20, 58, 0.2) !important;
    contain: layout paint;
}

.site-body[data-page="login.php"] .card-title,
.site-body[data-page="login.php"] .form-label,
.site-body[data-page="login.php"] .form-check-label,
.site-body[data-page="login.php"] .small {
    color: #fff !important;
}

.site-body[data-page="login.php"] .form-control {
    background: rgba(8, 24, 96, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}

.site-body[data-page="login.php"] .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.site-body[data-page="login.php"] .btn-primary {
    background: linear-gradient(90deg, #ff8a55, #ff6c25) !important;
    border-color: transparent !important;
    color: #fff !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    /* Add transition */
}

/* Admin auth page tweaks */
.admin-shell {
    min-height: calc(100vh - 120px);
    min-height: calc(100svh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.admin-shell .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card.auth-card-wide {
    width: min(640px, 92%);
    max-width: 720px;
    padding: 34px 36px;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(10, 20, 58, 0.14);
}

.auth-form .input.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.auth-form label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.auth-button-center {
    text-align: center;
    margin-top: 20px;
}

.auth-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.auth-submit-button {
    width: 140px;
    height: 48px;
    padding: 0 !important;
    border: none !important;
    border-radius: 8px !important;
    background: #ff6c25 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    box-shadow: 0 10px 22px rgba(255, 108, 37, 0.26);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.auth-submit-button:hover {
    background: #ff7a3d !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 108, 37, 0.35) !important;
}

.auth-submit-button:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(255, 108, 37, 0.22) !important;
}

.auth-submit {
    width: 140px;
    min-height: 46px;
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    background: #ff6c25;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    gap: 18px;
    box-shadow: 0 10px 22px rgba(255, 108, 37, 0.26);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    position: relative;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(255, 108, 37, 0.32);
    background: #ff7a3d;
    color: #fff;
}

.auth-submit:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(255, 108, 37, 0.22);
}

@media (max-width: 900px) {
    .card.auth-card-wide {
        width: min(520px, 92%);
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .card.auth-card-wide {
        width: 92%;
        padding: 18px;
    }

    .hero {
        padding: 20px 12px 18px
    }
}

.site-body[data-page="login.php"] .btn-primary:hover {
    transform: translateY(-2px);
    /* Lift effect */
    box-shadow: 0 8px 24px rgba(255, 108, 37, 0.25) !important;
    /* Stronger accent shadow */
    background: linear-gradient(90deg, #ff9966, #ff7a3d) !important;
    /* Subtle gradient shift */
}

.site-body[data-page="login.php"] .btn-outline-secondary {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.hero.hero-stars {
    width: 100%;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .hero.hero-stars {
        width: 100%;
        padding: 92px 18px 44px;
    }

    .hireus-layout {
        grid-template-columns: 1fr;
    }

    .hireus-layout--dual {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hireus-services-sidebar {
        position: static;
        width: 100%;
        padding: 20px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        contain: layout paint;
    }

    .services-list {
        gap: 10px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .services-list li {
        flex-direction: row;
        gap: 8px;
    }

    .services-list li span:first-child {
        max-width: 100%;
        opacity: 1;
    }

    .hireus-services-sidebar {
        position: static;
        padding: 20px;
    }

    .services-list {
        gap: 10px;
    }

    .hireus-panel {
        padding: 24px 18px 22px;
    }

    .hireus-summary,
    .hireus-form-card {
        padding: 22px;
    }

    .hero-stars .hero-copy h1 {
        font-size: clamp(38px, 13vw, 56px);
    }
}

@media (max-width: 480px) {
    .hero.hero-stars {
        min-height: calc(100svh - 76px) !important;
        padding: 16px 10px 22px !important;
    }

    .hero-stars .cta-row {
        width: 100%;
        justify-content: center;
    }

    .hero .cta-row {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .hero .cta-row .btn {
        width: min(100%, 150px) !important;
        min-width: 118px !important;
    }

    .hero-copy h1 {
        font-size: clamp(28px, 10vw, 52px) !important;
    }
}

/* Responsive Bootstrap polish */
img,
svg,
video,
canvas {
    max-width: 100%;
}

a,
button,
input,
textarea,
select,
.notice-card,
.contact-card,
.service-card,
.feature-card,
.portfolio-card,
.counter-card {
    min-width: 0;
}

.form-control,
.form-select,
.input,
.textarea {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    font-size: 16px;
}

.textarea,
textarea.form-control {
    min-height: 130px;
}

.section-panel,
.notice-card,
.contact-card,
.service-card,
.feature-card,
.portfolio-card,
.counter-card {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.row {
    --bs-gutter-x: clamp(1rem, 2.4vw, 1.5rem);
    --bs-gutter-y: clamp(1rem, 2.4vw, 1.5rem);
}

.admin-shell>.container,
.site-main>.container,
.section-wrap>.container {
    max-width: 1180px;
}

.admin-shell>.container {
    width: min(100% - 32px, 1700px);
}

.admin-shell .notice-card[style*="padding: 50px"],
.admin-shell .notice-card[style*="padding: 40px"] {
    padding: clamp(22px, 4vw, 40px) !important;
}

.admin-shell .notice-card[style*="max-width: 1700px"] {
    max-width: 100% !important;
}

.admin-shell .d-flex,
.chip-row,
.pill-row,
.stack,
.client-type-group {
    min-width: 0;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.pagination a.active {
    background: linear-gradient(135deg, #ff8a55, #ff6c25);
    border-color: transparent;
}

@media (max-width: 1180px) {

    .hero,
    .panel,
    .container,
    .footer-line,
    .footer-bottom-line,
    .footer-grid,
    .footer-copy {
        width: min(100% - 32px, 1180px);
    }

    .work-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .work-copy,
    .work-copy.right {
        text-align: center;
        justify-items: center;
    }

    .work-copy h2 {
        max-width: 16ch;
    }

    .portfolio-slider {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        margin: 250px auto 0;
    }
}

@media (max-width: 960px) {
    .site-header {
        padding: 10px 10px 0;
    }

    .nav-shell {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: min(100%, 1180px);
        padding: 10px;
        border-radius: 22px;
    }

    .brand {
        padding-inline: 4px;
    }

    .brand img {
        max-width: 200px;
        max-height: 40px;
        object-fit: contain;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        order: 2;
        gap: 6px;
    }

    .site-header .hireus-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 10px 18px;
        border-radius: 999px;
        background: linear-gradient(135deg, #ff8a55, #ff6c25);
        border: 1px solid rgba(255, 255, 255, 0.16);
        color: #fff;
        font-weight: 800;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        box-shadow: 0 10px 24px rgba(255, 108, 37, 0.28);
        transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, background 0.25s ease;
    }

    .site-header .hireus-cta:hover,
    .site-header .hireus-cta:focus-visible {
        background: linear-gradient(135deg, #ff9966, #ff7a3d);
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(255, 108, 37, 0.34);
        filter: saturate(1.05);
    }

    .profile-dropdown {
        right: 0;
        max-width: calc(100vw - 24px);
    }

    .section-wrap {
        padding: 72px 0;
    }

    .section-panel {
        padding: clamp(22px, 4vw, 30px);
        border-radius: 28px;
    }

    .contact-grid,
    .hireus-layout,
    .field-grid,
    .footer-grid,
    .about-shell {
        grid-template-columns: 1fr;
    }

    .footer-brand-block {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    body {
        background-attachment: scroll;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .hero,
    .panel,
    .container,
    .admin-shell>.container,
    .footer-line,
    .footer-bottom-line,
    .footer-grid,
    .footer-copy {
        width: min(100% - 20px, 1180px);
    }

    .section-title {
        font-size: clamp(30px, 12vw, 46px);
        line-height: 1.03;
        letter-spacing: 0;
    }

    .section-copy,
    .subtitle,
    .contact-card p,
    .notice-card p {
        font-size: 14px;
        line-height: 1.65;
    }

    .hero {
        min-height: initial;
        padding: 44px 0 14px;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 14vw, 58px);
        line-height: 1;
    }

    .hero-logo {
        width: min(210px, 72vw);
    }

    .cta-row,
    .hero-actions,
    .admin-shell form.d-flex,
    .admin-shell .d-flex[style*="flex-wrap"] {
        align-items: stretch;
    }

    .cta-row .btn,
    .hero-actions .btn {
        width: 100%;
    }

    .admin-shell form.d-flex .form-control {
        width: 100%;
    }

    .admin-shell form.d-flex .btn {
        width: auto;
        flex-shrink: 0;
    }

    .btn {
        min-height: 46px;
        padding: 12px 18px;
        white-space: nowrap;
    }

    .chip-row,
    .filter-row,
    .pill-row,
    .stack {
        justify-content: flex-start;
        gap: 8px;
    }

    .chip,
    .pill {
        min-width: 0;
        white-space: normal;
    }

    .work-cluster {
        min-height: 420px;
        width: 100%;
        overflow: hidden;
    }

    .work-badge {
        width: 104px;
        height: 104px;
        border-radius: 22px;
        font-size: 13px;
    }

    .work-badge.dark {
        font-size: 44px;
    }

    .portfolio-slider {
        width: min(100%, 360px);
        margin-top: 240px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-text {
        font-size: 14px;
    }

    .admin-shell {
        padding: 32px 0;
    }

    .admin-shell .notice-card,
    .admin-shell .box {
        border-radius: 20px !important;
    }

    .admin-shell .box {
        padding: 20px !important;
    }

    .admin-shell .section-title {
        justify-content: center !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   Animations & Skeleton UI
   ========================================================================== */

@keyframes slideDownPulse {
    0% {
        opacity: 0;
        transform: translateY(-16px) scale(0.98);
    }

    50% {
        opacity: 1;
        transform: translateY(4px) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-animated {
    animation: slideDownPulse 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.skeleton-loader {
    position: relative !important;
    overflow: hidden !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: transparent !important;
    pointer-events: none !important;
}

.skeleton-loader::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 20%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 80%, transparent 100%);
    animation: skeleton-shimmer 1.5s infinite linear;
    z-index: 10;
}

.skeleton-loader::placeholder {
    color: transparent !important;
}

.skeleton-loader>* {
    visibility: hidden !important;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 480px) {
    .nav-shell {
        display: flex;
    }

    .site-header .nav-actions>.hireus-cta {
        display: none !important;
    }

    #primary-navigation .hireus-cta {
        display: inline-flex !important;
        width: 100%;
        justify-content: center;
        min-height: 40px;
        padding: 10px 16px;
        border-radius: 999px;
        font-size: 13px;
        letter-spacing: 0.02em;
    }

    .profile-trigger,
    .navbar-toggler {
        width: 40px;
        height: 40px;
    }

    .section-panel,
    .stat-card,
    .feature-card,
    .service-card,
    .portfolio-card,
    .testimonial-card,
    .contact-card,
    .notice-card,
    .blog-card,
    .counter-card {
        padding: 18px;
        border-radius: 20px;
    }

    .section-wrap {
        padding: 58px 0;
    }

    .about-card strong {
        font-size: 23px;
    }

    .client-type-group {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-shell div[style*="grid-template-columns: 52px 1fr auto"],
    .admin-shell div[style*="grid-template-columns: 50px 1fr auto"] {
        grid-template-columns: auto 1fr !important;
    }

    .admin-shell div[style*="grid-template-columns: 52px 1fr auto"] span,
    .admin-shell div[style*="grid-template-columns: 50px 1fr auto"] span {
        justify-self: start;
    }
}

/* Admin dashboard and management pages */
.admin-shell {
    display: flex !important;
    min-height: calc((var(--vh, 1vh) * 100) - 84px);
    min-height: calc(100svh - 84px);
    padding: clamp(32px, 5vw, 64px) 0 72px !important;
    flex-direction: column;
    align-items: center;
}

.admin-shell>.container,
.admin-shell .container {
    display: flex !important;
    width: min(100% - 40px, 1700px) !important;
    max-width: 1700px !important;
    flex-direction: column;
    align-items: center;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}

.admin-shell>.container>.notice-card {
    width: 100% !important;
    max-width: none !important;
    margin-inline: auto !important;
}

.admin-shell .notice-card {
    max-width: none;
}

.admin-shell .section-copy {
    margin-inline: auto;
}

.admin-shell .row>* {
    min-width: 0;
}

.admin-shell .row-cols-xl-4>.col,
.admin-shell .row-cols-lg-3>.col,
.admin-shell .row-cols-md-2>.col {
    display: flex;
}

.admin-shell .row-cols-xl-4>.col>.notice-card,
.admin-shell .row-cols-lg-3>.col>.notice-card,
.admin-shell .row-cols-md-2>.col>.notice-card {
    width: 100%;
}

.admin-shell .btn {
    min-height: 40px;
}

.admin-shell .btn-sm {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 13px;
}

.admin-shell .form-control,
.admin-shell .form-select,
.admin-shell .input {
    min-height: 46px;
}

.admin-shell .border-bottom {
    overflow-y: auto;

    z-index: 64;
}

.admin-shell .border-bottom>a {
    flex: 0 0 auto;
}

/* WebKit scrollbar fallback for Chrome/Safari */
.admin-shell .border-bottom::-webkit-scrollbar {
    height: 8px;
}

.admin-shell .border-bottom::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
}

.admin-shell .border-bottom::-webkit-scrollbar-track {
    background: transparent;
}

.admin-shell .notice-card h3 {
    word-break: normal;
    overflow-wrap: anywhere;
}

.admin-shell details summary {
    list-style-position: inside;
}

.admin-shell form {
    min-width: 0;
}

.admin-shell form .btn {
    white-space: nowrap;
}

.admin-filter-bar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(220px, 320px) auto;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.admin-filter-bar .form-control,
.admin-filter-bar .form-select {
    width: 100%;
    height: 100%;
}

.admin-filter-bar .btn {
    width: auto;
    min-width: 104px;
    padding-inline: 22px;
}

.admin-shell article.notice-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.admin-shell article.notice-card:hover {
    border-color: rgba(255, 255, 255, 0.24) !important;
}

@media (min-width: 1400px) {
    .admin-shell .row-cols-xl-4>.col {
        width: 25%;
    }
}

@media (max-width: 1199.98px) {

    .admin-shell>.container,
    .admin-shell .container {
        width: min(100% - 32px, 1180px) !important;
    }

    .admin-shell .row-cols-xl-4>.col {
        width: 33.333333%;
    }
}

@media (max-width: 991.98px) {

    .admin-shell .row-cols-xl-4>.col,
    .admin-shell .row-cols-lg-3>.col {
        width: 50%;
    }

    .admin-shell .section-title {
        font-size: clamp(32px, 8vw, 48px);
        line-height: 1.05;
    }
}

@media (max-width: 767.98px) {
    .admin-shell {
        padding-top: 28px !important;
        padding-bottom: 52px !important;
    }

    .admin-shell>.container,
    .admin-shell .container {
        width: min(100% - 20px, 720px) !important;
    }

    .admin-shell>.container>.notice-card {
        padding: 20px !important;
        border-radius: 24px !important;
    }

    .admin-shell .row-cols-xl-4>.col,
    .admin-shell .row-cols-lg-3>.col,
    .admin-shell .row-cols-md-2>.col {
        width: 100%;
    }

    .admin-shell .d-flex.flex-wrap.gap-4 {
        gap: 12px !important;
    }

    .admin-shell form.d-flex {
        display: grid !important;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admin-shell form.d-flex .btn,
    .admin-shell form.d-flex .form-control {
        width: 100%;
    }

    .admin-shell form[method="post"] .btn {
        width: 100%;
    }

    .admin-filter-bar {
        grid-template-columns: 1fr;
    }

    .admin-filter-bar .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {

    .admin-shell>.container,
    .admin-shell .container {
        width: min(100% - 16px, 420px) !important;
    }

    .admin-shell>.container>.notice-card {
        padding: 16px !important;
        border-radius: 20px !important;
    }

    .admin-shell .section-title {
        font-size: clamp(28px, 10vw, 38px);
    }

    .admin-shell .btn,
    .admin-shell .btn-sm {
        width: 100%;
    }
}

/* Project-wide speed and mobile polish */
.site-body {
    text-rendering: optimizeLegibility;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.section-wrap,
.panel,
.hero,
.admin-shell>.container>.notice-card {
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

.landing-home>section,
.section-wrap,
.panel,
.hero {
    isolation: isolate;
}

.hero.hero-split {
    align-content: center;
    min-height: initial !important;
    padding-top: 28px !important;
    padding-bottom: 20px;
}

.hover-rise,
.team-card,
.portfolio-card,
.service-card,
.feature-card,
.counter-card,
.contact-card,
.notice-card {
    isolation: isolate;
    contain: layout paint;
}

.hover-rise:hover,
.team-card:hover,
.portfolio-card:hover,
.service-card:hover,
.feature-card:hover,
.counter-card:hover,
.contact-card:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {

    .section-wrap,
    .panel,
    .hero,
    .admin-shell>.container>.notice-card {
        content-visibility: visible;
        contain-intrinsic-size: auto;
    }

    .landing {
        gap: 38px;
    }

    .hero.hero-split {
        min-height: initial !important;
        padding: 24px 0 36px !important;
        align-items: start;
    }

    .hero.hero-split.hero-stars {
        min-height: auto !important;
        margin-top: 0 !important;
        padding-top: 20px !important;
        padding-bottom: 36px !important;
    }

    .hero-copy {
        width: 100%;
        /* max-width: 100%; */
        margin-left: 10px;
    }

    .hero-copy .eyebrow {
        margin-bottom: 8px;
    }

    .hero-copy h1 {
        max-width: 100%;
        margin-top: 10px;
    }

    .subtitle {
        max-width: 31ch;
        margin-top: 14px;
    }

    .cta-row {
        margin-top: 24px;
    }

    .hover-rise:hover,
    .team-card:hover,
    .portfolio-card:hover,
    .service-card:hover,
    .feature-card:hover,
    .counter-card:hover,
    .contact-card:hover {
        transform: none;
    }
}

@media (max-width: 420px) {
    .hero.hero-split {
        padding-top: 28px !important;
        padding-bottom: 34px !important;
    }

    .hero.hero-split.hero-stars {
        margin-top: -72px;
        padding-top: 100px !important;
    }

    .hero-copy h1 {
        font-size: clamp(36px, 11.5vw, 48px);
    }

    .hero-logo {
        width: min(240px, 80vw);
        max-width: 100%;
    }

    .section-divider,
    .portfolio-panel,
    .about-panel {
        padding-top: 34px;
    }
}

/* Final responsive overrides for centered layout */

.hero,
.panel {
    box-sizing: border-box;
}

.about-panel,
.testimonial-section {
    width: 100%;
    box-sizing: border-box;
}

.about-shell,
.review-section-head,
.review-viewport,
.review-more-wrap {
    width: min(100%, 1240px);
    margin-inline: auto;
    box-sizing: border-box;
}

@media (max-width: 960px) {
    .about-shell {
        grid-template-columns: 1fr;
    }

    .review-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-viewport {
        width: 100%;
    }
}

@media (max-width: 768px) {

    .hero,
    .panel {
        width: min(100% - 16px, 1280px);
        padding-left: 8px;
        padding-right: 8px;
    }

    .about-brand {
        font-size: clamp(42px, 12vw, 68px);
        line-height: 0.95;
        text-align: center;
    }

    .about-panel {
        gap: 18px;
        padding-top: 40px;
        padding-bottom: 56px;
    }

    .about-copy {
        padding: 20px;
    }

    .review-section-head {
        margin-bottom: 24px;
    }

    .review-grid {
        gap: 16px;
    }

    .testimonial-card {
        flex-basis: clamp(260px, 88vw, 380px);
        width: clamp(260px, 88vw, 380px);
        padding: 22px;
        gap: 14px;
    }
}

@media (max-width: 420px) {

    .hero,
    .panel {
        width: min(100% - 12px, 1280px);
        padding-left: 6px;
        padding-right: 6px;
    }

    .about-brand {
        font-size: clamp(36px, 11vw, 52px);
    }

    .about-copy h3,
    .review-section-head h2 {
        font-size: clamp(24px, 8.5vw, 34px);
    }

    .testimonial-card {
        flex-basis: min(92vw, 340px);
        width: min(92vw, 340px);
        padding: 18px;
    }

    .testimonial-top {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .testimonial-avatar {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .review-more-wrap {
        margin-top: 22px;
    }
}

/* Stable text structure: no zoom, no scattered wrapping */

.hero-copy h1,
.section-title,
.about-brand,
.portfolio-headline,
.work-copy h2,
.notice-card h3,
.contact-card h3,
.service-card h3,
.feature-card h3,
.team-card h3 {
    letter-spacing: 0 !important;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: none;
}

.portfolio-card,
.service-card,
.feature-card,
.counter-card,
.contact-card,
.team-card,
.notice-card,
.hover-rise {
    animation: none !important;
    will-change: auto !important;
}

.portfolio-card:hover,
.service-card:hover,
.feature-card:hover,
.counter-card:hover,
.contact-card:hover,
.team-card:hover,
.notice-card:hover,
.hover-rise:hover {
    transform: translateY(-4px) !important;
}

@media (max-width: 768px) {

    .services-page .section-head,
    .services-page .section-title,
    .services-page .section-copy,
    .services-page .eyebrow {
        text-align: left;
        justify-items: start;
    }

    .services-page .section-head {
        max-width: 100%;
    }

    .section-wrap {
        padding: 44px 0 !important;
    }

    .section-head {
        gap: 10px;
        margin-bottom: 24px;
    }

    .section-title {
        font-size: clamp(28px, 9.8vw, 42px) !important;
        line-height: 1.08 !important;
    }

    .section-copy,
    .notice-card p,
    .contact-card p,
    .service-card p,
    .feature-card p,
    .counter-label {
        font-size: 14px;
        line-height: 1.6;
    }

    .team-card,
    .portfolio-card,
    .service-card,
    .feature-card,
    .counter-card,
    .contact-card,
    .notice-card {
        text-align: left;
    }
}

@media (max-width: 420px) {

    .btn,
    .btn-sm {
        min-height: 44px;
    }
}

.social-icons a:hover {
    transform: translateY(-2px) !important;
}

/* --- Responsive / Mobile Zoom Fixes --- */

/* 1. Ensure table containers scroll horizontally instead of stretching the screen */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Final override: enforce template styles scoped to .team-section to avoid conflicts */
.team-section .section-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 70px !important;
    width: 100% !important;
}

.team-section .section-title h1 {
    font-size: 60px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin-bottom: 15px !important;
    letter-spacing: 1px !important;
}

.team-section .section-title .line {
    width: 90px !important;
    height: 6px !important;
    background: var(--surface-strong) !important;
    margin: auto !important;
    border-radius: 20px !important;
}

.team-section .team-card {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 120px 120px 40px 40px;
    padding: 30px 20px 35px;
    text-align: center;

    transition:
        transform 0.4s ease,
        background-color 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);

    position: relative;
    overflow: visible;
    contain: none;
}

.team-section .team-card:hover {
    transform: translateY(-10px) !important;
    background: var(--surface-strong) !important;
}

.team-section .team-image {
    width: 180px !important;
    height: 180px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin: 0 auto 12px !important;
    border: 4px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12) !important;
    transition: transform 0.45s ease, box-shadow 0.45s ease !important;
    contain: layout paint;
}

.team-section .team-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    transition: 0.5s !important;
    display: block !important;
}

.team-section .team-card:hover .team-image {
    transform: scale(1.08) !important;
}

.team-section .team-card:hover .team-image img {
    transform: scale(1.08) !important;
}

.team-section .team-card h3 {
    font-size: 22px !important;
    color: var(--text) !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
}

.team-section .team-card p {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.7 !important;
    margin-bottom: 25px !important;
}

.team-section .social-icons {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
}

.team-section .social-icons a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-dark);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;

    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Sirf un devices par hover chale jinke paas mouse hai */
@media (hover: hover) {
    .team-section .team-card:hover {
        transform: translateY(-10px) !important;
        background: var(--surface-strong) !important;
    }

    .team-section .team-card:hover .team-image {
        transform: scale(1.08) !important;
    }

    .team-section .team-card:hover .team-image img {
        transform: scale(1.08) !important;
    }

    /* Platform-specific colors on card hover */
    .team-section .team-card:hover .social-icons a.linkedin {
        background: #0077B5 !important;
        border-color: transparent !important;
        color: #fff !important;
        box-shadow: 0 6px 16px rgba(0, 119, 181, 0.4) !important;
    }

    .team-section .team-card:hover .social-icons a.behance {
        background: #1769FF !important;
        border-color: transparent !important;
        color: #fff !important;
        box-shadow: 0 6px 16px rgba(23, 105, 255, 0.4) !important;
    }

    .team-section .team-card:hover .social-icons a.instagram {
        background: #E1306C !important;
        border-color: transparent !important;
        color: #fff !important;
        box-shadow: 0 6px 16px rgba(225, 48, 108, 0.4) !important;
    }

    /* Direct hover on icons */
    .team-section .team-card:hover .social-icons a.linkedin:hover {
        background: #005885 !important;
        border: 5px solid rgba(255, 255, 255, 0.35) !important;
        color: #fff !important;
        transform: scale(1.12) !important;
        box-shadow: 0 6px 18px rgba(0, 119, 181, 0.5) !important;
    }

    .team-section .team-card:hover .social-icons a.behance:hover {
        background: #0d47a1 !important;
        border: 5px solid rgba(255, 255, 255, 0.35) !important;
        color: #fff !important;
        transform: scale(1.12) !important;
        box-shadow: 0 6px 18px rgba(23, 105, 255, 0.5) !important;
    }

    .team-section .team-card:hover .social-icons a.instagram:hover {
        background: #a41e4e !important;
        border: 5px solid rgba(255, 255, 255, 0.35) !important;
        color: #fff !important;
        transform: scale(1.12) !important;
        box-shadow: 0 6px 18px rgba(225, 48, 108, 0.5) !important;
    }
}

/* Mobile view (Touch devices) ke liye social icons hamesha rangeen raheinge */
@media (max-width: 768px) {
    .team-section .team-card .social-icons a.linkedin {
        background: rgb(0, 119, 181) !important;
        color: white !important;
        border-color: transparent !important;
    }

    .team-section .team-card .social-icons a.behance {
        background: rgb(23, 105, 255) !important;
        color: white !important;
        border-color: transparent !important;
    }

    .team-section .team-card .social-icons a.instagram {
        background: rgb(225, 48, 108) !important;
        color: white !important;
        border-color: transparent !important;
    }

    /* Card scale/lift ko mobile par band ya kam kar sakte hain taaki click issue na ho */
    .team-section .team-card {
        transform: none !important;
    }
}

@media(max-width:991px) {
    .team-section .team-card {
        margin-bottom: 30px !important;
    }

    .team-section .section-title h1 {
        font-size: 42px !important;
    }
}

@media(max-width:576px) {
    .team-section .section-title h1 {
        font-size: 32px !important;
    }

    .team-section .team-image {
        width: 150px !important;
        height: 150px !important;
        border-radius: 50% !important;
    }
}


/* 2. Prevent double-tap to zoom on interactive elements */
button,
a,
input,
select,
textarea,
.btn {
    touch-action: manipulation;
}

/* 3. Prevent iOS auto-zoom when tapping into input fields */
@media screen and (max-width: 768px) {

    input,
    select,
    textarea,
    .form-control,
    .form-select {
        font-size: 16px !important;
    }

    /* Force text wrapping on mobile to prevent overflow */
    p,
    h1 {
        word-wrap: break-word;
    }
}

h2,
h3,
h4,
h5,
h6,
span,
a,
div,
li,
td,
th {
    overflow-wrap: break-word;
    word-wrap: break-word;
}


/* Review section */
.testimonial-section {
    padding-top: 76px;
    padding-bottom: 76px;
    background: transparent;
    border-radius: 0;
    margin-top: 0;
    color: #ffffff;
    box-shadow: none;
    display: block;
}

.review-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 34px;
    width: min(100%, 1320px);
    margin-inline: auto;
}

.review-eyebrow {
    margin: 0 0 14px;
    color: #8b5cf6;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.review-section-head h2 {
    margin: 0;
    max-width: 520px;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
}

@media (max-width: 860px) {
    .review-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-section-head .btn {
        width: auto;
        max-width: 100%;
        min-width: 180px;
        padding-inline: 18px;
    }
}

.review-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    width: max-content;
    min-width: 100%;
    align-items: stretch;
    padding-block: 12px;
    /* Adds vertical padding so zooming doesn't get clipped by overflow */
}

.review-viewport {
    overflow: hidden;
    border-radius: 24px;
    width: min(100%, 1320px);
    margin-inline: auto;
    contain: layout paint;
}

.review-grid.is-carousel {
    animation: review-scroll 30s linear infinite;
}

.review-grid.is-expanded {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    width: max-content;
    animation: none;
    transform: none;
}

.review-grid.is-expanded .testimonial-card {
    box-sizing: border-box;
    max-width: none;
    flex: 0 0 clamp(320px, 45vw, 480px);
    scroll-snap-align: start;
}

.review-viewport.is-scrollable {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
}


/* Global Swiper initialized overrides for reviews */
.review-swiper-container.swiper-initialized .review-grid.swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    animation: none !important;
}

.review-swiper-container.swiper-initialized .testimonial-card.swiper-slide {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Reviews Swiper Navigation Arrows */
.review-swiper-prev,
.review-swiper-next {
    width: 48px !important;
    height: 48px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-top: -24px !important; /* Centering offset */
    z-index: 10 !important;
}

.dark-theme .review-swiper-prev,
.dark-theme .review-swiper-next {
    background: rgba(0, 0, 0, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.review-swiper-prev {
    left: 20px !important;
}

.review-swiper-next {
    right: 20px !important;
}

.review-swiper-prev::after,
.review-swiper-next::after {
    font-size: 16px !important;
    font-weight: 900 !important;
}

.review-swiper-prev:hover,
.review-swiper-next:hover {
    background: #ff6c25 !important;
    color: #ffffff !important;
    border-color: #ff6c25 !important;
    box-shadow: 0 0 15px rgba(255, 108, 37, 0.4) !important;
    transform: translateY(-50%) scale(1.08) !important;
}

.review-swiper-prev.swiper-button-disabled,
.review-swiper-next.swiper-button-disabled {
    opacity: 0.25 !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    .review-swiper-prev,
    .review-swiper-next {
        display: none !important;
    }
}

.review-more-wrap {
    display: none !important;
}

/* Reviews Swiper Pagination styles (Global) */
.review-swiper-pagination {
    display: block !important;
    text-align: center !important;
    margin-top: 20px !important;
    position: relative !important;
    width: 100% !important;
}

.review-swiper-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.25) !important;
    opacity: 1 !important;
    width: 8px !important;
    height: 8px !important;
    transition: all 0.3s ease !important;
    margin: 0 5px !important;
}

.review-swiper-pagination .swiper-pagination-bullet-active {
    background: #ffffff !important;
    width: 22px !important;
    border-radius: 4px !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6) !important;
}


.review-grid.is-paused {
    animation-play-state: paused;
}

.testimonial-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 30px 30px;
    border-radius: 22px;
    flex: 0 0 clamp(320px, 45vw, 480px);
    /* Reduced card width */
    width: clamp(320px, 45vw, 480px);
    /* Reduced card width */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(10, 24, 70, 0.14);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, z-index 0.28s ease;
    position: relative;
    /* Required for z-index overlap */
}

.testimonial-card:hover {
    transform: scale(1.03);
    /* Zooms slightly instead of moving up */
    z-index: 10;
    /* Keeps the hovered card on top of neighbors */
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 40px rgba(10, 24, 70, 0.2);
}

.testimonial-top {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
}

.testimonial-top>div {
    min-width: 0;
}

.testimonial-avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ff6c25;
    background: rgba(255, 108, 37, 0.12);
    font-size: 24px;
    border: 1px solid rgba(255, 108, 37, 0.25);
}

.testimonial-top h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.testimonial-top p {
    margin: 4px 0 0;
    color: #ff6c25;
    font-size: 14px;
    font-weight: 500;
}

.testimonial-quote {
    color: rgba(255, 255, 255, 0.15);
    font-size: 32px;
    justify-self: end;
}

.testimonial-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.65;
}

.testimonial-stars {
    margin-top: auto;
    color: #ffbf00;
    font-size: 15px;
}

.review-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
    width: min(100%, 1320px);
}

.review-back-btn {
    gap: 8px;
}

@keyframes review-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 12px));
    }
}

.review-alert,
.review-empty {
    margin-bottom: 24px;
    padding: 16px 18px;
    color: #fff;
}

.review-alert-success {
    background: rgba(124, 243, 255, 0.12);
    border-color: rgba(124, 243, 255, 0.28);
}

.review-alert-error {
    background: rgba(255, 108, 37, 0.12);
    border-color: rgba(255, 108, 37, 0.3);
}

.review-modal .modal-content {
    background:
        radial-gradient(circle at top right, rgba(255, 108, 37, 0.16), transparent 28%),
        radial-gradient(circle at top left, rgba(124, 243, 255, 0.1), transparent 24%),
        linear-gradient(145deg, #1e2a5e, #131b40);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.review-modal .modal-dialog {
    max-width: none;
    width: min(820px, calc(100vw - 32px));
    margin: 1.5rem auto;
}

.review-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px 24px 16px;
    align-items: flex-start;
    gap: 16px;
}

.review-modal .modal-body {
    padding: 22px 24px 26px;
    display: grid;
    gap: 20px;
}

.review-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 24px 22px;
    gap: 12px;
    flex-wrap: wrap;
}

.review-modal .modal-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
}

.review-modal .modal-header .btn-close {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 10px;
    opacity: 0.8;
}

.review-modal .modal-header .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.review-modal .form-label {
    color: rgba(255, 255, 255, 0.9);
}

.review-modal .input,
.review-modal .textarea {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.review-modal .input:focus,
.review-modal .textarea:focus {
    border-color: rgba(255, 191, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 191, 0, 0.14);
}

.star-rating-input {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.stars-container {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.review-star {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: #ffbf00;
    background: rgba(255, 255, 255, 0.05);
    border: 0;
    border-radius: 14px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.review-star.is-active {
    background: rgba(255, 191, 0, 0.18);
    color: #ffd95a;
    box-shadow: inset 0 0 0 1px rgba(255, 191, 0, 0.22);
}

.review-star:hover,
.review-star:focus-visible {
    background: rgba(255, 191, 0, 0.16);
    transform: translateY(-1px);
    outline: none;
}

.review-project-preview {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    display: grid;
    gap: 4px;
}

.review-project-preview strong {
    font-size: 15px;
}

.review-project-preview span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.74);
}

.review-project-preview.is-error {
    background: rgba(255, 108, 37, 0.12);
    border-color: rgba(255, 108, 37, 0.3);
}

@media (max-width: 768px) {
    .testimonial-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    /* Remove overflow clipping on mobile so cards are visible (except Swiper slider container) */
    .review-viewport:not(.review-swiper-container) {
        border-radius: 16px;
        overflow: visible !important;
        contain: none !important;
        width: 100% !important;
    }

    .review-viewport.review-swiper-container {
        border-radius: 16px;
        overflow: hidden !important;
        contain: layout paint !important;
        width: 100% !important;
    }

    /* Stack cards vertically on mobile ONLY if Swiper is not initialized */
    .review-grid:not(.swiper-wrapper),
    .review-grid.is-carousel:not(.swiper-wrapper),
    .review-grid.is-expanded:not(.swiper-wrapper) {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 16px !important;
        animation: none !important;
        transform: none !important;
    }
    /* Swiper wrapper active on mobile */
    .review-swiper-container.swiper-initialized .review-grid.swiper-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        animation: none !important;
    }

    /* Full width cards on mobile when not swiper-initialized */
    .review-grid:not(.swiper-wrapper) .testimonial-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-height: auto;
        padding: 20px;
    }

    /* Hide more button wrap on mobile slider */
    .review-more-wrap {
        display: none !important;
    }

    /* Reviews Swiper Pagination has been moved to global styles */

    .review-grid {
        gap: 16px;
    }

    .testimonial-top {
        grid-template-columns: 46px minmax(0, 1fr) 24px;
        gap: 12px;
    }

    .testimonial-avatar {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .testimonial-top h3 {
        font-size: 17px;
    }

    .testimonial-copy {
        font-size: 15px;
    }

    .review-modal .modal-header,
    .review-modal .modal-body,
    .review-modal .modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .review-modal .modal-title {
        font-size: 22px;
    }

    .stars-container {
        gap: 6px;
    }

    .review-star {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 520px) {
    .review-section-head {
        align-items: stretch;
        text-align: left;
    }

    .review-section-head .btn {
        width: 100%;
        min-width: 0;
        padding-inline: 14px;
        font-size: 14px;
    }

    .review-more-wrap .btn {
        width: 100%;
        min-width: 0;
        padding-inline: 14px;
        font-size: 14px;
    }

    .testimonial-top {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .review-grid.is-expanded {
        gap: 14px;
    }
}

/* Final device-stable responsive layer */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

.site-body {
    width: 100%;
    overflow-x: clip;
}

.landing-home {
    gap: clamp(42px, 7vw, 88px);
}

.landing-home .hero,
.landing-home .panel,
.team-section .container,
.footer-shell {
    width: min(100% - 32px, 1240px);
    margin-inline: auto;
}

.hero.hero-split.hero-stars {
    min-height: calc(100svh - 24px) !important;
    display: flex;
    align-items: center;
    padding: clamp(104px, 14vh, 148px) clamp(18px, 4vw, 56px) clamp(56px, 9vh, 92px) !important;
}

.hero-copy {
    margin-left: 0;
    max-width: min(640px, 100%);
}

.hero-logo {
    width: clamp(160px, 22vw, 260px);
}

.hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 0.96;
}

.portfolio-panel .row {
    --bs-gutter-x: clamp(1rem, 2.5vw, 1.5rem);
    --bs-gutter-y: clamp(1rem, 2.5vw, 1.5rem);
}

.portfolio-card--home {
    min-height: clamp(260px, 34vw, 340px);
}

.about-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: stretch;
}

.about-copy,
.about-aside,
.founders div,
.about-card {
    min-width: 0;
}

.review-viewport {
    max-width: 100%;
}

.testimonial-card {
    max-width: calc(100vw - 32px);
}

@media (max-width: 991.98px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1100;
        background: linear-gradient(180deg, rgba(124, 156, 255, 0.98), rgba(111, 143, 247, 0.98));
    }

    .site-header nav {
        background: linear-gradient(180deg, rgba(124, 156, 255, 0.98), rgba(111, 143, 247, 0.98));
    }

    .nav-shell .navbar-collapse {
        max-height: none !important;
    }

    body.nav-open .site-header {
        background: transparent !important;
        z-index: 1100 !important;
    }

    body.nav-open .site-header nav {
        background: transparent !important;
        box-shadow: none !important;
        min-height: var(--site-header-height, 84px) !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    body.nav-open .nav-shell {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-color: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    body.nav-open .nav-shell> :not(#primary-navigation):not(.navbar-backdrop) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.nav-open .nav-shell .nav-actions {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.nav-open .nav-shell .navbar-toggler {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.nav-open .nav-shell .brand {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.nav-open .nav-shell>.d-flex.align-items-center.ms-auto {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.nav-open .nav-shell .profile-menu,
    body.nav-open .nav-shell .profile-trigger,
    body.nav-open .nav-shell .profile-dropdown {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.nav-open .site-main,
    body.nav-open .site-footer,
    body.nav-open .footer-shell,
    body.nav-open .footer-copy {
        opacity: 0.18;
        filter: saturate(0.72) blur(0.35px);
        pointer-events: none;
    }


    /* ── Mobile Side Drawer ── */
    #primary-navigation {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border-top: 0 !important;
        transform: translateX(-100%);
        z-index: 1125 !important;
        visibility: hidden !important;
        opacity: 1 !important;
        pointer-events: none !important;
        display: none !important;
        flex-direction: column !important;
        box-shadow: 4px 0 32px rgba(0, 0, 0, 0.45) !important;
        background: linear-gradient(160deg, rgba(11, 18, 52, 0.99) 0%, rgba(29, 45, 110, 0.97) 52%, rgba(76, 96, 220, 0.95) 100%) !important;
        -webkit-backdrop-filter: blur(18px) !important;
        backdrop-filter: blur(18px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s ease !important;
    }

    #primary-navigation.show {
        display: flex !important;
        transform: translateX(0);
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Drawer header (close button row) */
    #primary-navigation .nav-drawer__head {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        padding: 16px 18px 12px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        flex-shrink: 0 !important;
    }

    /* Nav links list inside drawer */
    #primary-navigation .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        padding: 20px 16px 32px !important;
        margin: 0 !important;
        width: 100% !important;
        list-style: none !important;
    }

    /* Backdrop overlay */
    [data-navbar-backdrop] {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(2, 6, 23, 0.6) !important;
        z-index: 1124 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        -webkit-backdrop-filter: blur(2px) !important;
        backdrop-filter: blur(2px) !important;
        pointer-events: none !important;
        cursor: pointer;
        transition: opacity 0.28s ease, visibility 0.28s ease !important;
    }

    [data-navbar-backdrop].show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .nav-shell .navbar-nav {
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


@media (max-width: 768px) {
    .landing-home {
        gap: 32px;
    }

    .landing-home .hero,
    .landing-home .panel,
    .team-section .container,
    .footer-shell {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    /* Portfolio section specific override - needs edge-to-edge */
    .landing-home #portfolio.portfolio-panel {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero.hero-split.hero-stars {
        min-height: auto !important;
        padding-top: 20px !important;
        padding-bottom: 40px !important;
        align-items: flex-start;
    }

    .hero-copy {
        padding-top: 16px;
    }

    .hero-copy h1 {
        max-width: 11ch;
        font-size: clamp(34px, 12vw, 52px);
        line-height: 1;
    }

    .subtitle {
        font-size: 14px;
        line-height: 1.55;
    }

    .cta-row,
    .review-section-head {
        align-items: stretch;
    }

    .hero .cta-row .btn,
    .review-section-head .btn,
    .portfolio-panel__footer .btn {
        width: 100%;
    }

    /* Landing home portfolio: 2 columns on mobile, square cards */
    .landing-home #portfolio .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 10px;
    }

    .portfolio-card--home {
        min-height: unset;
    }

    .portfolio-panel {
        padding-top: 40px;
    }

    .portfolio-card--home {
        min-height: 260px;
    }

    .portfolio-card__content {
        padding: 18px;
    }

    .portfolio-headline,
    .portfolio-card__title {
        max-width: 100%;
        font-size: clamp(20px, 6vw, 28px);
        line-height: 1.1;
    }

    .portfolio-card__description {
        font-size: 13px;
    }

    .about-shell,
    .about-highlights,
    .founders {
        grid-template-columns: 1fr !important;
    }

    .about-panel::before {
        white-space: normal;
        font-size: clamp(56px, 18vw, 104px);
        top: 34px;
    }

    .about-copy,
    .about-card,
    .founders div {
        padding: 20px;
    }

    .team-section .section-title {
        margin-bottom: 36px !important;
    }

    .team-section .team-card {
        max-width: 420px;
        margin-inline: auto;
        border-radius: 72px 72px 28px 28px !important;
    }

    .review-grid,
    .review-grid.is-expanded {
        gap: 16px;
    }

    .testimonial-card,
    .review-grid.is-expanded .testimonial-card {
        flex: 0 0 min(88vw, 380px);
        width: min(88vw, 380px);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hover-rise,
    .team-card:hover,
    .portfolio-card:hover,
    .service-card:hover,
    .feature-card:hover,
    .counter-card:hover,
    .contact-card:hover,
    .notice-card:hover,
    .motion-lift,
    [data-reveal],
    .motion-word,
    .project-carousel__control:hover,
    .team-section .social-icons a:hover,
    .btn:hover,
    .auth-submit:hover:not(:disabled),
    .auth-submit-button:hover,
    .project-tab:hover,
    .project-chip:hover,
    .portfolio-filter-dropdown__trigger:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    [data-reveal],
    .motion-lift,
    .motion-word {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 420px) {

    .landing-home .hero,
    .landing-home .panel,
    .team-section .container,
    .footer-shell {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .landing-home #portfolio.portfolio-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-shell {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero.hero-split.hero-stars {
        padding-top: 92px !important;
        padding-bottom: 44px !important;
    }

    .hero-logo {
        width: min(170px, 74vw);
    }

    .portfolio-card--home {
        min-height: 280px;
    }

    .team-section .team-image {
        width: 132px !important;
        height: 132px !important;
        border-width: 9px !important;
    }

    .testimonial-card,
    .review-grid.is-expanded .testimonial-card {
        flex-basis: min(90vw, 340px);
        width: min(90vw, 340px);
    }
}

@media (hover: none) {

    .portfolio-card:hover,
    .service-card:hover,
    .feature-card:hover,
    .counter-card:hover,
    .contact-card:hover,
    .team-card:hover,
    .notice-card:hover,
    .hover-rise:hover,
    .testimonial-card:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
}

/* Admin project page mobile hardening */
.project-admin-page,
.project-admin-page * {
    box-sizing: border-box;
}

.project-admin-container,
.project-admin-panel,
.project-tab-panel,
.project-filter-row,
.project-search-form {
    max-width: 100%;
    min-width: 0;
}

.project-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.project-tab {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.82);
    border-bottom: 2px solid transparent;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.project-tab:hover,
.project-tab.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.project-filter-row,
.project-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.project-chip:hover,
.project-chip.is-active {
    border-color: rgba(255, 108, 37, 0.75);
    background: var(--accent);
    color: #fff;
}

.project-search-form {
    width: 100%;
    align-items: stretch;
}

.project-search-form .form-control {
    flex: 1 1 260px;
    min-width: 0;
}

.project-search-form .btn {
    flex: 0 0 auto;
    min-width: 108px;
}

@media (max-width: 767.98px) {
    .project-admin-container {
        width: min(100% - 16px, 1180px);
        padding-inline: 0;
    }

    .project-admin-panel {
        padding: 16px !important;
        overflow: hidden;
    }

    .project-page-header .section-title {
        font-size: clamp(34px, 11vw, 48px);
        line-height: 1.06;
    }

    .project-tabs {
        gap: 8px;
        overflow-x: visible;
        flex-wrap: wrap;
        border-bottom: 0;
    }

    .project-tab {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        min-height: 42px;
        justify-content: center;
        padding: 9px 10px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        font-size: 14px;
        text-align: center;
        white-space: normal;
    }

    .project-filter-row .project-chip,
    .project-search-form .form-control,
    .project-search-form .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .project-search-form .form-control {
        font-size: 16px;
        text-overflow: ellipsis;
    }
}

@media (max-width: 420px) {
    .project-admin-container {
        width: min(100% - 12px, 1180px);
    }

    .project-admin-panel {
        padding: 14px !important;
    }

    .project-page-header .section-title {
        font-size: clamp(30px, 10vw, 40px);
    }
}

.portfolio-grid-wrapper {
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
    padding-inline: clamp(8px, 4vw, 24px);
    /* Hide any scrollbar inside the portfolio grid wrapper */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.portfolio-grid-wrapper::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

.portfolio-grid {
    width: 100%;
    box-sizing: border-box;
}

.portfolio-grid>.col {
    padding: 0;
}

.portfolio-card--home,
.portfolio-card--grid {
    box-sizing: border-box;
    max-width: 100%;
}

/* Ensure carousel images and background sliders can't cause horizontal overflow */
.carousel-inner img,
.portfolio-card__image {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Defensive overrides for portfolio dropdown visibility and mobile taps */
.portfolio-filter-dropdown.is-open .portfolio-filter-dropdown__menu {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
}

.portfolio-filter-dropdown__trigger {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    pointer-events: auto;
}

/* Make sure dropdown sits above most layers on small screens */
.portfolio-filter-dropdown {
    z-index: 9999 !important;
}

.portfolio-filter-dropdown__menu {
    z-index: 10001 !important;
}

/* ===== HAMBURGER MENU FIX: prevent hero jump ===== */

.nav-shell {
    flex-wrap: nowrap !important;
}

@media (max-width: 991.98px) {
    #primary-navigation {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
        flex-basis: auto !important;
        order: unset !important;
        display: flex !important;
        flex-direction: column !important;
        transform: translateX(-100%);
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 1 !important;
    }

    #primary-navigation.show {
        transform: translateX(0);
        visibility: visible !important;
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    #primary-navigation {
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .site-header,
    .nav-shell {
        height: auto !important;
        min-height: unset !important;
    }

    .nav-shell {
        flex-wrap: nowrap !important;
        align-items: center !important;
        overflow: visible !important;
    }

    body.nav-open .site-main,
    body.nav-open .hero,
    body.nav-open .landing-home {
        transform: none !important;
        margin-top: 0 !important;
    }
}

/* ===== DYNAMIC DARK THEME STYLING ===== */
.dark-theme,
.dark-theme body {
    background-color: #050814 !important;
    background: #050814 !important;
    color: #ffffff !important;
}

.dark-theme .site-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
}

.dark-theme .site-body,
.dark-theme .site-body[data-page="login.php"],
.dark-theme .site-body[data-page="forgot_password.php"],
.dark-theme .site-body[data-page="reset_password.php"],
.dark-theme .site-body[data-page="verify_otp.php"] {
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.05), transparent 18%),
        radial-gradient(circle at 82% 18%, rgba(124, 243, 255, 0.05), transparent 17%),
        radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.03), transparent 26%),
        linear-gradient(145deg, #050814 0%, #080c1c 34%, #0b112c 60%, #0e1638 100%) !important;
}

.dark-theme .site-header .nav-shell {
    background: rgba(11, 17, 44, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
}

.dark-theme .navbar-nav {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

.dark-theme .site-header .nav-shell .profile-trigger {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.dark-theme .site-header .nav-shell .profile-trigger:hover,
.dark-theme .site-header .nav-shell .profile-trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.dark-theme .profile-dropdown {
    background: rgba(11, 17, 44, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.dark-theme .site-footer {
    background: linear-gradient(180deg, #050814 0%, #0b112c 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dark-theme .footer-line,
.dark-theme .footer-bottom-line {
    background: rgba(255, 255, 255, 0.08) !important;
}

.dark-theme .social-icons a {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.dark-theme .social-icons a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.dark-theme #primary-navigation {
    background: linear-gradient(160deg, rgba(5, 8, 20, 0.98), rgba(11, 17, 44, 0.96) 52%, rgba(15, 22, 56, 0.95)) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dark-theme .page-loader {
    background: #050814 !important;
}

.dark-theme .loader-ring {
    border-top-color: #ff6c25 !important;
}

.dark-theme .hero.hero-stars {
    background:
        radial-gradient(circle at 15% 20%, rgba(124, 243, 255, 0.08), transparent 32%),
        radial-gradient(circle at 82% 16%, rgba(255, 108, 37, 0.08), transparent 26%),
        linear-gradient(180deg, #050814 0%, #0b112c 52%, #0e1638 100%) !important;
}

.dark-theme .about-card {
    background: linear-gradient(135deg, #0a112c 0%, #152254 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
}

.dark-theme .service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.dark-theme .team-card,
.dark-theme .testimonial-card,
.dark-theme .portfolio-card,
.dark-theme .contact-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.dark-theme .section-panel {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Global transitions for smooth theme change */
body,
html,
.site-body,
.site-header,
.site-header .nav-shell,
.site-footer,
.section-panel,
.about-card,
.service-card,
.team-card,
.testimonial-card,
.portfolio-card,
.contact-card,
.navbar-nav,
#primary-navigation,
.nav-link,
.footer-line,
.footer-bottom-line,
.social-icons a,
.profile-trigger,
.profile-dropdown {
    transition: background 0.5s ease, background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease !important;
}

/* ===== HERO SPLIT - CSS-CONTROLLED LAYOUT ===== */
.hero-content-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-eyebrow {
    color: #7f9cff;
    font-size: 14px;
    letter-spacing: 0.15em;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-headline {
    font-family: 'Oswald', sans-serif;
    line-height: 1.15;
    font-size: clamp(36px, 5.5vw, 68px);
    letter-spacing: -0.02em;
}

.hero-accent {
    color: #ff6c25;
}

.hero-subtext {
    font-size: 16px;
    line-height: 1.65;
    max-width: 540px;
    color: rgba(255, 255, 255, 0.85) !important;
}

.hero-btn-primary {
    background-color: #093D80;
    border: 1px solid #093D80;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    background-color: #0a4d9e;
    border-color: #0a4d9e;
    transform: translateY(-2px);
}

.hero-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    background: transparent;
    transition: all 0.3s ease;
}

.hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-right-col {
    min-height: 480px;
}

.hero-location-badge {
    margin-right: 40px;
    margin-bottom: 20px;
    color: #ffffff;
    z-index: 10;
    display: flex;
}

.hero-location-badge i {
    color: rgba(255, 255, 255, 0.95);
}

.hero-location-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
}

.hero-location-city {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    display: block;
}

.hero-location-city:first-of-type {
    margin-top: 4px;
}

.hero-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
    margin-top: 48px;
    margin-bottom: 8px;
}

.hero-vision {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    letter-spacing: -0.02em;
}

.hero-vision-accent {
    color: #7f9cff;
}

.hero-view-all {
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    padding: 10px 24px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-view-all:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== LAMP - FULLY CSS CONTROLLED ===== */
.hero-lamp-container {
    top: 0;
    bottom: 0;
    right: 20%;
    width: 220px;
    z-index: 15 !important;
    pointer-events: none;
}

.lamp-swing-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    transform-origin: 110px 0;
    will-change: transform;
}

.lamp-interactive-trigger {
    position: absolute;
    top: 38%;
    left: 0;
    width: 220px;
    transform: translateY(-50%);
    transform-origin: center 80px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: center;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
}

.lamp-interactive-trigger:hover {
    transform: translateY(-50%) scale(1.06);
}

.lamp-interactive-trigger:active {
    transform: translateY(-50%) scale(0.92);
}

.lamp-wire {
    position: absolute;
    top: 26.67%;
    /* 80px / 300px aspect ratio center-top of the shade */
    left: 50%;
    width: 1.5px;
    height: 2000px;
    background: #ffffff;
    opacity: 0.9;
    pointer-events: none;
    transform: translate(-50%, -100%);
}

.lamp-svg {
    overflow: visible;
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    transition: filter 0.5s ease, transform 0.5s ease;
}

.lamp-radial-glow-circle {
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.dark-theme .lamp-radial-glow-circle {
    opacity: 1;
    fill: url(#lamp-radial-glow-dark) !important;
}

.dark-theme .lamp-svg {
    filter: drop-shadow(0 0 15px rgba(255, 170, 0, 0.6)) brightness(1.2) sepia(0.3);
}

/* ===== MOBILE RESPONSIVE - LAMP ===== */
@media (max-width: 991.98px) {

    /* --- Lamp: small but visible in top-right corner --- */
    .hero-lamp-container {
        right: 16px !important;
        width: 160px !important;
        top: 0 !important;
        bottom: auto !important;
        height: 240px !important;
    }

    .lamp-swing-wrapper {
        width: 160px !important;
        transform-origin: 80px 0 !important;
    }

    .lamp-interactive-trigger {
        top: 0 !important;
        width: 160px !important;
        transform: translateY(0) scale(0.75);
        transform-origin: center top !important;
    }

    .lamp-interactive-trigger:hover {
        transform: translateY(0) scale(0.78);
    }

    .lamp-interactive-trigger:active {
        transform: translateY(0) scale(0.70);
    }



    /* --- Hero content spacing --- */
    .hero-eyebrow {
        font-size: 12px;
    }

    .hero-headline {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero-subtext {
        font-size: 15px;
        max-width: 100%;
    }

    .hero-btn-primary,
    .hero-btn-ghost {
        padding: 10px 22px;
        font-size: 13px;
    }

    .hero-footer {
        margin-top: 32px;
        flex-wrap: wrap;
        gap: 14px;
    }

    .hero-vision {
        font-size: 22px;
    }

    .hero-view-all {
        font-size: 13px;
        padding: 8px 18px;
    }
}

@media (max-width: 575.98px) {

    .hero-lamp-container {
        right: 10px !important;
        width: 130px !important;
        height: 200px !important;
    }

    .lamp-swing-wrapper {
        width: 130px !important;
        transform-origin: 65px 0 !important;
    }

    .lamp-interactive-trigger {
        width: 130px !important;
        transform: translateY(0) scale(0.65);
    }

    .lamp-interactive-trigger:hover {
        transform: translateY(0) scale(0.68);
    }

    .lamp-interactive-trigger:active {
        transform: translateY(0) scale(0.60);
    }



    .hero-headline {
        font-size: clamp(28px, 9vw, 42px);
    }

    .hero-footer {
        margin-top: 24px;
    }

    .hero-vision {
        font-size: 20px;
    }

    .hero-logo {
        width: clamp(110px, 36vw, 160px) !important;
    }
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE FIX
   Prevents overflow, fixes portfolio section, ensures all
   sections below are visible and properly stacked.
   ============================================================ */

/* Global: prevent ALL horizontal overflow on mobile */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* Ensure landing container doesn't overflow */
    .landing,
    .landing-home,
    main {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Hero: auto height on mobile — no full-screen blank space */
    .hero.hero-split.hero-stars {
        min-height: unset !important;
        height: auto !important;
        padding-top: 80px !important;
        padding-bottom: 40px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Hero content full width */
    .hero-content-wrap .row {
        flex-direction: column;
    }

    /* Portfolio section: proper width and no overflow */
    .landing-home #portfolio,
    #portfolio.panel,
    #portfolio.portfolio-panel {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Portfolio grid: 2 columns, square cards on phones */
    .landing-home #portfolio .portfolio-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        gap: 10px !important;
    }

    .landing-home #portfolio .portfolio-grid>.col {
        aspect-ratio: 1 / 1 !important;
    }

    /* Portfolio filter: full width */
    .portfolio-filter-dropdown {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Services: 1 column on small screens */
    #services .row {
        --bs-gutter-x: 1rem;
    }

    /* Service cards: full width on very small screens */
    #services .col-12 {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    /* Service card pill row: wrap properly */
    .pill-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* About section: single column */
    .about-panel .row {
        flex-direction: column;
    }

    /* Portfolio cards full width */
    .portfolio-card--home,
    .portfolio-card--grid {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Ensure all panels are properly contained */
    .panel,
    section {
        box-sizing: border-box;
        max-width: 100vw;
    }

    /* Portfolio footer button: full width */
    .portfolio-panel__footer {
        padding: 0 12px;
    }

    .portfolio-panel__footer .btn {
        width: 100%;
        box-sizing: border-box;
    }

    /* Hero footer: wrap on small screens */
    .hero-footer {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Section titles: proper size */
    .section-title {
        font-size: clamp(26px, 7vw, 36px) !important;
    }

    /* Contact grid: single column */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Extra small phones (< 420px) */
@media (max-width: 420px) {

    .hero.hero-split.hero-stars {
        padding-top: 130px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .hero-headline {
        font-size: clamp(26px, 10vw, 36px) !important;
    }

    .hero-subtext {
        font-size: 14px !important;
    }

    .hero-btn-primary,
    .hero-btn-ghost {
        padding: 9px 18px !important;
        font-size: 13px !important;
    }

    /* Service card: reduce padding */
    .service-card {
        padding: 18px 16px !important;
    }

    /* Portfolio card title smaller */
    .portfolio-card__title,
    .portfolio-headline {
        font-size: 18px !important;
    }
}

@media (max-width: 991.98px) {

    /* CRITICAL: Make all reveal elements immediately visible on mobile */
    [data-reveal],
    .motion-lift,
    .hero-copy>*,
    .hero-logo,
    .services-motion-card,
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
        visibility: visible !important;
    }

    .is-revealed {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Hero: content-height, NOT full viewport */
    .hero.hero-stars,
    .hero.hero-split,
    .hero.hero-split.hero-stars {
        min-height: auto !important;
        height: auto !important;
        padding-top: 100px !important;
        padding-bottom: 36px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        overflow: visible !important;
    }

    /* Hero content wrapper */
    .hero-content-wrap {
        position: relative;
        z-index: 2;
        width: 100%;
    }

    .hero-content-wrap .row {
        flex-direction: column !important;
    }

    /* Prevent ALL horizontal overflow */
    html,
    body {
        overflow-x: hidden !important;
    }

    .landing,
    .landing-home,
    main,
    .panel,
    section {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Portfolio: full width, single column */
    .landing-home #portfolio,
    #portfolio.portfolio-panel {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        box-sizing: border-box !important;
    }

    .landing-home #portfolio .portfolio-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .landing-home #portfolio .portfolio-grid>.col {
        aspect-ratio: 1 / 1 !important;
    }

    .portfolio-card--home,
    .portfolio-card--grid {
        width: 100% !important;
        max-width: 100% !important;
        min-height: unset !important;
    }

    .portfolio-filter-dropdown {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero text sizing */
    .hero-headline,
    .hero-copy h1 {
        font-size: clamp(30px, 9vw, 48px) !important;
        max-width: 100% !important;
    }

    .hero-subtext,
    .subtitle {
        font-size: 14px !important;
        max-width: 100% !important;
    }

    .hero-footer {
        flex-wrap: wrap !important;
        gap: 12px !important;
        margin-top: 28px !important;
    }

    /* Services grid */
    .section-title {
        font-size: clamp(24px, 7vw, 36px) !important;
    }

    /* About section stacking */
    .about-shell,
    .about-highlights,
    .founders,
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    /* Landing gap */
    .landing-home {
        gap: 32px !important;
    }

    /* Section padding */
    .landing-home .hero,
    .landing-home .panel,
    .team-section .container,
    .footer-shell {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        box-sizing: border-box !important;
    }
}

/* Extra small phones */
@media (max-width: 480px) {

    .hero.hero-split.hero-stars {
        padding-top: 16px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .hero-headline,
    .hero-copy h1 {
        font-size: clamp(26px, 10vw, 38px) !important;
    }

    .hero-btn-primary,
    .hero-btn-ghost {
        padding: 9px 18px !important;
        font-size: 13px !important;
    }

    .service-card {
        padding: 16px 14px !important;
    }

    .portfolio-card__title,
    .portfolio-headline {
        font-size: 18px !important;
    }

    .landing-home .hero,
    .landing-home .panel,
    .team-section .container,
    .footer-shell {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .landing-home #portfolio,
    #portfolio.portfolio-panel {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* ==========================================================================
   TABLET RESPONSIVE DESIGN & LAMP REDESIGN OVERRIDES
   ========================================================================== */

/* 1. Unify Container Margins (Tablet) */
@media (min-width: 768px) and (max-width: 991.98px) {

    .landing-home .hero,
    .landing-home .panel,
    .team-section .container,
    .footer-shell,
    .landing-home #portfolio,
    #portfolio.portfolio-panel {
        padding-left: 32px !important;
        padding-right: 32px !important;
        box-sizing: border-box !important;
    }
}

/* 2. Hero Section Layout, Spacing & Locations Badge tablet/mobile responsiveness */
@media (max-width: 991.98px) {

    .hero.hero-stars,
    .hero.hero-split,
    .hero.hero-split.hero-stars {
        padding-top: 160px !important;
        /* Slightly shift text down to create breathing room at top */
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content-wrap .row {
        flex-direction: row !important;
        /* Keep columns side-by-side on tablet */
    }

    .hero-right-col {
        min-height: auto !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: 100% !important;
    }

    .hero-location-badge {
        margin-right: 20px !important;
        margin-bottom: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }
}

@media (max-width: 767.98px) {
    .hero-content-wrap .row {
        flex-direction: column !important;
        /* Stack columns vertically on mobile */
    }

    .hero-right-col {
        min-height: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: 24px !important;
        width: 100% !important;
    }

    .hero-location-badge {
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        margin-inline: auto !important;
        align-items: center !important;
        text-align: center !important;
    }
}

/* 3. Hero Lamp Container position - align with the right side below the profile icon */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-lamp-container {
        right: 80px !important;
        /* Position lamp on the right, below the profile icon on tablet */
        width: 180px !important;
        top: 0 !important;
        bottom: auto !important;
        height: 300px !important;
        /* Slightly taller lamp on tablet */
    }

    .lamp-swing-wrapper {
        width: 180px !important;
        transform-origin: 90px 0 !important;
    }

    .lamp-interactive-trigger {
        top: 0 !important;
        width: 180px !important;
        transform: translateY(0) scale(0.82);
        /* Slightly bigger */
        transform-origin: center top !important;
    }
}

@media (max-width: 767.98px) {
    .hero-lamp-container {
        right: 30px !important;
        /* Position lamp on the right, below the profile icon on mobile */
        width: 150px !important;
        top: 0 !important;
        bottom: auto !important;
        height: 260px !important;
        /* Slightly taller lamp on mobile */
    }

    .lamp-swing-wrapper {
        width: 150px !important;
        transform-origin: 75px 0 !important;
    }

    .lamp-interactive-trigger {
        top: 0 !important;
        width: 150px !important;
        transform: translateY(0) scale(0.72);
        /* Slightly bigger */
        transform-origin: center top !important;
    }
}

/* 4. Portfolio Grid: 2 columns on tablet/landscape mobile */
@media (min-width: 576px) and (max-width: 991.98px) {

    .landing-home #portfolio .portfolio-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* 5. About Section wrap & card stack width fixes */
@media (max-width: 767.98px) {
    .about-panel .row {
        flex-direction: column !important;
    }

    .about-panel .row>div {
        width: 100% !important;
        /* Take full width when stacked vertically */
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .about-panel .row {
        flex-direction: row !important;
        /* Maintain side-by-side cards layout on tablet */
    }
}

/* 6. Reviews Section button width constraint */
@media (min-width: 576px) and (max-width: 991.98px) {
    .review-section-head .btn {
        width: auto !important;
        align-self: flex-start !important;
    }
}

/* 7. Footer Grid columns: 4 on tablet, 2 on landscape mobile, 1 on portrait mobile */
@media (min-width: 768px) and (max-width: 1180px) {
    .footer-links {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .footer-links {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
}

/* =====================================================
   PORTFOLIO PAGE (portfolio.php) FIXES
   - Always show card details (no hover-only reveal)
   - Remove scrollbar from grid area
   - Square shaped cards in 4-column grid
   ===================================================== */

/* Ensure grid cards (portfolio.php) always show their content.
   Use :not(.portfolio-card--home) to avoid affecting index page cards
   which have BOTH portfolio-card--grid AND portfolio-card--home classes. */
.portfolio-card--grid:not(.portfolio-card--home) .portfolio-card__content,
.portfolio-card--grid:not(.portfolio-card--home) .portfolio-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Remove scrollbar from the portfolio section & grid wrapper on portfolio page */
.section-wrap--portfolio .portfolio-grid-wrapper,
.section-wrap--portfolio .portfolio-grid,
.section-wrap--portfolio {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow-y: visible !important;
}

.section-wrap--portfolio .portfolio-grid-wrapper::-webkit-scrollbar,
.section-wrap--portfolio .portfolio-grid::-webkit-scrollbar,
.section-wrap--portfolio::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* =====================================================
   PORTFOLIO PAGE — SQUARE CARDS (4 columns)
   ===================================================== */
.section-wrap--portfolio .portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: clamp(10px, 2vw, 20px) !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Each card wrapper is a square via aspect-ratio */
.section-wrap--portfolio .portfolio-grid .portfolio-card--grid {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    min-height: unset !important;
    height: auto !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 16px !important;
}

/* Image fills the square */
.section-wrap--portfolio .portfolio-grid .portfolio-card--grid .portfolio-card__image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Overlay fills the square */
.section-wrap--portfolio .portfolio-grid .portfolio-card--grid .portfolio-surface {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.25) 100%) !important;
    z-index: 1 !important;
}

/* Content sits at bottom of square */
.section-wrap--portfolio .portfolio-grid .portfolio-card--grid .portfolio-card__content {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 18px !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Tablet: 2 columns */
@media (max-width: 991.98px) {
    .section-wrap--portfolio .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile: 2 columns */
@media (max-width: 575.98px) {
    .section-wrap--portfolio .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .section-wrap--portfolio .portfolio-grid .portfolio-card--grid .portfolio-card__title {
        font-size: 14px !important;
    }

    .section-wrap--portfolio .portfolio-grid .portfolio-card--grid .portfolio-card__description {
        display: none !important;
    }

    .section-wrap--portfolio .portfolio-grid .portfolio-card--grid .portfolio-card__button {
        display: none !important;
    }
}

/* ==========================================================================
   MASTER RESPONSIVE OVERHAUL
   Covers: 344px (Z Fold), 375px, 480px, 576px, 768px, 992px, 1200px
   ========================================================================== */

/* ── GLOBAL RESET ── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
}

/* ── 1280px+ : large desktop ── */
@media (min-width: 1280px) {
    .container { max-width: 1240px; }
}

/* ── 992px–1199px : small desktop / large tablet landscape ── */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .landing-home #portfolio .portfolio-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .section-wrap--portfolio .portfolio-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ── 768px–991px : tablet ── */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Portfolio: 2-col square grid */
    .landing-home #portfolio .portfolio-grid,
    .section-wrap--portfolio .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
    .landing-home #portfolio .portfolio-grid > .col {
        aspect-ratio: 1 / 1 !important;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* About */
    .about-panel .row {
        flex-wrap: wrap !important;
    }
    .about-panel .col-lg-3 {
        width: 50% !important;
        flex: 0 0 50% !important;
    }

    /* Hero */
    .hero.hero-split.hero-stars {
        padding-top: 120px !important;
        padding-bottom: 48px !important;
    }
}

/* ── max-width: 767px : all phones + small tablets ── */
@media (max-width: 767.98px) {

    /* ---- HERO ---- */
    .hero.hero-split.hero-stars {
        min-height: unset !important;
        height: auto !important;
        padding-top: 90px !important;
        padding-bottom: 36px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .hero-content-wrap .row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .hero-headline {
        font-size: clamp(28px, 9vw, 44px) !important;
        line-height: 1.15 !important;
    }

    .hero-subtext {
        font-size: 14px !important;
        line-height: 1.6 !important;
        max-width: 100% !important;
    }

    .hero-ctas {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .hero-btn-primary,
    .hero-btn-ghost {
        padding: 10px 22px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
    }

    .hero-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-top: 24px !important;
    }

    .hero-view-all {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Keep lamp visible on mobile screens */
    .hero-lamp-container {
        display: block !important;
    }

    /* ---- PORTFOLIO SECTION (index) ---- */
    .landing-home #portfolio.portfolio-panel {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .landing-home #portfolio .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        max-width: 100% !important;
    }

    .landing-home #portfolio .portfolio-grid > .col {
        aspect-ratio: 1 / 1 !important;
    }

    .portfolio-card__title {
        font-size: 14px !important;
    }

    .portfolio-card__description {
        font-size: 12px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .portfolio-card__button {
        display: none !important;
    }

    .portfolio-card__content {
        padding: 12px !important;
    }

    .portfolio-panel__footer {
        padding: 0 12px !important;
    }

    .portfolio-panel__footer .btn {
        width: 100% !important;
    }

    /* Filter dropdown */
    .portfolio-filter-dropdown {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .portfolio-filter-dropdown__trigger {
        width: 100% !important;
        justify-content: space-between !important;
    }

    /* ---- SERVICES SECTION ---- */
    #services,
    .services-section {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .service-card {
        padding: 20px 16px !important;
    }

    /* ---- TEAM SECTION ---- */
    .team-section {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .team-card {
        padding: 16px 12px !important;
    }

    /* ---- ABOUT SECTION ---- */
    .about-panel {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .about-panel .row {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .about-panel .col-lg-6,
    .about-panel .col-lg-3,
    .about-panel .col-md-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .about-card {
        min-height: 240px !important;
    }

    /* ---- REVIEWS SECTION ---- */
    .review-section-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .review-section-head .btn {
        width: auto !important;
        font-size: 13px !important;
        padding: 9px 18px !important;
        border-radius: 10px !important;
    }

    .review-grid {
        grid-template-columns: 1fr !important;
    }

    /* ---- COUNTER / STATS SECTION ---- */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .counter-card {
        padding: 20px 14px !important;
    }

    /* ---- PORTFOLIO PAGE ---- */
    .section-wrap--portfolio {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .section-wrap--portfolio .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* ---- CONTACT PAGE ---- */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* ---- GENERAL PANELS ---- */
    .panel,
    .section-wrap {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .section-title {
        font-size: clamp(22px, 7vw, 32px) !important;
        line-height: 1.2 !important;
    }

    h2 { font-size: clamp(22px, 7vw, 32px) !important; }
    h3 { font-size: clamp(18px, 5vw, 26px) !important; }
}

/* ── max-width: 480px : small phones ── */
@media (max-width: 480px) {

    .hero.hero-split.hero-stars {
        padding-top: 80px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .hero-headline {
        font-size: clamp(24px, 8vw, 34px) !important;
    }

    /* 1-col services on very small */
    .services-grid {
        grid-template-columns: 1fr !important;
    }

    /* Team: 1 col on tiny screens */
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

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

/* ── max-width: 375px : iPhone SE / small budget phones ── */
@media (max-width: 375px) {

    .hero-headline {
        font-size: clamp(22px, 8vw, 30px) !important;
    }

    .hero-ctas {
        flex-direction: column !important;
    }

    .hero-btn-primary,
    .hero-btn-ghost {
        width: 100% !important;
        justify-content: center !important;
    }

    .landing-home #portfolio .portfolio-grid {
        gap: 6px !important;
    }

    .portfolio-card__title {
        font-size: 12px !important;
    }

    .section-wrap--portfolio .portfolio-grid {
        gap: 6px !important;
    }
}

/* ==========================================================================
   PORTFOLIO SWIPER SLIDER STYLES (Mobile/Tablet Only)
   ========================================================================== */

/* Hide Swiper navigation and pagination elements on desktop */
@media (min-width: 992px) {
    .portfolio-swiper-prev,
    .portfolio-swiper-next,
    .portfolio-swiper-pagination {
        display: none !important;
    }
}

/* Swiper rules active only on mobile/tablet */
@media (max-width: 991.98px) {
    .portfolio-swiper-container {
        overflow: hidden !important;
        position: relative !important;
        padding-bottom: 50px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 1280px !important;
    }

    /* Force Swiper flex row layout when initialized to completely override grid templates */
    .landing-home #portfolio .portfolio-swiper-container.swiper-initialized .portfolio-grid.swiper-wrapper,
    .section-wrap--portfolio .portfolio-swiper-container.swiper-initialized .portfolio-grid.swiper-wrapper,
    .portfolio-swiper-container.swiper-initialized .portfolio-grid.swiper-wrapper {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        width: 100% !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    /* Ensure each slide is exactly 100% of container width on mobile/tablet (1 slide per view) */
    .landing-home #portfolio .portfolio-swiper-container.swiper-initialized .swiper-slide,
    .section-wrap--portfolio .portfolio-swiper-container.swiper-initialized .swiper-slide,
    .portfolio-swiper-container.swiper-initialized .swiper-slide {
        display: block !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        flex-shrink: 0 !important;
        aspect-ratio: 1 / 1 !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        transition: opacity 0.4s ease, transform 0.4s ease !important;
    }

    /* Ensure images and content match the square card design inside swiper slides */
    .portfolio-swiper-container .swiper-slide .portfolio-card {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 1 / 1 !important;
        position: relative !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        margin: 0 !important;
    }

    /* Glassy modern slider navigation controls centered vertically */
    .portfolio-swiper-prev,
    .portfolio-swiper-next {
        display: flex !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin-top: -25px !important;
        width: 48px !important;
        height: 48px !important;
        background: rgba(0, 0, 0, 0.52) !important;
        backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-radius: 50% !important;
        color: #ffffff !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 10 !important;
    }

    .portfolio-swiper-prev {
        left: 12px !important;
    }

    .portfolio-swiper-next {
        right: 12px !important;
    }

    .portfolio-swiper-prev::after,
    .portfolio-swiper-next::after {
        font-size: 16px !important;
        font-weight: 900 !important;
    }

    .portfolio-swiper-prev:hover,
    .portfolio-swiper-next:hover {
        background: #ffffff !important;
        color: #000000 !important;
        border-color: #ffffff !important;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.4) !important;
        transform: scale(1.08) !important;
    }

    .portfolio-swiper-prev.swiper-button-disabled,
    .portfolio-swiper-next.swiper-button-disabled {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Bullet Pagination */
    .portfolio-swiper-pagination {
        display: block !important;
        bottom: 15px !important;
    }

    .portfolio-swiper-pagination .swiper-pagination-bullet {
        background: rgba(255, 255, 255, 0.25) !important;
        opacity: 1 !important;
        width: 8px !important;
        height: 8px !important;
        transition: all 0.3s ease !important;
        margin: 0 5px !important;
    }

    .portfolio-swiper-pagination .swiper-pagination-bullet-active {
        background: #ffffff !important;
        width: 22px !important;
        border-radius: 4px !important;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.6) !important;
    }

    /* Hide Swiper scrollbars in all cases */
    .portfolio-swiper-container ::-webkit-scrollbar {
        display: none !important;
    }

    /* When a card is filtered out, we reduce its width to 0 and hide it */
    .portfolio-swiper-container .swiper-slide.is-filtered-out {
        width: 0 !important;
        opacity: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none !important;
        transform: scale(0.8) !important;
        display: none !important; /* Fully hide to remove space in swiper grid */
    }
}

/* Service Icon Hover Micro-animation */
.service-card-link:hover .service-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 0 25px currentColor !important;
}
