/* ═══════════════════════════════════════════════════════════
   SADigisoft Technologies — Premium Dark Theme
   Accent colours matched to the SADigisoft logo blue
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
    /* Backgrounds — richer, deeper tones */
    --bg-base: #03050C;
    --bg-surface: #080B18;
    --bg-card: #0F1426;
    --bg-elevated: #161D32;

    --text-primary: #f2f2f2;
    --text-secondary: #c0c2cc;
    --text-muted: #8e919e;
    --text-dim: #606370;

    /* Unique Vibrant Blue */
    --accent: #0066cc;
    --accent-hover: #0077ed;
    --accent-glow: rgba(0, 102, 204, 0.4);
    --accent-soft: rgba(0, 102, 204, 0.1);

    /* Secondary Accent for Depth */
    --accent-secondary: #00D1FF;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 102, 204, 0.3);

    --radius-card: 20px;
    --radius-btn: 12px;
    --radius-sm: 8px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --transition: 0.4s var(--ease);

    /* ── Light Section Tokens ── */
    --bg-light:         #f5f5f7;
    --bg-light-surface: #FFFFFF;
    --bg-light-alt:     #e8e8ed;
    --text-on-light:         #000000;
    --text-on-light-2:       #222222;
    --text-on-light-muted:   #444444;
    --border-light:          #d2d2d7;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Global Dropdown Fix ── */
select {
    cursor: pointer;
}

select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 10px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* ══════════════════════════════════════════════════════
   LIGHT SECTION UTILITIES
   Apply data-theme="light" to any <section> or wrapper
   to switch that block to a clean white/pale palette.
   ══════════════════════════════════════════════════════ */
[data-theme="light"] {
    background: var(--bg-light);
    color: var(--text-on-light);
}

[data-theme="light-white"] {
    background: var(--bg-light-surface);
    color: var(--text-on-light);
}

[data-theme="light-alt"] {
    background: var(--bg-light-alt);
    color: var(--text-on-light);
}

/* Headings & text inside light sections */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light-white"] h1,
[data-theme="light-white"] h2,
[data-theme="light-white"] h3,
[data-theme="light-white"] h4,
[data-theme="light-alt"] h1,
[data-theme="light-alt"] h2,
[data-theme="light-alt"] h3,
[data-theme="light-alt"] h4 {
    color: var(--text-on-light);
}

[data-theme="light"] p,
[data-theme="light-white"] p,
[data-theme="light-alt"] p {
    color: var(--text-on-light-2);
}

/* Cards inside light sections become white with border */
[data-theme="light"] .card,
[data-theme="light"] .service-card,
[data-theme="light"] .blog-card,
[data-theme="light-white"] .card,
[data-theme="light-alt"] .card {
    background: var(--bg-light-surface);
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 16px rgba(15, 25, 52, 0.06);
    color: var(--text-on-light);
}

[data-theme="light"] .card h3,
[data-theme="light"] .service-card h3,
[data-theme="light-alt"] .card h3 {
    color: var(--text-on-light);
}

[data-theme="light"] .card p,
[data-theme="light"] .service-card p,
[data-theme="light-alt"] .card p {
    color: var(--text-on-light-2);
}

/* Section overline/badge on light bg */
[data-theme="light"] .overline,
[data-theme="light"] .overline-badge,
[data-theme="light-white"] .overline,
[data-theme="light-alt"] .overline {
    color: var(--accent);
    background: rgba(62, 99, 221, 0.08);
}

/* Dividers on light bg */
[data-theme="light"] .section-heading::after,
[data-theme="light-alt"] .section-heading::after {
    background: var(--accent);
}

/* Stat items on light */
[data-theme="light"] .stat-label,
[data-theme="light-alt"] .stat-label {
    color: var(--text-on-light-muted);
}
[data-theme="light"] .stat-value,
[data-theme="light-alt"] .stat-value {
    color: var(--accent);
}

/* ── Light Portfolio Wrapper ── */
.portfolio-light-wrap {
    background: var(--bg-light);
    padding-bottom: 80px;
}

/* Fix iframe scroll trap — previews are non-interactive; use the button to open */
.portfolio-light-wrap .browser-frame iframe,
.portfolio-light-wrap .android-screen iframe {
    pointer-events: none;
    touch-action: none;
}

/* Invisible overlay prevents any residual iframe scroll capture */
.portfolio-light-wrap .browser-frame > div {
    position: relative;
}

.portfolio-light-wrap .browser-frame {
    box-shadow: 0 12px 40px rgba(15, 25, 52, 0.12);
    border-color: var(--border-light);
}

.portfolio-item-title {
    color: var(--text-on-light);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* ── Mobile Mockup Grid (3-up phone frames) ── */
.mobile-mockup-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: var(--bg-light-surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.mobile-mockup-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.mobile-mockup-heading h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--text-on-light);
    margin-bottom: 0.75rem;
}

.mobile-mockup-heading p {
    color: var(--text-on-light-2);
    font-size: 1rem;
}

.mobile-mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 640px) {
    .mobile-mockup-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.phone-frame {
    position: relative;
    background: #1a1a2e;
    border-radius: 36px;
    padding: 10px 8px 8px;
    box-shadow:
        0 0 0 2px #2d2d45,
        0 20px 60px rgba(15, 25, 52, 0.25);
    aspect-ratio: 9/19;
    overflow: hidden;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: #2d2d45;
    border-radius: 3px;
    z-index: 5;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 28px;
    display: block;
}

/* ══════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(18, 22, 34, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.35s var(--ease);
}

#site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #d2d2d7;
    box-shadow: 0 2px 20px rgba(15, 25, 52, 0.08);
}

/* Nav links turn dark on scroll */
#site-header.scrolled .topnav-link {
    color: #424245;
}
#site-header.scrolled .topnav-link:hover,
#site-header.scrolled .topnav-trigger[aria-expanded="true"] {
    color: #1d1d1f;
    background: rgba(0, 102, 204, 0.06);
}

/* Hamburger turns dark on scroll */
#site-header.scrolled .mobile-toggle {
    border-color: #d2d2d7;
}
#site-header.scrolled .mobile-toggle span {
    background: #1d1d1f;
}
#site-header.scrolled .mobile-toggle:hover {
    border-color: var(--accent);
}

/* CTA button stays accent on scroll */
#site-header.scrolled .btn-cta {
    background: var(--accent);
    color: #fff;
}

/* Mega arrow icon on scroll */
#site-header.scrolled .mega-btn-arrow {
    color: #424245;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 88px;
}

/* ── Hamburger Toggle (always visible) ── */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 52px;
    height: 52px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    z-index: 10002;
    position: relative;
    transition: border-color 0.3s ease;
    order: 3;
}

.mobile-toggle:hover {
    border-color: var(--accent);
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.35s var(--ease);
    transform-origin: center;
}

.mobile-toggle.active {
    border-color: var(--accent);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
    border-radius: 8px;
    padding: 6px;
    transition: transform 0.3s var(--ease);
}

/* Logo swap: show dark logo when header is white (scrolled) */
.logo-img-dark { display: none; }
#site-header.scrolled .logo-img-light { display: none; }
#site-header.scrolled .logo-img-dark  { display: block; }

.logo-img-footer {
    height: 38px;
    width: auto;
    display: block;
    opacity: 0.95;
    transition: opacity 0.3s var(--ease);
}

.logo-img-footer:hover {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════
   DESKTOP TOP-NAV BAR
   ══════════════════════════════════════════════════════ */

/* Hide hamburger on desktop, show inline topnav */
.topnav {
    display: none;
}

.nav-right {
    display: none;
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }

    .topnav {
        display: flex;
        align-items: center;
        gap: 4px;
        flex: 1;
        justify-content: center;
    }

    .nav-right {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
}

.topnav-item {
    position: relative;
}

.topnav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.topnav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100, 150, 255, 0.2);
    border-radius: 8px;
    transform: skew(-15deg) scaleX(0);
    z-index: -1;
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.topnav-link:hover::before,
.topnav-trigger[aria-expanded="true"]::before {
    transform: skew(-15deg) scaleX(1);
    opacity: 1;
}

.topnav-link:hover,
.topnav-trigger[aria-expanded="true"] {
    color: var(--text-primary);
}

.mega-btn-arrow {
    font-size: 16px;
    transition: transform 0.25s var(--ease);
}

.topnav-trigger[aria-expanded="true"] .mega-btn-arrow {
    transform: rotate(180deg);
}

/* ══════════════════════════════════════════════════════
   MEGA PANEL — BOUNDED DROPDOWN
   ══════════════════════════════════════════════════════ */

.mega-panel {
    position: absolute;
    top: 100%;            /* flush below the header */
    left: 0;
    right: 0;
    z-index: 9998;
    background: #ffffff;
    border-top: 2px solid var(--accent);
    border-bottom: 1px solid #e8ecf4;
    box-shadow: 0 12px 48px rgba(30, 40, 80, 0.12), 0 2px 8px rgba(30, 40, 80, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s var(--ease);
    opacity: 0;
    pointer-events: none;
}

.mega-panel.open {
    max-height: 60vh;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
}

/* Custom scrollbar inside mega panel */
.mega-panel::-webkit-scrollbar { width: 5px; }
.mega-panel::-webkit-scrollbar-track { background: transparent; }
.mega-panel::-webkit-scrollbar-thumb { background: rgba(79, 111, 208, 0.25); border-radius: 3px; }

.mega-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 2rem 2.5rem;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: start;
}

/* ── Column headings ── */
.mega-col-heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #e8ecf4;
}

.mega-heading-accent {
    color: var(--accent);
}

/* ── Groups inside each column ── */
.mega-group {
    margin-bottom: 1.25rem;
}

.mega-group:last-child {
    margin-bottom: 0;
}

.mega-group-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

/* ── Link lists ── */
.mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-link-item {
    display: flex;
    flex-direction: column;
}

.mega-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.mega-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e2640;
    text-decoration: none;
    padding: 5px 6px;
    border-radius: 6px;
    transition: color 0.18s var(--ease), background 0.18s var(--ease), padding-left 0.18s var(--ease);
    flex: 1;
    display: block;
    font-family: var(--font-body);
}

.mega-link:hover {
    color: var(--accent);
    background: rgba(79, 111, 208, 0.07);
    padding-left: 10px;
}

.mega-link-cta {
    color: var(--accent);
    font-weight: 600;
}

/* ── Accordion trigger (for child pages) ── */
.acc-trigger {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: none;
    background: none;
    cursor: pointer;
    color: #9ca3af;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s, transform 0.25s var(--ease);
    padding: 0;
}

.acc-trigger:hover {
    color: var(--accent);
    background: rgba(79, 111, 208, 0.08);
}

.acc-trigger .material-icons-outlined {
    font-size: 15px;
    transition: transform 0.25s var(--ease);
}

.acc-trigger[aria-expanded="true"] .material-icons-outlined {
    transform: rotate(180deg);
}

/* ── Accordion panel ── */
.acc-panel {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid rgba(79, 111, 208, 0.2);
    margin-left: 8px;
    background: #f8f9fc;
    border-radius: 0 0 6px 6px;
}

.acc-panel.open {
    max-height: 300px;
}

.acc-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 400;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.18s var(--ease), background 0.18s var(--ease);
    font-family: var(--font-body);
}

.acc-link:hover {
    color: var(--accent);
    background: rgba(79, 111, 208, 0.06);
}

.acc-link .material-icons-outlined {
    font-size: 12px;
    opacity: 0.4;
    flex-shrink: 0;
}

/* ── Promo image column ── */
.mega-col-promo {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mega-promo-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ecf4;
    background: #f8f9fc;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.mega-promo-card:hover {
    border-color: rgba(79, 111, 208, 0.4);
    box-shadow: 0 6px 24px rgba(79, 111, 208, 0.1);
}

.mega-promo-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    object-position: top;
    display: block;
    border-bottom: 1px solid #e8ecf4;
}

.mega-promo-body {
    padding: 0.85rem 1rem;
    background: #fff;
}

.mega-promo-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.3rem;
}

.mega-promo-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e2640;
    margin: 0 0 0.6rem;
    line-height: 1.35;
}

.mega-promo-cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.mega-promo-cta:hover {
    opacity: 0.75;
}

/* ═══════════════════════════════════════════════════════
   MOBILE NAVIGATION DRAWER
   ═══════════════════════════════════════════════════════ */

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100vw;
    width: min(420px, 100vw);
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 10001;
    border-left: 1px solid #e8ecf4;
    box-shadow: -8px 0 40px rgba(30, 40, 80, 0.1);
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.18, 1);
    padding-top: 80px;
}

.mobile-nav.open {
    right: 0;
}

/* On desktop the mobile nav is always hidden */
@media (min-width: 1024px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-inner {
    padding: 1rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Mobile section accordion */
.mob-section {
    border-bottom: 1px solid #e8ecf4;
}

.mob-section-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #1e2640;
    text-align: left;
}

.mob-section-trigger .material-icons-outlined {
    font-size: 18px;
    color: #9ca3af;
    transition: transform 0.25s var(--ease);
    flex-shrink: 0;
}

.mob-section-trigger[aria-expanded="true"] .material-icons-outlined {
    transform: rotate(180deg);
}

.mob-section-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 4px;
    background: #f8f9fc;
    border-radius: 0 0 8px 8px;
}

.mob-section-panel.open {
    max-height: 600px;
    padding-bottom: 12px;
}

.mob-group-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 10px;
    margin-bottom: 2px;
}

.mob-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e2640;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.18s, background 0.18s;
    font-family: var(--font-body);
}

.mob-link:hover { color: var(--accent); background: rgba(79,111,208,0.07); }

.mob-child-link {
    font-size: 0.85rem;
    font-weight: 400;
    color: #6b7280;
    padding-left: 16px;
}

.mob-child-link .material-icons-outlined { font-size: 12px; opacity: 0.4; }

.mob-top-link {
    display: block;
    padding: 14px 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #1e2640;
    text-decoration: none;
    border-bottom: 1px solid #e8ecf4;
    transition: color 0.2s;
}

.mob-top-link:hover { color: var(--accent); }

.mob-top-link-accent {
    color: var(--accent);
}

/* CTA Button */
.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-btn);
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.btn-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(79, 111, 208, 0.40);
}

/* ══════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px clamp(1.5rem, 4vw, 3rem) 60px;
    overflow: hidden;
}

.hero-three-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.75;
    pointer-events: none;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, black, transparent);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 650px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease);
}

.hero-text.in-view {
    opacity: 1;
    transform: translateY(0);
}

.hero-line-1 {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.hero-line-2 {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    -webkit-text-stroke: 2px var(--text-primary);
    color: transparent;
    letter-spacing: -1px;
}

.hero-sub {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(79, 111, 208, 0.40);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.btn-ghost:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.hero-stat {
    display: inline-flex;
    flex-direction: column;
    margin-top: 3rem;
    padding: 16px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 1px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 2px;
}

/* Hero Mockup */
.hero-mockup {
    flex: 1;
    max-width: 580px;
    position: relative;
    opacity: 0;
    transform: translateX(60px);
    transition: all 1s var(--ease);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-heading {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-heading.center {
    display: block;
    text-align: center;
}

.section-heading.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.overline {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* ── Buttons ── */
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s var(--ease);
    cursor: pointer;
    gap: 10px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 20px var(--accent-soft);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ══════════════════════════════════════════════════════
   TECHNOLOGY SECTION
   ══════════════════════════════════════════════════════ */
.tech-stack-section {
    padding: clamp(5rem, 10vw, 8rem) 0 4rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.tech-stack-section[data-theme="light"] {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.tech-stack-section[data-theme="light"] .section-heading,
.tech-stack-section[data-theme="light"] h2,
.tech-stack-section[data-theme="light"] h3 {
    color: var(--text-on-light);
}

.tech-stack-section[data-theme="light"] p,
.tech-stack-section[data-theme="light"] .section-sub,
.tech-stack-section[data-theme="light"] .tech-points li {
    color: var(--text-on-light-2);
}

.tech-stack-section[data-theme="light"] .tech-spec-grid {
    background: #fff;
    border-color: var(--border-light);
}

.tech-stack-section[data-theme="light"] .tech-spec-item h3 {
    color: var(--text-on-light);
}

.tech-stack-section[data-theme="light"] .tech-spec-item p {
    color: var(--text-on-light-muted);
}

.tech-stack-section[data-theme="light"] .tech-item span {
    color: var(--text-on-light);
}

/* Logo strip always uses dark background — keep text + inverted icons white */
.tech-stack-section[data-theme="light"] .logo-strip .tech-item span {
    color: #ffffff;
}

.tech-stack-section[data-theme="light"] .logo-strip .dark-invert {
    filter: invert(1) grayscale(1) !important;
}

/* Constrained blue logo strip — width inside the section */
.tech-stack-section .logo-strip {
    margin: 2.5rem clamp(1.5rem, 5vw, 4rem);
    border-radius: 20px;
    background: linear-gradient(135deg, #0a1a35 0%, #071224 50%, #0d1f3c 100%);
    border: 1px solid rgba(0, 102, 204, 0.25);
    box-shadow: 0 0 40px rgba(0, 90, 200, 0.15), inset 0 1px 0 rgba(255,255,255,0.06);
}

.tech-stack-section .logo-strip::before {
    background: linear-gradient(to right, #0a1a35, transparent);
    border-radius: 20px 0 0 20px;
}

.tech-stack-section .logo-strip::after {
    background: linear-gradient(to left, #0d1f3c, transparent);
    border-radius: 0 20px 20px 0;
}

.tech-stack-section[data-theme="light"] .btn-primary {
    background: var(--accent);
    color: #fff;
}

.tech-stack-section[data-theme="light"] .btn-ghost {
    color: var(--text-on-light);
    border-color: var(--border-light);
}

.tech-stack-section[data-theme="light"] .btn-ghost:hover {
    background: rgba(0, 102, 204, 0.06);
    border-color: var(--accent);
}

.tech-stack-section[data-theme="light"] .hp-h2--outline {
    -webkit-text-stroke-color: #1d1d1f;
    color: transparent;
}

.tech-stack-section[data-theme="light"] .tech-points li strong {
    color: var(--text-on-light);
}

.tech-stack-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.tech-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    align-items: center;
}

@media (max-width: 992px) {
    .tech-section-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.tech-section-text {
    max-width: 600px;
}

.overline-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent);
    background: rgba(79, 111, 208, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-transform: none;
}

.tech-points {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.tech-points li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-primary);
}

.tech-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent);
    font-weight: bold;
}

.tech-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.tech-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 16px;
}

@media (max-width: 600px) {
    .tech-spec-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

.tech-spec-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.tech-spec-item .spec-num {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(79, 111, 208, 0.1);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-family: var(--font-heading);
}

.tech-spec-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.tech-spec-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tech-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.tech-header .overline {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: none;
}

.logo-strip {
    padding: 30px 0;
    overflow: hidden;
    background: transparent;
    position: relative;
    border-radius: 0;
}

.logo-strip::before,
.logo-strip::after {
    content: "";
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.logo-strip::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-surface), transparent);
}

.logo-strip::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-surface), transparent);
}

.logo-track {
    overflow: hidden;
}

.logo-slide {
    display: flex;
    gap: 8rem;
    animation: scrollLogos 50s linear infinite;
    width: max-content;
    align-items: center;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 18px;
    opacity: 0.85;
    transition: all 0.4s var(--ease);
    cursor: pointer;
    user-select: none;
}

.tech-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.tech-item img {
    height: 40px;
    width: auto;
    filter: none;
    transition: all 0.4s var(--ease);
}

.tech-item:hover img {
    filter: drop-shadow(0 0 12px rgba(79, 111, 208, 0.4));
}

.tech-item span {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.dark-invert {
    filter: invert(1) grayscale(1) !important;
}

[data-theme="light"] .dark-invert {
    filter: none !important;
}

.tech-item:hover .dark-invert {
    filter: invert(1) grayscale(0) !important;
}

[data-theme="light"] .tech-item:hover .dark-invert {
    filter: none !important;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 4rem));
    }
}


/* ══════════════════════════════════════════════════════
   SERVICES SECTION
   ══════════════════════════════════════════════════════ */
.services {
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 4vw, 3rem);
    background: var(--bg-base);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s var(--ease);
}

.section-heading.in-view {
    opacity: 1;
    transform: translateY(0);
}

.section-heading.center {
    text-align: center;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 520px;
    line-height: 1.7;
}

.section-sub.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3.5rem;
    align-items: start;
}

/* Service Images (left column) */
.services-images {
    position: relative;
    min-height: 460px;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.service-img-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(0.96) rotate(-1deg);
    transition: all 0.5s var(--ease);
}

.service-img-card.active {
    opacity: 1;
    transform: scale(1) rotate(0);
    z-index: 10;
}

.service-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-card);
}

/* ── Browser Mockup Preview ── */
.mini-view {
    height: 100% !important;
    background: #0d0d0f;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.mini-view .browser-bar {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-view .browser-content {
    height: 380px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.mini-view .dashboard-preview {
    width: 1280px;
    height: 800px;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(0.48);
    /* Responsive scale for preview */
    transform-origin: top left;
}

/* Service Rows (right column) */
.services-list {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    opacity: 0;
    transform: translateX(20px);
}

.service-row.in-view {
    opacity: 1;
    transform: translateX(0);
}

.service-row:first-child {
    border-top: 1px solid var(--border);
}

.service-row:hover,
.service-row.active {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 28px;
}

.service-row.active .service-info h3 {
    color: var(--accent);
}

.service-info h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s var(--ease);
    margin-bottom: 4px;
}

.service-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.service-arrow {
    font-size: 20px;
    color: var(--text-dim);
    transition: all 0.3s var(--ease);
}

.service-row:hover .service-arrow,
.service-row.active .service-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* ══════════════════════════════════════════════════════
   DASHBOARD SHOWCASE BANNER
   ══════════════════════════════════════════════════════ */
.showcase {
    position: relative;
    padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 4vw, 3rem);
    background: var(--bg-surface);
    overflow: hidden;
}

.showcase-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(79, 111, 208, 0.10), transparent 70%);
    pointer-events: none;
}

.showcase-container {
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease);
}

.showcase-container.in-view {
    opacity: 1;
    transform: translateY(0);
}

.browser-frame {
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px var(--border);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dot.red {
    background: #FF5F57;
}

.browser-dot.yellow {
    background: #FEBC2E;
}

.browser-dot.green {
    background: #28C840;
}

.browser-url {
    margin-left: 16px;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 16px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--border);
}

.browser-content img {
    width: 100%;
    display: block;
}

/* ══════════════════════════════════════════════════════
   CASE STUDY SECTION
   ══════════════════════════════════════════════════════ */
.case-studies {
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 4vw, 3rem);
    background: #F4F3EF;
    color: #1a1a2e;
}

.case-studies-container {
    max-width: 1240px;
    margin: 0 auto;
}

.case-studies .section-heading {
    color: #1a1a2e;
}

.case-studies .section-sub {
    color: #5a5a6e;
}

.case-cards {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.case-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: #fff;
    border-radius: var(--radius-card);
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s var(--ease);
}

.case-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.case-card.reverse {
    direction: rtl;
}

.case-card.reverse>* {
    direction: ltr;
}

.case-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 1.2px;
    color: var(--accent);
    padding: 5px 14px;
    border: 1px solid rgba(232, 69, 34, 0.25);
    border-radius: var(--radius-btn);
    margin-bottom: 1rem;
}

.case-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.case-desc {
    font-size: 0.9rem;
    color: #5a5a6e;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.case-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.pill {
    font-size: 0.72rem;
    padding: 4px 12px;
    background: #f0f0f5;
    color: #5a5a6e;
    border-radius: var(--radius-btn);
    font-weight: 500;
}

.case-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    padding: 10px 24px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-btn);
    transition: all 0.3s var(--ease);
}

.case-cta .material-icons-outlined {
    font-size: 16px;
    transition: transform 0.3s var(--ease);
}

.case-cta:hover {
    background: var(--accent);
    color: #fff;
}

.case-cta:hover .material-icons-outlined {
    transform: translateX(4px);
}

.case-card-image img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ══════════════════════════════════════════════════════
   PARALLAX BOTTOM SECTION — Methodology (Light Theme)
   ══════════════════════════════════════════════════════ */
.methodology {
    position: relative;
    padding: clamp(6rem, 10vw, 10rem) clamp(1.5rem, 4vw, 3rem);
    background: #ffffff;
    /* Fallback */
    overflow: hidden;
    color: #1a1a2e;
    /* Lighten the overall appearance by making text dark */
}

.parallax-bg-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.process-bg {
    position: absolute;
    inset: -150px -50px;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.1s linear;
    will-change: transform;
    opacity: 0.15;
    /* Lightened parallax background */
}

/* Glassy overlay to guarantee text visibility */
.methodology::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(245, 245, 250, 0.95) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.methodology-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 5rem;
}

.overline {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.methodology .parallax-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a2e;
    letter-spacing: -1px;
}

.methodology-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto 5rem;
    position: relative;
    z-index: 2;
}

.method-step {
    flex: 1;
    text-align: center;
    padding: 3rem 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    border-radius: var(--radius-card);
}

.method-step:hover {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    transform: translateY(-8px) scale(1.02);
}

.method-step.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations */
.method-step:nth-child(1) {
    transition-delay: 0.1s;
}

.method-step:nth-child(3) {
    transition-delay: 0.25s;
}

.method-step:nth-child(5) {
    transition-delay: 0.4s;
}

.method-step:nth-child(7) {
    transition-delay: 0.55s;
}

.step-num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    /* Soft orange for light mode */
    color: rgba(232, 69, 34, 0.15);
    display: block;
    margin-bottom: 1rem;
    transition: all 0.4s var(--ease);
}

.method-step:hover .step-num {
    color: var(--accent);
    transform: scale(1.1);
}

.method-step h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.method-step p {
    font-size: 0.95rem;
    color: #5a5a6e;
    line-height: 1.7;
}

.step-divider {
    width: 1px;
    min-height: 140px;
    background: rgba(0, 0, 0, 0.08);
    /* Dark line for light bg */
    align-self: center;
    flex-shrink: 0;
    margin-top: 1.5rem;
}

/* CTA Band */
.methodology-cta-band {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.methodology-cta-band h3 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.btn-outline-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-btn);
    transition: all 0.3s var(--ease);
}

.btn-outline-lg .material-icons-outlined {
    font-size: 18px;
    transition: transform 0.3s var(--ease);
}

.btn-outline-lg:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 12px 35px rgba(232, 69, 34, 0.3);
}

.btn-outline-lg:hover .material-icons-outlined {
    transform: translateX(4px);
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 2.5rem clamp(1.5rem, 4vw, 3rem) 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.7;
    max-width: 340px;
}

.footer-logo {
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 1.25rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(232, 69, 34, 0.08);
}

.social-link .material-icons-outlined {
    font-size: 18px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s var(--ease);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--hp-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 142, 247, 0.3);
}

.footer-col h5 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
}

.footer-col h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--hp-blue);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s var(--ease);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--hp-blue);
    transform: translateX(5px);
}

.footer-cat-name {
    font-weight: 700;
    color: var(--hp-blue) !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    font-size: 0.9rem !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.back-to-top {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.back-to-top:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.back-to-top .material-icons-outlined {
    font-size: 18px;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-sub {
        max-width: 540px;
    }

    .hero-mockup {
        max-width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-images {
        min-height: 300px;
    }

    .case-card,
    .case-card.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .methodology-steps {
        flex-wrap: wrap;
    }

    .step-divider {
        display: none;
    }

    .method-step {
        flex: 1 1 45%;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 1.5rem 3rem;
    }

    .case-card {
        padding: 1.5rem;
    }

    .method-step {
        flex: 1 1 100%;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    /* Parallax disabled on mobile */
    .geo-grid,
    .parallax-heading {
        transform: none !important;
    }
}

@media (max-width: 480px) {

    .hero-line-1,
    .hero-line-2 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════════════
   MEGA MENU — Services Grid overrides removed
   ══════════════════════════════════════════════════════ */
TESTIMONIALS ══════════════════════════════════════════════════════ */ .testimonials {
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 4vw, 3rem);
    background: var(--bg-surface);
}

/* When testimonials section gets a light bg override (index.html) */
.testimonials[style*="--bg-light"] .testimonial-card,
.testimonials[style*="var(--bg-light)"] .testimonial-card {
    background: #fff;
    border-color: #d2d2d7;
    box-shadow: 0 2px 16px rgba(15, 25, 52, 0.06);
}

.testimonials[style*="var(--bg-light)"] .testimonial-quote {
    color: #424245;
}

.testimonials[style*="var(--bg-light)"] .author-info strong {
    color: #1d1d1f;
}

.testimonials[style*="var(--bg-light)"] .author-info span {
    color: #6B7A99;
}

.testimonials[style*="var(--bg-light)"] .section-heading,
.testimonials[style*="var(--bg-light)"] h2 {
    color: #1d1d1f;
}

.testimonials[style*="var(--bg-light)"] .section-sub,
.testimonials[style*="var(--bg-light)"] p {
    color: #3D4A6B;
}

.testimonials[style*="var(--bg-light)"] .hp-overline {
    color: var(--accent);
}

.testimonials[style*="var(--bg-light)"] .section-heading::after {
    background: var(--accent);
}

/* On light bg the outline text (white stroke) would vanish — make it accent stroke */
.testimonials[style*="var(--bg-light)"] .hp-h2--outline {
    -webkit-text-stroke-color: var(--accent);
    color: transparent;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: left;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2rem;
    transition: all 0.4s var(--ease);
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.quote-icon {
    margin-bottom: 0.5rem;
    font-size: 3.5rem;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    color: var(--accent);
    opacity: 0.35;
}

.testimonial-quote {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-amber));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.author-info strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.author-info span {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ══════════════════════════════════════════════════════
   BLOG CARDS (Homepage + Blog Page)
   ══════════════════════════════════════════════════════ */
.blog-preview {
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 4vw, 3rem);
    background: var(--bg-base);
}

.blog-preview-container,
.blog-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid,
.blog-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    /* Ensure image doesn't overflow */
    transition: all 0.35s var(--ease);
    opacity: 0;
    transform: translateY(25px);
    color: inherit;
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1a1c28;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.blog-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-category {
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 1px;
    color: var(--accent);
    padding: 4px 10px;
    background: rgba(232, 69, 34, 0.1);
    border-radius: var(--radius-btn);
}

.blog-date {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.blog-card-excerpt {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    transition: gap 0.3s var(--ease);
}

.blog-read-more .material-icons-outlined {
    font-size: 16px;
}

.blog-card:hover .blog-read-more {
    gap: 8px;
}

/* Case Study Cards */
.casestudy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.casestudy-card {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #111;
    border: 1px solid var(--border);
}

.casestudy-img {
    width: 100%;
    height: 100%;
}

.casestudy-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.casestudy-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s var(--ease);
}

.casestudy-card:hover .casestudy-img img {
    transform: scale(1.1);
}

.casestudy-card:hover .casestudy-overlay {
    transform: translateY(0);
}

.casestudy-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.casestudy-summary {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.casestudy-card:hover .casestudy-summary {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════
   PAGE HERO (Blog, Service, About pages)
   ══════════════════════════════════════════════════════ */
.page-hero {
    padding: clamp(8rem, 14vw, 12rem) clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
    background: var(--bg-base);
    text-align: center;
    position: relative;
}

.page-hero.compact {
    padding-top: clamp(7rem, 10vw, 9rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.page-hero-inner {
    max-width: 780px;
    margin: 0 auto;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.page-hero-sub {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

.page-hero-meta {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: var(--accent);
}

.breadcrumb-link .material-icons-outlined {
    font-size: 16px;
}

/* ══════════════════════════════════════════════════════
   ARTICLE CONTENT (Blog Post + Service Page)
   ══════════════════════════════════════════════════════ */
.article-content {
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    background: var(--bg-surface);
}

.article-container {
    max-width: 780px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease);
}

.article-container.in-view {
    opacity: 1;
    transform: translateY(0);
}

.article-container h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.article-container h2:first-child {
    margin-top: 0;
}

.article-container h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.article-container p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.article-container ul,
.article-container ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-container li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.article-container li::marker {
    color: var(--accent);
}

.article-cta {
    max-width: 780px;
    margin: 3rem auto 0;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    text-align: center;
}

.article-cta h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.article-cta .btn-primary {
    display: inline-flex;
}

.article-cta .btn-primary .material-icons-outlined {
    font-size: 18px;
}

/* ══════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════ */
.about-content {
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
    background: var(--bg-surface);
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease);
}

.about-text.in-view {
    opacity: 1;
    transform: translateY(0);
}

.about-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease) 0.2s;
}

.about-stats.in-view {
    opacity: 1;
    transform: translateY(0);
}

.about-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s var(--ease);
}

.about-stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════
   BLOG PAGE
   ══════════════════════════════════════════════════════ */
.blog-page {
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem);
    background: var(--bg-surface);
}

/* ══════════════════════════════════════════════════════
   LOGIN
   ══════════════════════════════════════════════════════ */
.login-container {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem;
}

.login-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2.5rem;
}

.login-card h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-field {
    margin-bottom: 1.25rem;
}

.login-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.login-field input:focus {
    outline: none;
    border-color: var(--accent);
}

/* ══════════════════════════════════════════════════════
   FLASH MESSAGES
   ══════════════════════════════════════════════════════ */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 10000;
    max-width: 380px;
}

.flash-msg {
    padding: 12px 20px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius-sm);
    color: #22c55e;
    font-size: 0.85rem;
    margin-bottom: 8px;
    animation: flashIn 0.4s var(--ease);
}

@keyframes flashIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE ADDITIONS
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .blog-grid,
    .blog-grid-full {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {}

/* ══════════════════════════════════════════════════════
   FOOTER — compact 5-col layout
   ══════════════════════════════════════════════════════ */
.footer-top {
    grid-template-columns:
        minmax(220px, 1.6fr)
        repeat(4, minmax(120px, 1fr));
    gap: clamp(1.25rem, 2vw, 2rem);
    align-items: start;
}

.footer-brand {
    padding-right: clamp(0rem, 1.5vw, 1rem);
}

.footer-brand p {
    max-width: 320px;
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-col ul li {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.footer-col ul,
.footer-col-company ul,
.footer-col-legal ul,
.footer-col-contact ul {
    display: grid;
    gap: 0.15rem;
}

.footer-col-contact ul li {
    color: var(--text-dim);
}

.footer-col-contact ul li a {
    word-break: break-word;
}

@media (max-width: 1180px) {
    .footer-top {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .back-to-top {
        align-self: flex-end;
    }
}

/* ══════════════════════════════════════════════════════
   PREMIUM DYNAMIC LAYOUTS (Services, Blog, Case Studies)
   ══════════════════════════════════════════════════════ */
.premium-hero {
    padding: clamp(8rem, 15vw, 12rem) clamp(1.5rem, 5vw, 5rem);
    background: radial-gradient(circle at top right, rgba(79, 111, 208, 0.08), transparent 40%), var(--bg-surface);
    overflow: hidden;
    position: relative;
}

.premium-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(3rem, 8vw, 6rem);
    align-items: center;
}

.premium-text {
    z-index: 2;
}

.premium-text .overline {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.premium-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.premium-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.premium-hero-cta {
    display: flex;
    gap: 1.5rem;
}

/* Image Stack Layout */
.image-stack {
    position: relative;
    padding-bottom: 60px;
}

.stack-primary {
    width: 90%;
    border-radius: 20px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    z-index: 1;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stack-secondary {
    position: absolute;
    bottom: -40px;
    right: 0;
    width: 60%;
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    z-index: 2;
    border: 4px solid var(--bg-surface);
}

/* Floating Content Design */
.premium-article {
    padding: 100px 0;
    background: var(--bg-base);
}

.floating-content {
    max-width: 850px;
    margin: -100px auto 0;
    background: var(--bg-surface);
    padding: clamp(2rem, 6vw, 4rem);
    border-radius: 40px;
    border: 1px solid var(--border);
    position: relative;
    z-index: 10;
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.3);
}

.article-status-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--text-dim);
    font-size: 0.85rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .premium-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .premium-desc {
        margin-inline: auto;
    }

    .premium-hero-cta {
        justify-content: center;
    }

    .image-stack {
        max-width: 600px;
        margin: 40px auto 0;
    }

    .floating-content {
        margin-top: 50px;
        border-radius: 20px;
        margin-inline: 1.5rem;
    }
}

/* ══════════════════════════════════════════════════════
   FINAL PARALLAX CTA
   ══════════════════════════════════════════════════════ */
.parallax-section {
    position: relative;
    padding: clamp(8rem, 15vw, 14rem) 2rem;
    overflow: hidden;
    text-align: center;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.parallax-bg {
    position: absolute;
    top: -40%;
    left: -10%;
    width: 120%;
    height: 180%;
    background-image: linear-gradient(to bottom, rgba(14, 14, 20, 0.5), rgba(14, 14, 20, 0.95)), url('../images/ecommerce-mockup.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    filter: brightness(0.6) contrast(1.1);
    /* Transform handled by JS for smooth parallax */
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {

    .hero-three-canvas,
    .geo-grid,
    .parallax-bg {
        transform: none !important;
        animation: none !important;
    }
}

@media (max-width: 900px) {
    .hero-three-canvas {
        display: none;
    }
}

.parallax-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    background: rgba(22, 22, 31, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: clamp(3rem, 6vw, 5rem);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.parallax-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.parallax-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

.parallax-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.parallax-btn {
    padding: 18px 40px !important;
    font-size: 1.1rem !important;
    border-radius: 50px !important;
}

@media (max-width: 768px) {
    .parallax-content {
        padding: 3rem 1.5rem;
        border-radius: 24px;
    }
}

/* ══════════════════════════════════════════════════════
   PREMIUM V3 REFRESH (Glassmorphism & Modern Art Direction)
   ══════════════════════════════════════════════════════ */

.premium-hero-v2 {
    padding: clamp(10rem, 15vw, 14rem) 0 clamp(6rem, 10vw, 8rem);
    background:
        radial-gradient(circle at 20% 30%, rgba(79, 111, 208, 0.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(122, 154, 232, 0.1), transparent 40%),
        var(--bg-base);
    position: relative;
    overflow: hidden;
}

.premium-hero-v2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9Im5vbmUiIG9wYWNpdHk9IjAuMDQiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxIi8+PC9zdmc+');
    background-size: 40px 40px;
    opacity: 0.2;
    mask-image: linear-gradient(to bottom, white, transparent);
}

.premium-layout-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.premium-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(79, 111, 208, 0.1);
    color: var(--accent);
    border: 1px solid rgba(79, 111, 208, 0.2);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
}

.premium-title-v2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 0.95;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: -3px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.premium-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.6;
    font-weight: 400;
}

.seo-section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dim);
    margin: 2rem 0 1.2rem;
    letter-spacing: -0.5px;
    line-height: 1.4;
}

/* Glassmorphic Article Container */
.article-section-v2 {
    padding: 0 0 100px;
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

/* ── Service Stats Bar ── */
.svc-stat-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(79, 111, 208, 0.06);
    border: 1px solid rgba(79, 111, 208, 0.18);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 0;
}
.svc-stat-item {
    flex: 1;
    text-align: center;
    min-width: 100px;
}
.svc-stat-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 4px;
}
.svc-stat-item span {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.svc-stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
    flex-shrink: 0;
}

/* ── Feature list ── */
.svc-feature-list ul.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 700px) {
    .svc-feature-list ul.feature-list { grid-template-columns: 1fr; }
}
.svc-feature-list ul.feature-list li {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: border-color 0.3s, background 0.3s;
}
.svc-feature-list ul.feature-list li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.svc-feature-list ul.feature-list li:hover {
    border-color: rgba(79,111,208,0.35);
    background: rgba(79,111,208,0.06);
}
.svc-feature-list ul.feature-list li strong {
    color: var(--text-primary);
}

/* ── Process strip ── */
.svc-process-strip {
    margin: 60px 0 48px;
    padding: 40px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 24px;
}
.svc-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
@media (max-width: 880px) {
    .svc-process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .svc-process-grid { grid-template-columns: 1fr; }
}
.svc-step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.svc-step-num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    background: rgba(79, 111, 208, 0.1);
    border: 1px solid rgba(79,111,208,0.25);
    border-radius: 10px;
    padding: 6px 14px;
    margin-bottom: 4px;
}
.svc-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.svc-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.glass-article-card {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(14, 17, 32, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: clamp(2rem, 6vw, 5rem);
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    box-shadow: 0 100px 200px rgba(0, 0, 0, 0.8);
}

.article-body-v2 {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body-v2 h2 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 2.2rem;
    margin: 3rem 0 1.5rem;
    letter-spacing: -0.5px;
}

.article-body-v2 h3 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin: 2.5rem 0 1.2rem;
    letter-spacing: -0.5px;
}

.article-body-v2 p {
    margin-bottom: 1.5rem;
}

.article-body-v2 ul,
.article-body-v2 ol {
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.article-body-v2 li {
    margin-bottom: 1rem;
}

.article-sidebar-v2 {
    border-left: 1px solid var(--border);
    padding-left: 3rem;
}

.sidebar-widget {
    margin-bottom: 3.5rem;
}

.widget-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: none;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.meta-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.meta-info-item .material-icons-outlined {
    color: var(--accent);
    font-size: 20px;
}

.author-widget {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.author-circle {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
}

.author-details strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
}

.author-details span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

@media (max-width: 1024px) {
    .premium-layout-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .premium-subtitle {
        margin: 0 auto;
    }

    .glass-article-card {
        grid-template-columns: 1fr;
        margin: 0 1.5rem;
        padding: 3rem 2rem;
    }

    .article-sidebar-v2 {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 3rem;
        text-align: center;
    }

    .meta-info-item {
        justify-content: center;
    }

    .author-widget {
        justify-content: center;
        text-align: left;
    }
}

/* ── Android Mobile Portfolio Mockup ── */
.mobile-ux-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1c2e 0%, #000 100%);
}

.android-frame {
    width: 210px;
    height: 430px;
    background: #000;
    border: 8px solid #1a1a1a;
    border-radius: 32px;
    position: relative;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Android Punch Hole Camera */
.android-frame::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 20;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.8);
}

.android-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    /* Android Wallpaper feel */
    border-radius: 24px;
}

.android-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

.browser-bar {
    background: #111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


.android-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

/* Chrome/Browser Mockup Tweaks */
.browser-frame {
    background: #0d0d0f;
    border: 1px solid var(--border);
}

/* ── WhatsApp Floating Button ── */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.6);
    color: #fff;
}

@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}


/* -------------------------------------------------------------------
   BLOG ARTICLE TYPOGRAPHY � Rich readability styles
   ------------------------------------------------------------------- */

/* Lead paragraph (first paragraph intro styling) */
.blog-content-rich .article-lead,
.article-body-v2 .article-lead {
    font-size: 1.25rem;
    line-height: 1.85;
    color: var(--text-primary, #e2e8f0);
    font-weight: 400;
    margin-bottom: 2.5rem;
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
}

/* Article body general */
.blog-content-rich {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-muted);
}

.blog-content-rich h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #fff;
    margin: 3rem 0 1.2rem;
    letter-spacing: -0.5px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    line-height: 1.25;
}

.blog-content-rich h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: rgba(255,255,255,0.92);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.blog-content-rich h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin: 2rem 0 0.8rem;
}

.blog-content-rich p {
    margin-bottom: 1.6rem;
}

.blog-content-rich ul,
.blog-content-rich ol {
    margin: 1.5rem 0 2rem;
    padding-left: 0;
    list-style: none;
}

.blog-content-rich ul li,
.blog-content-rich ol li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.9rem;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.blog-content-rich ul li::before {
    content: "?";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.blog-content-rich ol {
    counter-reset: blog-counter;
}

.blog-content-rich ol li::before {
    counter-increment: blog-counter;
    content: counter(blog-counter) ".";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.blog-content-rich strong {
    color: rgba(255,255,255,0.9);
    font-weight: 700;
}

.blog-content-rich a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(79,111,208,0.4);
    transition: text-decoration-color 0.2s;
}

.blog-content-rich a:hover {
    text-decoration-color: var(--accent);
}

/* Content blockquotes */
.blog-content-rich blockquote.article-quote,
.article-body-v2 blockquote.article-quote {
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    background: rgba(79,111,208,0.05);
    border-left: 4px solid var(--accent);
    border-radius: 0 16px 16px 0;
}

.blog-content-rich blockquote.article-quote p,
.article-body-v2 blockquote.article-quote p {
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(255,255,255,0.85);
    margin: 0 0 0.75rem;
    line-height: 1.7;
}

.blog-content-rich blockquote.article-quote cite,
.article-body-v2 blockquote.article-quote cite {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: normal;
    font-weight: 600;
    display: block;
}

/* Code blocks */
.blog-content-rich pre {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.blog-content-rich code {
    background: rgba(79,111,208,0.1);
    color: #7aa3e8;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* About page responsive fixes */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
    }
}

/* Offerings page card hover */
#offerings-grid article:hover {
    border-color: rgba(79,111,208,0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Blog listing improvements */
.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    border-color: rgba(79,111,208,0.25);
}

/* About page mission/vision responsive */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }
}

