/* ==========================================================================
   CSS VARIABLES & THEME
   ========================================================================== */
:root {
    --bg: #07071a;
    --surface: rgba(255, 255, 255, .035);
    --surface-solid: #0f0f28;
    --border: rgba(255, 255, 255, .08);
    --text: #f0f2ff;
    --muted: #7c87a0;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --cyan: #22d3ee;
    --pink: #ec4899;
    --green: #22c55e;
    --grad-1: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    --grad-2: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--pink) 100%);
    --font: 'Outfit', sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --fast: .2s var(--ease);
    --mid: .4s var(--ease);
    --r: 14px;
    --r-lg: 22px;
    --r-xl: 32px;
}

html[data-theme="light"] {
    --bg: #f4f6ff;
    --surface: #ffffff;
    --surface-solid: #eef0fa;
    --border: rgba(20, 20, 60, .08);
    --text: #0d1117;
    --muted: #4a5568;
    --blue: #2563eb;
    --purple: #7c3aed;
    --cyan: #0891b2;
    --pink: #db2777;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 100px 0;
}

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

.mt-6 {
    margin-top: 3rem;
}

/* Inline Upwork SVG icon used inside buttons */
.upwork-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: inline-block;
    vertical-align: -0.1em;
    flex-shrink: 0;
}


/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.gradient-text {
    background: var(--grad-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto;
}

/* Fancy section title — large gradient headline with underline */
.section-title-fancy {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 14px;
    line-height: 1.15;
}

.section-title-fancy+.section-desc {
    margin-top: 0;
}

/* Gradient underline below fancy title */
.section-header .section-title-fancy::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--grad-1);
    border-radius: 3px;
    margin: 14px auto 0;
}

.eyebrow-chip {
    display: inline-block;
    background: linear-gradient(135deg, rgba(59, 130, 246, .12), rgba(139, 92, 246, .12));
    border: 1px solid rgba(139, 92, 246, .25);
    color: var(--purple);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.eyebrow-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple);
    display: block;
    margin-bottom: 14px;
}

.section-title-left {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    line-height: 1.15;
}

/* ==========================================================================
   BG SHAPES
   ========================================================================== */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: drift 28s infinite alternate ease-in-out;
}

.bg-shape-1 {
    top: -15%;
    right: -8%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(124, 58, 237, .15) 0%, transparent 65%);
}

.bg-shape-2 {
    bottom: -15%;
    left: -8%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(6, 182, 212, .1) 0%, transparent 65%);
    animation-delay: -14s;
}

html[data-theme="light"] .bg-shape-1 {
    background: radial-gradient(circle, rgba(124, 58, 237, .05) 0%, transparent 65%);
}

html[data-theme="light"] .bg-shape-2 {
    background: radial-gradient(circle, rgba(6, 182, 212, .03) 0%, transparent 65%);
}

@keyframes drift {
    0% {
        transform: translate(0, 0)scale(1);
    }

    100% {
        transform: translate(-32px, 32px)scale(1.07);
    }
}

/* ==========================================================================
   GLASS CARD
   ========================================================================== */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px;
    transition: var(--mid);
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, .35);
    box-shadow: 0 16px 48px -10px rgba(139, 92, 246, .2);
    transform: translateY(-4px);
}

html[data-theme="light"] .glass-card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, .05);
}

html[data-theme="light"] .glass-card:hover {
    box-shadow: 0 16px 48px -10px rgba(124, 58, 237, .1);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    transition: var(--mid);
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-1);
    color: #fff;
    box-shadow: 0 4px 18px rgba(139, 92, 246, .35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(139, 92, 246, .5);
    color: #fff;
}

.btn-glow {
    box-shadow: 0 0 22px rgba(139, 92, 246, .4), 0 4px 14px rgba(59, 130, 246, .3);
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(139, 92, 246, .65), 0 8px 24px rgba(59, 130, 246, .4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: var(--purple);
    background: rgba(139, 92, 246, .08);
    color: var(--text);
}

.btn-glass {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    border: 1.5px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .2);
    color: var(--text);
}

html[data-theme="light"] .btn-glass {
    background: rgba(0, 0, 0, .04);
    border-color: var(--border);
}

.btn-xl {
    padding: 17px 42px;
    font-size: 1.05rem;
}

/* ==========================================================================
   GLOBAL SCROLLBAR
   ========================================================================== */
/* ==========================================================================
   GLOBAL SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--grad-1);
}

/* ==========================================================================
   LOGO (inline SVG)
   ========================================================================== */
.nav-logo,
.footer-logo {
    fill: url(#logo-theme-grad);
    animation: fillFade 2.5s ease forwards;
    animation-delay: 0.2s;
    fill-opacity: 0;
}

.nav-logo path,
.footer-logo path {
    stroke: url(#logo-theme-grad);
    stroke-width: 1px;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: tracePath 2s ease-in-out forwards;
    animation-delay: 0.2s;
}

@keyframes tracePath {
    0% {
        stroke-dashoffset: 1;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fillFade {

    0%,
    70% {
        fill-opacity: 0;
    }

    100% {
        fill-opacity: 1;
    }
}

.nav-logo {
    height: 44px;
    width: auto;
    flex-shrink: 0;
}

.footer-logo {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 7, 26, .72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    transition: var(--mid);
}

html[data-theme="light"] .glass-nav {
    background: rgba(244, 246, 255, .9);
    box-shadow: 0 2px 18px rgba(0, 0, 0, .04);
}

.glass-nav.scrolled {
    padding: 10px 0;
    background: rgba(4, 4, 14, .9);
}

html[data-theme="light"] .glass-nav.scrolled {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 2px 24px rgba(0, 0, 0, .07);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    font-size: .92rem;
    font-weight: 500;
    color: var(--muted);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-1);
    transition: var(--mid);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    background: rgba(139, 92, 246, .1);
    border: 1px solid rgba(139, 92, 246, .2);
    color: var(--muted);
    font-size: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--fast);
}

.theme-toggle:hover {
    background: rgba(139, 92, 246, .22);
    color: var(--purple);
    transform: rotate(22deg);
}

.nav-cta {
    padding: 10px 22px;
    font-size: .88rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--fast);
}

/* Scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   HERO — SHORTER (not full vh)
   ========================================================================== */
.hero-section {
    padding: 120px 0 0;
    position: relative;
    overflow: hidden;
    min-height: 0;
    /* never full viewport */
}

.hero-ambient-1 {
    position: absolute;
    top: -10%;
    right: 0;
    width: 52vw;
    height: 52vw;
    background: radial-gradient(circle, rgba(124, 58, 237, .22) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    animation: drift 22s infinite alternate ease-in-out;
}

html[data-theme="light"] .hero-ambient-1 {
    background: radial-gradient(circle, rgba(124, 58, 237, .06) 0%, transparent 60%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.hero-text {
    padding-bottom: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 50px;
    background: rgba(59, 130, 246, .1);
    border: 1px solid rgba(59, 130, 246, .25);
    color: var(--blue);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

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

    50% {
        opacity: .7;
        transform: scale(1.3);
    }
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.0rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: .98rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

/* Hero stats with icons */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 1.1rem;
    color: var(--purple);
    flex-shrink: 0;
}

.hero-stat div {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: .7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

/* Portrait — bottom anchored */
.hero-visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-portrait-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.portrait-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 55%;
    background: var(--grad-1);
    border-radius: 50%;
    filter: blur(65px);
    opacity: .28;
    z-index: 0;
    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: .2;
        transform: translateX(-50%)scale(1);
    }

    50% {
        opacity: .4;
        transform: translateX(-50%)scale(1.1);
    }
}

.hero-portrait {
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
    object-position: center bottom;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 -20px 50px rgba(139, 92, 246, .3));
    animation: float 5s ease-in-out infinite;
    margin-bottom: -10px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ==========================================================================
   ABOUT — Simple & Effective
   ========================================================================== */
.about-section {
    background: transparent;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-left .about-bio {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 28px;
}

.about-left .section-title-left {
    margin-bottom: 16px;
}

.about-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Inline stats with separators */
.inline-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.inline-stat {
    display: flex;
    flex-direction: column;
}

.inline-stat strong {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.1;
}

.inline-stat span {
    font-size: .68rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 500;
}

.stat-pipe {
    color: var(--border);
    font-size: 1.5rem;
    font-weight: 200;
    line-height: 1;
}

/* About stats row (old card style) — keep hidden */
.about-stats {
    display: none;
}

/* About stats row */
.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.about-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    min-width: 0;
}

.about-stat i {
    font-size: 1rem;
    color: var(--purple);
    flex-shrink: 0;
}

html[data-theme="light"] .about-stat i {
    color: var(--blue);
}

.about-stat div {
    display: flex;
    flex-direction: column;
}

.about-stat strong {
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.1;
}

.about-stat span {
    font-size: .7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 500;
}

/* Right: Skills & Approach */
.about-skills-wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-sub-heading {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 14px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 12px;
    transition: var(--fast);
}

.skill-tags span:hover {
    border-color: rgba(139, 92, 246, .45);
    color: var(--purple);
}

html[data-theme="light"] .skill-tags span:hover {
    color: var(--blue);
    border-color: rgba(124, 58, 237, .4);
}

.approach-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.approach-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    color: var(--muted);
}

.ap-num {
    font-size: .75rem;
    font-weight: 800;
    color: var(--purple);
    background: rgba(139, 92, 246, .1);
    border-radius: 6px;
    padding: 3px 8px;
    flex-shrink: 0;
}

html[data-theme="light"] .ap-num {
    color: var(--blue);
    background: rgba(59, 130, 246, .1);
}

/* Right: Expertise cards */
.about-expertise {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.expertise-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: var(--mid);
}

.expertise-card:hover {
    border-color: rgba(139, 92, 246, .35);
    transform: translateX(6px);
}

.exp-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(139, 92, 246, .1);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--mid);
}

.expertise-card:hover .exp-icon {
    background: var(--grad-1);
    color: #fff;
}

.expertise-card h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.expertise-card p {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-1);
    opacity: 0;
    transition: var(--mid);
}

.service-card:hover::before {
    opacity: 1;
}

.service-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--border);
    position: absolute;
    top: 16px;
    right: 20px;
    letter-spacing: -1px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: var(--mid);
}

.service-card:hover .service-number {
    color: rgba(139, 92, 246, .12);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: rgba(59, 130, 246, .1);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
    transition: var(--mid);
}

.service-card:hover .service-icon {
    background: var(--grad-1);
    color: #fff;
    transform: rotate(8deg)scale(1.05);
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card>p {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-items {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.service-items span {
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-items span::before {
    content: '→';
    color: var(--purple);
    font-weight: 700;
    font-size: .8rem;
}

html[data-theme="light"] .service-items span::before {
    color: var(--blue);
}

/* ==========================================================================
   PORTFOLIO TABS
   ========================================================================== */

/* portfolio-tabs and ptab-btn layout defined in PORTFOLIO MAIN TABS section below */

/* Sub-tabs — horizontally scrollable, single row */
.portfolio-subtabs-wrap {
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.portfolio-subtabs {
    display: none;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 8px 0 10px;
}

.portfolio-subtabs::-webkit-scrollbar {
    height: 10px; /* Slightly thicker for the detail */
}

.portfolio-subtabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06); /* More visible semi-transparent track */
    border-radius: 10px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6); /* Deeper inner shadow for depth */
    margin: 0 10px;
}

.portfolio-subtabs::-webkit-scrollbar-thumb {
    background: var(--grad-1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 2px 8px rgba(139, 92, 246, 0.3);
}

.portfolio-subtabs::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--blue) 0%, var(--pink) 100%);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        0 4px 12px rgba(139, 92, 246, 0.4);
}

.portfolio-subtabs.active {
    display: block;
}

.psubtab-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 500;
    transition: var(--fast);
    margin-right: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.psubtab-btn:hover {
    color: var(--text);
    border-color: rgba(139, 92, 246, .4);
}

.psubtab-btn.active {
    background: var(--surface);
    color: var(--text);
    border-color: rgba(139, 92, 246, .5);
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

html[data-theme="light"] .psubtab-btn.active {
    background: #fff;
}

/* ==========================================================================
   PORTFOLIO MARQUEE (full-width, square items)
   ========================================================================== */
.portfolio-marquee-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 0;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.portfolio-section-end {
    padding-bottom: 16px;
}

.portfolio-row {
    display: flex;
    gap: 6px;
    width: max-content;
    /* Both rows same speed but row-2 goes reverse */
}

.portfolio-row-1 {
    animation: marqueeLeft 70s linear infinite;
}

.portfolio-row-2 {
    animation: marqueeRight 65s linear infinite;
}

@keyframes marqueeLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes marqueeRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.portfolio-row:hover {
    animation-play-state: paused;
}

/* Empty state (centered in container) */
.portfolio-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    grid-column: 1/-1;
}

.portfolio-empty a {
    color: var(--purple);
}

.p-item {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    overflow: visible;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    position: relative;
}

/* Inner wrapper clips only the image, not the magnify overlay */
.p-item-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Loading Shimmer Animation */
.p-img-loading {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite var(--ease);
}

html[data-theme="light"] .p-img-loading {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.03) 25%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.03) 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.p-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    z-index: 2;
}

.p-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: top;
    transition: transform .5s var(--ease);
}

.p-item:hover .p-item-inner img {
    transform: scale(1.08);
}

/* Magnify button — shown on hover over portfolio item */
.p-magnify {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    background: rgba(12, 12, 38, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 3;
    pointer-events: none;
}

.p-item:hover .p-magnify {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.p-magnify:hover {
    background: rgba(139, 92, 246, 0.8);
    border-color: rgba(139, 92, 246, 0.5);
}


/* ==========================================================================
   TESTIMONIALS GRID (2-col, unique cards)
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.t-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.t-card:hover {
    border-color: rgba(139, 92, 246, .4);
    box-shadow: 0 12px 40px -10px rgba(139, 92, 246, .2);
}

.t-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
}

.t-quote {
    font-size: .93rem;
    color: var(--muted);
    line-height: 1.75;
    font-style: italic;
    flex-grow: 1;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.t-author-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad-1);
    flex-shrink: 0;
}

.t-author span {
    font-size: .82rem;
    font-weight: 700;
    color: var(--purple);
}

html[data-theme="light"] .t-author span {
    color: var(--blue);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section {
    background: transparent;
}

.cta-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 90px 80px;
    text-align: center;
}

html[data-theme="light"] .cta-wrap {
    background: #fff;
    box-shadow: 0 8px 48px rgba(0, 0, 0, .05);
}

.cta-bg-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: glowPulse 5s ease-in-out infinite;
}

.cta-glow-1 {
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(139, 92, 246, .18) 0%, transparent 70%);
}

.cta-glow-2 {
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, .15) 0%, transparent 70%);
    animation-delay: -2.5s;
}

.cta-body {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-stars {
    font-size: .9rem;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.cta-stars span {
    color: var(--muted);
    font-weight: 500;
    margin-left: 8px;
    font-size: .82rem;
    letter-spacing: 0;
}

.cta-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* CTA trust — stat pairs */
.cta-trust {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.cta-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.cta-stat strong {
    font-size: 1.3rem;
    font-weight: 900;
    background: var(--grad-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-stat span {
    font-size: .7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 500;
}

.cta-trust-sep {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    position: relative;
    border-top: 1px solid var(--border);
    background: rgba(4, 4, 18, .65);
    backdrop-filter: blur(24px);
}

html[data-theme="light"] .site-footer {
    background: rgba(244, 246, 255, .92);
    border-top-color: rgba(0, 0, 0, .07);
}

.footer-glow-bar {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: var(--grad-2);
    opacity: .7;
}


/* footer-inner layout defined in FOOTER LAYOUT section below */

.footer-logo-link {
    display: inline-flex;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 280px;
}

/* Footer avail — pill badge */
.footer-avail {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .25);
    color: var(--green);
    font-size: .82rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: .2px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    flex-shrink: 0;
    animation: pulseDot 2s infinite;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: .88rem;
    transition: var(--fast);
}

.footer-list li i {
    color: var(--purple);
    font-size: .7rem;
    flex-shrink: 0;
    transition: var(--fast);
}

html[data-theme="light"] .footer-list li i {
    color: var(--blue);
}

.footer-list li:hover {
    color: var(--text);
    gap: 12px;
}

.footer-sub {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.6;
    margin-bottom: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: .88rem;
    margin-top: 10px;
}

.footer-contact-item i {
    color: var(--purple);
    width: 16px;
}

html[data-theme="light"] .footer-contact-item i {
    color: var(--blue);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--muted);
    font-size: .82rem;
}

/* ==========================================================================
   HERO FLOATING CARDS
   ========================================================================== */
.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(12, 12, 38, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    z-index: 2;
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Card positions around the portrait */
.hero-float-1 {
    bottom: 34%;
    left: -10%;
    animation-delay: 0s;
}

.hero-float-2 {
    top: 10%;
    right: -5%;
    animation-delay: -1s;
}

.hero-float-3 {
    bottom: 18%;
    right: -8%;
    animation-delay: -2s;
}

.hero-float-4 {
    top: 30%;
    left: -12%;
    animation-delay: -0.5s;
}

.hfc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--blue);
    font-size: 1rem;
    flex-shrink: 0;
}

.hfc-text {
    display: flex;
    flex-direction: column;
}

.hfc-text strong {
    font-size: .88rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hfc-text span {
    font-size: .7rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    letter-spacing: .3px;
}

/* ==========================================================================
   SECTION EYEBROW BANDS (for services, portfolio, testimonials, etc.)
   ========================================================================== */
.section-header .eyebrow-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .12), rgba(139, 92, 246, .12));
    border: 1px solid rgba(139, 92, 246, .25);
    color: var(--purple);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
}

/* ==========================================================================
   TESTIMONIALS MARQUEE
   ========================================================================== */
.testimonials-section {
    overflow: hidden;
}

.t-marquee-wrap {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    margin-top: 8px;
}

.t-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: testimonialMarquee 50s linear infinite;
}

.t-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes testimonialMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Testimonial card (marquee variant) */
.t-card {
    min-width: 320px;
    max-width: 340px;
    flex-shrink: 0;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--mid);
    position: relative;
}

.t-card:hover {
    border-color: rgba(139, 92, 246, .4);
    box-shadow: 0 12px 40px -10px rgba(139, 92, 246, .2);
}

.t-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
}

.t-quote {
    font-size: .93rem;
    color: var(--muted);
    line-height: 1.75;
    font-style: italic;
    flex-grow: 1;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.t-author-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad-1);
    flex-shrink: 0;
}

.t-author span {
    font-size: .82rem;
    font-weight: 700;
    color: var(--purple);
}

.t-author-info {
    display: flex;
    flex-direction: column;
}

.t-author-info strong {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.t-author-info span {
    font-size: .75rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px;
}

.t-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(59, 130, 246, .1);
    border: 1px solid rgba(59, 130, 246, .2);
    color: var(--blue);
    font-size: .68rem;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: .5px;
    text-transform: uppercase;
    align-self: flex-start;
}

/* ==========================================================================
   WHY CHOOSE ME
   ========================================================================== */
.whyme-section {
    background: transparent;
}

.whyme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.whyme-card {
    background: rgba(8, 8, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px 28px;
    transition: var(--mid);
    position: relative;
    overflow: hidden;
}

.whyme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-1);
    opacity: 0;
    transition: var(--mid);
}

.whyme-card:hover {
    border-color: rgba(139, 92, 246, .35);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -10px rgba(139, 92, 246, .2);
}

.whyme-card:hover::before {
    opacity: 1;
}

.whyme-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: var(--grad-1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    transition: var(--mid);
}

.whyme-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}

.whyme-card p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.65;
}

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

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

/* ==========================================================================
   CTA — AVAILABILITY INDICATOR
   ========================================================================== */
.cta-avail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .25);
    color: var(--green);
    font-size: .82rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: .2px;
}

/* ==========================================================================
   FOOTER LAYOUT
   ========================================================================== */
.footer-inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding: 60px 0;
    align-items: flex-start;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand-col {
    /* wider brand column — handled by grid */
    min-width: 0;
}

.footer-avail {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .25);
    color: var(--green);
    font-size: .82rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: .2px;
    margin-top: 4px;
    align-self: flex-start;
}

.footer-logo {
    height: 48px;
    width: auto;
    color: #5895f6;
    margin-bottom: 16px;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-tags span {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 8px;
    transition: var(--fast);
}

.footer-tags span:hover {
    color: var(--purple);
    border-color: rgba(139, 92, 246, .45);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom-right {
    color: var(--muted);
    font-size: .82rem;
}

/* Footer responsive */
@media(max-width:1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media(max-width:600px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 0;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   PORTFOLIO — MAIN TABS (pill / card style)
   ========================================================================== */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-subtabs {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.portfolio-subtabs.grabbing {
    cursor: grabbing;
}

.ptab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    padding: 9px 22px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
    transition: var(--fast);
    cursor: pointer;
    white-space: nowrap;
}

.ptab-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .05);
}

.ptab-btn.active {
    background: var(--grad-1);
    color: #fff;
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(139, 92, 246, .35);
    animation: ptab-active-pulse 3s infinite;
}

@keyframes ptab-entrance {
    0% { opacity: 0; transform: translateY(20px) scale(0.9); }
    70% { transform: translateY(-2px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ptab-active-pulse {
    0%, 100% { 
        box-shadow: 0 4px 18px rgba(139, 92, 246, .35); 
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 30px rgba(139, 92, 246, .7); 
        transform: scale(1.05); 
        background: var(--grad-1); /* reinforcing gradient visibility */
    }
}

.ptab-btn {
    animation: ptab-entrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.psubtab-btn {
    animation: ptab-entrance 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ==========================================================================
   SECTION SEPARATORS
   ========================================================================== */

/* Subtle separator between each major section */
.about-section,
.services-section,
.portfolio-section,
.testimonials-section,
.whyme-section,
.cta-section {
    position: relative;
}

.about-section::before,
.services-section::before,
.portfolio-section::before,
.testimonials-section::before,
.whyme-section::before,
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 900px;
    height: 1px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(139, 92, 246, .35) 30%,
            rgba(59, 130, 246, .35) 70%,
            transparent 100%);
    pointer-events: none;
}

/* Hero section gets no top separator */
.hero-section::before {
    display: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media(max-width:900px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

    .hero-visual {
        order: -1;
    }

    .hero-portrait {
        max-height: 38vh;
    }

    .hero-text {
        padding-bottom: 28px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .section-title-left {
        text-align: center;
    }

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

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

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .cta-wrap {
        padding: 60px 40px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:768px) {
    .section-padding {
        padding: 72px 0;
    }

    /* Hero portrait mobile fade */

    .hero-portrait {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
    }

    /* Shift hero float cards on mobile */
    .hero-float-card {
        padding: 8px 12px;
    }

    .hfc-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .hfc-text strong {
        font-size: 0.75rem;
    }

    .hfc-text span {
        font-size: 0.6rem;
    }

    .hero-float-1 {
        bottom: 25%;
        left: 0%;
        transform: scale(0.9);
        animation-delay: 0s;
    }

    .hero-float-2 {
        top: 15%;
        right: 0%;
        transform: scale(0.9);
        animation-delay: -1s;
    }

    .hero-float-3 {
        bottom: 12%;
        right: -2%;
        transform: scale(0.9);
        animation-delay: -2s;
    }

    .hero-float-4 {
        top: 30%;
        left: -2%;
        transform: scale(0.9);
        animation-delay: -0.5s;
    }

    /* Fix inline-stats breaking into 2 lines */
    .inline-stats {
        gap: 8px;
        justify-content: flex-start;
    }

    .inline-stat strong {
        font-size: 0.85rem;
    }

    .inline-stat span {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }

    .stat-pipe {
        font-size: 1.2rem;
        margin: 0 2px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(7, 7, 26, .97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    html[data-theme="light"] .nav-links {
        background: rgba(244, 246, 255, .98);
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .cta-wrap {
        padding: 50px 28px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .p-item {
        width: 160px;
        height: 160px;
    }
}

@media(max-width:480px) {
    .p-item {
        width: 130px;
        height: 130px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LIGHTBOX (Group Preview)
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 18, .94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Stage: image + info panel stacked */
.lightbox-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(90vw, 1000px);
    width: 100%;
    transform: scale(0.93);
    transition: transform .3s var(--ease);
}

.lightbox.active .lightbox-stage {
    transform: scale(1);
}

.lightbox-img {
    display: block;
    width: 100%;
    max-height: 58vh;
    object-fit: contain;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
    transition: opacity .25s ease;
    user-select: none;
}

/* Info panel — glued under the image */
.lightbox-info {
    width: 100%;
    background: rgba(10, 10, 30, .9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(139, 92, 246, .2);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lightbox-info-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.lightbox-info-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.lightbox-info-role {
    font-size: .8rem;
    color: var(--purple);
    font-weight: 600;
}

.lightbox-info-timeline {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 500;
}

.lightbox-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lb-tag-pill {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .4px;
    padding: 4px 10px;
    border-radius: 50px;
    background: rgba(139, 92, 246, .12);
    border: 1px solid rgba(139, 92, 246, .25);
    color: var(--purple);
    white-space: nowrap;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 3;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.lightbox-close:hover {
    background: rgba(139, 92, 246, .5);
    transform: rotate(90deg);
}

/* Prev / Next arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    /* bias toward image center */
    z-index: 3;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-nav:hover {
    background: rgba(139, 92, 246, .45);
    transform: translateY(-60%) scale(1.08);
}

/* Thumbnail strip */
.lightbox-thumbs {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: min(90vw, 1000px);
    width: 100%;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, .4) transparent;
}

.lightbox-thumbs::-webkit-scrollbar {
    height: 4px;
}

.lightbox-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.lightbox-thumbs::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, .4);
    border-radius: 4px;
}

.lb-thumb {
    flex-shrink: 0;
    width: 68px;
    height: 48px;
    border-radius: 7px;
    overflow: hidden;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, .05);
    padding: 0;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, opacity .2s ease;
    opacity: .55;
}

.lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

.lb-thumb:hover {
    opacity: .85;
    transform: scale(1.05);
}

.lb-thumb.active {
    border-color: var(--purple);
    opacity: 1;
    box-shadow: 0 0 10px rgba(139, 92, 246, .5);
}

@media(max-width:600px) {
    .lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: .85rem;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lb-thumb {
        width: 52px;
        height: 38px;
    }

    .lightbox-img {
        max-height: 46vh;
    }
}



/* ==========================================================================
   MOUSE-TRACKING GLOW ON CARDS
   ========================================================================== */

/* Cards that get the glow treatment */
.glass-card,
.whyme-card,
.t-card,
.service-card,
.cta-wrap {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* The glow follows the mouse via CSS custom properties updated by JS */
.glass-card::after,
.whyme-card::after,
.t-card::after,
.service-card::after,
.cta-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
    background: radial-gradient(380px circle at var(--mouse-x) var(--mouse-y),
            rgba(139, 92, 246, .12) 0%,
            rgba(59, 130, 246, .06) 45%,
            transparent 70%);
    z-index: 0;
}

.glass-card:hover::after,
.whyme-card:hover::after,
.t-card:hover::after,
.service-card:hover::after,
.cta-wrap:hover::after {
    opacity: 1;
}

/* Ensure card children sit above the glow layer */
.glass-card>*,
.whyme-card>*,
.t-card>*,
.service-card>*,
.cta-wrap>* {
    position: relative;
    z-index: 1;
}