/**
 * Intarva - Custom Animation & Enhancement Stylesheet
 * Naming convention: .intarva-* for all custom classes
 */

/* =====================================================
 * IMPORT: Modern Font
 * ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =====================================================
 * GLOBAL — font & antialiasing
 * ===================================================== */
/* Global box-sizing fix */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* buffer for the fixed header pill */
}

body {
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
}


/* =====================================================
 * FIX 1: HEADER — Force sticky, force visible nav links
 * ===================================================== */

/* Force the outer <header> template part to be sticky */
header.wp-block-template-part,
.wp-site-blocks > header {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    width: 100%;
}

/* Force nav link text to be white (visible on dark bg) */
.superbthemes-navigation-three .wp-block-navigation a,
.superbthemes-navigation-three .wp-block-navigation-item__content,
.superbthemes-navigation-three .wp-block-navigation .wp-block-navigation-item > a,
.superbthemes-navigation-three .wp-block-navigation__container > li > a {
    color: #ffffff !important;
    opacity: 1 !important;
}

.superbthemes-navigation-three .wp-block-navigation a:hover,
.superbthemes-navigation-three .wp-block-navigation-item__content:hover {
    color: #93c5fd !important;
}

/* Header wrapper transition */
.superbthemes-navigation-three {
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.superbthemes-navigation-three.intarva-header-scrolled {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Header pill base (before scroll) */
.superbthemes-navigation-three .c {
    background: rgba(15, 15, 30, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(99, 179, 237, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Header scrolled state — deeper glass, full-width */
.superbthemes-navigation-three.intarva-header-scrolled .c {
    background: rgba(8, 8, 20, 0.88) !important;
    backdrop-filter: blur(20px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5) !important;
    border: none !important;
    border-bottom: 1px solid rgba(99, 179, 237, 0.2) !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Nav link hover underline */
.superbthemes-navigation-three .wp-block-navigation-item__content {
    position: relative !important;
    transition: color 0.3s ease !important;
}

.superbthemes-navigation-three .wp-block-navigation-item__content::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #63b3ed, #a78bfa);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.superbthemes-navigation-three .wp-block-navigation-item__content:hover::after {
    width: 100%;
}


/* =====================================================
 * FIX 2: HERO — Canvas covers FULL viewport width,
 *         not just the constrained content column
 * ===================================================== */
.intarva-hero-wrapper {
    position: relative;
    overflow: visible; /* allow canvas to bleed out */
}

/* Canvas breaks out of constrained layout */
#intarva-circuit-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;        /* full parent width */
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Hero content stays above canvas */
.intarva-hero-wrapper > * {
    position: relative;
    z-index: 2;
}

/* Canvas sits below content */
.intarva-hero-wrapper > canvas {
    z-index: 0 !important;
    position: absolute !important;
}


/* =====================================================
 * FIX 3: COLORFUL BACKGROUND — Floating gradient orbs
 * These CSS-only orbs float behind the hero.
 * Colors match the Intarva purple/blue/cyan palette.
 * ===================================================== */
.intarva-hero-wrapper::before,
.intarva-hero-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: intarva-orb-drift 12s ease-in-out infinite alternate;
}

/* Left orb — deep purple */
.intarva-hero-wrapper::before {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, rgba(109, 40, 217, 0.1) 60%, transparent 100%);
    top: -100px;
    left: -80px;
    animation-duration: 14s;
}

/* Right orb — electric blue/cyan */
.intarva-hero-wrapper::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, rgba(37, 99, 235, 0.15) 60%, transparent 100%);
    bottom: -60px;
    right: -60px;
    animation-duration: 10s;
    animation-delay: -4s;
}

/* Extra center orb injected via JS canvas wrapper */
.intarva-orb-center {
    position: absolute;
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 100%);
    filter: blur(60px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: intarva-orb-pulse 8s ease-in-out infinite;
}

@keyframes intarva-orb-drift {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -20px) scale(1.08); }
    66%  { transform: translate(-15px, 25px) scale(0.95); }
    100% { transform: translate(20px, 10px) scale(1.05); }
}

@keyframes intarva-orb-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

/* Right orb's drift is mirrored */
.intarva-hero-wrapper::after {
    animation-name: intarva-orb-drift-r;
}

@keyframes intarva-orb-drift-r {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(-25px, 20px) scale(1.1); }
    66%  { transform: translate(15px, -30px) scale(0.92); }
    100% { transform: translate(-10px, 15px) scale(1.06); }
}


/* =====================================================
 * HERO TEXT — entrance animations & typography styles
 * ===================================================== */
.intarva-pill-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 100px;
    color: #c4b5fd !important;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.2);
    margin-bottom: 24px !important;
}

.intarva-gradient-heading {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: min(12vw, 110px) !important;
    line-height: 1 !important;
    letter-spacing: -0.02em;
    margin-bottom: 16px !important;
    
    /* Text Gradient */
    background: linear-gradient(135deg, #ffffff 30%, #a78bfa 70%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
    
    /* Subtle drop shadow behind the text specifically */
    filter: drop-shadow(0 4px 24px rgba(124, 58, 237, 0.4));
}

.intarva-subtitle {
    font-size: clamp(20px, 3vw, 28px) !important;
    font-weight: 500 !important;
    color: #f1f5f9 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em;
}

@keyframes intarva-fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.intarva-hero-wrapper h1 {
    animation: intarva-fade-up 0.9s ease both;
    animation-delay: 0.3s;
}
.intarva-hero-wrapper p {
    animation: intarva-fade-up 0.9s ease both;
    animation-delay: 0.5s;
}
.intarva-hero-wrapper .wp-block-buttons {
    animation: intarva-fade-up 0.9s ease both;
    animation-delay: 0.75s;
}


/* =====================================================
 * CTA BUTTONS — Pulse + Float
 * ===================================================== */
@keyframes intarva-button-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.6); }
    70%  { box-shadow: 0 0 0 14px rgba(124, 58, 237, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}
@keyframes intarva-float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

.intarva-hero-wrapper .wp-block-button__link {
    animation: intarva-float 4s ease-in-out infinite,
               intarva-button-pulse 2.5s ease-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.intarva-hero-wrapper .wp-block-button__link:hover {
    animation: none;
    transform: scale(1.05) translateY(-3px) !important;
    box-shadow: 0 0 32px rgba(124, 58, 237, 0.7) !important;
}

.wp-block-button__link {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.wp-block-button__link:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4) !important;
}


/* =====================================================
 * SECTION SCROLL REVEAL
 * ===================================================== */
.intarva-animate-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.intarva-animate-section.intarva-visible {
    opacity: 1;
    transform: translateY(0);
}
.intarva-animate-section .wp-block-column:nth-child(1) { transition-delay: 0s; }
.intarva-animate-section .wp-block-column:nth-child(2) { transition-delay: 0.12s; }
.intarva-animate-section .wp-block-column:nth-child(3) { transition-delay: 0.24s; }


/* =====================================================
 * FEATURE CARDS — Global Glassmorphism + Hover
 * ===================================================== */
.column-parent-border-radius .wp-block-column {
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid rgba(249, 115, 22, 0.1); /* orange subtle border */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.column-parent-border-radius .wp-block-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.25), 0 0 0 1px rgba(249, 115, 22, 0.3) !important;
    border-color: rgba(249, 115, 22, 0.4) !important;
}

/* Make primary headings modern tags globally */
h3.wp-block-heading.has-primary-color {
    color: #f97316 !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 13px !important;
    font-weight: 700;
    margin-bottom: 12px;
}


/* =====================================================
 * FOOTER
 * ===================================================== */
.superbthemes-footer-001 {
    border-top: 1px solid rgba(124, 58, 237, 0.2) !important;
    position: relative;
}
.superbthemes-footer-001::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.6), rgba(6, 182, 212, 0.4), transparent);
}


/* =====================================================
 * "WHAT IS INTARVA?" SECTION — Glass Card
 * ===================================================== */
.intarva-glass-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(249, 115, 22, 0.15); /* orange tint */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 64px 40px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2); /* Reduced shadow */
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.intarva-glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.08), transparent 50%); /* subtle orange */
    pointer-events: none;
    z-index: 0;
}

.intarva-glass-card > * {
    position: relative;
    z-index: 1;
}

.intarva-section-badge {
    color: #f97316; /* Theme Orange */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.intarva-section-title {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.intarva-section-desc {
    font-size: 18px;
    color: #94a3b8;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.intarva-section-desc strong {
    color: #f8fafc;
    font-weight: 600;
}

/* =====================================================
 * CARD LISTS — Custom Checkmarks
 * ===================================================== */
ul.intarva-feature-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 16px 0 0 0 !important;
    text-align: left;
}
ul.intarva-feature-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
}
ul.intarva-feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: #f97316;
    font-weight: 700;
}

/* =====================================================
 * GETTING STARTED — Number Styles
 * ===================================================== */
.intarva-step-number {
    font-size: 80px;
    font-weight: 900;
    color: rgba(249, 115, 22, 0.12);
    margin-bottom: -32px;
    line-height: 1;
    text-align: left;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}

.intarva-step-card h3 {
    position: relative;
    z-index: 1;
    margin-top: 24px !important;
    font-size: 20px !important;
    letter-spacing: -0.02em;
}

/* =============================================================
 * 12. DOCUMENTATION PAGE STYLES
 * ============================================================= */
.intarva-docs-wrapper {
    background: #011222;
    min-height: 100vh;
    padding-top: 0 !important;
    margin-top: -20px; /* Pull up to meet header */
}

.docs-container {
    display: grid;
    grid-template-columns: 320px 1fr 280px; /* Triple column */
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: stretch;
}

.docs-sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px); /* Lock to viewport */
    overflow-y: auto; /* Allow independent scroll if long */
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.01);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.docs-search {
    margin-bottom: 30px;
    padding: 0;
}

.docs-search input {
    width: 100%;
    box-sizing: border-box; /* Force it to stay inside */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    text-align: center; /* Center aligned */
}

.docs-search input:focus {
    border-color: rgba(249, 115, 22, 0.5);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.1);
}

.docs-sidebar::-webkit-scrollbar {
    width: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.2);
    border-radius: 10px;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section h4 {
    color: #f97316; /* Primary */
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    font-weight: 700;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section ul li {
    margin-bottom: 8px;
}

.sidebar-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
}

.sidebar-section ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.docs-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 60px 100px 60px;
    font-family: 'Poppins', sans-serif;
}

.docs-main-title {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.docs-lead-paragraph {
    font-size: 20px; /* Increased readability */
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 48px;
}

.docs-deep-dive h2 {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 28px;
    color: #ffffff;
    margin: 60px 0 24px;
}

.docs-deep-dive p {
    font-size: 17px;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 24px;
}

/* Bento Grid */
.docs-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.bento-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s ease;
}

.bento-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-5px);
}

.bento-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.bento-card h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 12px;
}

.bento-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0;
}

/* Info Box */
.docs-info-box {
    background: rgba(249, 115, 22, 0.05);
    border-left: 4px solid #f97316;
    padding: 24px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    margin: 32px 0;
}

/* Pagination */
.docs-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-link {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.page-link:hover:not(.disabled) {
    color: #f97316;
}

.page-link.disabled {
    opacity: 0.3;
    cursor: default;
}

/* Technical Grid */
.docs-technical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

.tech-card {
    background: #020b14;
    border: 1px solid rgba(255,255,255,0.03);
    padding: 24px;
    border-radius: 16px;
}

.tech-card h4 {
    color: #f97316;
    margin-bottom: 12px;
    font-size: 16px;
}

.docs-toc {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px); /* Lock to viewport */
    overflow-y: auto; /* Allow independent scroll if long */
    padding: 40px 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.docs-toc h4 {
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-weight: 700;
}

.docs-toc nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-toc nav ul li {
    margin-bottom: 12px;
}

.docs-toc nav ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    display: block;
    line-height: 1.4;
}

.docs-toc nav ul li a.active {
    color: #f97316;
    border-left: 2px solid #f97316;
    padding-left: 12px;
    margin-left: -12px;
}

.docs-toc nav ul li a:hover {
    color: #ffffff;
}

/* Hide Scrollbars completely */
.docs-sidebar::-webkit-scrollbar,
.docs-toc::-webkit-scrollbar {
    display: none;
}
.docs-sidebar, .docs-toc {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.docs-article {
    animation: fadeIn 0.8s ease-out;
}

.docs-grid-intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.intro-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.intro-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-5px);
}

.intro-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #ffffff;
}

.intro-card p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* Hide promotional footer sections on docs page */
.intarva-docs-wrapper ~ .wp-block-template-part .intarva-footer-cta-box,
.intarva-docs-wrapper ~ .wp-block-template-part .intarva-contact-section {
    display: none !important;
}

.intarva-docs-wrapper ~ .wp-block-template-part .intarva-hero-footer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.intarva-docs-wrapper ~ .wp-block-template-part .superbthemes-footer-001 {
    padding-top: 0 !important;
}

/* Mobile Responsive Docs */
@media (max-width: 1024px) {
    .docs-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .docs-sidebar {
        display: none; /* Hide for now, can implement mobile menu later */
    }
}

/* =====================================================
 * PROJECT GRID — 6 Item Grid System & Tags
 * ===================================================== */
.intarva-project-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 32px !important;
    margin-top: 40px !important;
}

.intarva-proj-col {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    padding: 32px 24px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    margin: 0 !important;
    position: relative;
    z-index: 1;
}

.intarva-proj-col:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    z-index: 2;
}

.intarva-proj-col h3 {
    color: #ffffff !important;
    font-size: 22px !important;
    margin-bottom: 12px !important;
}

.intarva-proj-col p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 24px !important;
}

.intarva-proj-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    border-radius: 8px;
    font-size: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
}

/* =====================================================
 * GETTING STARTED — Timeline Layout
 * ===================================================== */
.intarva-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding-top: 40px;
    gap: 40px;
    margin-top: 24px;
}
.intarva-timeline::before {
    content: '';
    position: absolute;
    top: 64px; /* Align with middle of dots */
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.5), transparent);
    z-index: 0;
}
.intarva-timeline-step {
    flex: 1;
    position: relative;
    z-index: 1;
    text-align: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.intarva-timeline-step:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.3);
}
.intarva-step-dot {
    width: 48px;
    height: 48px;
    background: #0f172a;
    border: 2px solid #f97316;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -48px auto 24px auto; /* Pull out of card */
    color: #f97316;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.4);
    transition: transform 0.3s ease, background 0.3s ease;
}
.intarva-timeline-step:hover .intarva-step-dot {
    transform: scale(1.15);
    background: rgba(249, 115, 22, 0.1);
}

/* =====================================================
 * GLOBAL SECTION SPACING NORMALIZE
 * Removes bloated WP core inline spacings
 * ===================================================== */
.intarva-animate-section {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

/* =====================================================
 * BENTO BOX GRID — 'Why Intarva' Layout
 * ===================================================== */
.intarva-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 420px)); /* Decreased width */
    justify-content: center; 
    max-width: 1200px; 
    margin: 40px auto !important; 
    gap: 64px; 
    width: 100%;
}

@media (max-width: 1024px) {
    .intarva-bento-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
}

/* Homepage specific 3-column row */
.intarva-home-bento {
    max-width: 1400px !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important; /* Slightly smaller gap to fit 3 in a row comfortably */
}

@media (max-width: 1200px) {
    .intarva-home-bento {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    }
}
.intarva-bento-card {
    position: relative;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 48px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 380px;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.3s ease;
    transform: translateY(var(--parallax-y, 0px));
}
.intarva-bento-card:hover {
    transform: translateY(calc(var(--parallax-y, 0px) - 8px)) !important;
    border-color: rgba(249, 115, 22, 0.4);
}
.bento-watermark {
    position: absolute;
    top: -24px;
    right: -24px;
    width: 180px;
    height: 180px;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    transform: rotate(15deg);
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.intarva-bento-card:hover .bento-watermark {
    opacity: 0.35;
    transform: rotate(0deg) scale(1.15);
}
.bento-watermark svg {
    width: 100%;
    height: 100%;
}
.bento-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.intarva-bento-card:hover .bento-glow {
    opacity: 0.3;
    transform: scale(1.2);
}
.bento-glow.glow-orange { background: #f97316; }
.bento-glow.glow-purple { background: #a855f7; }
.bento-glow.glow-cyan { background: #06b6d4; }

.bento-content {
    position: relative;
    z-index: 1;
}
.bento-content h3 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 700;
}
.bento-content p {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.6;
    max-width: 80%;
}

/* =====================================================
 * PRICING SECTION - HORIZONTAL CARDS
 * ===================================================== */
.intarva-pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1000px !important;
    margin: 0 auto;
}
.horizontal-card {
    position: relative;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.6s ease, border-color 0.3s ease;
    transform: translateY(var(--parallax-y, 0px));
}
.horizontal-card:hover {
    transform: translateY(calc(var(--parallax-y, 0px) - 8px)) !important;
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.horizontal-card.pro-card {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(168, 85, 247, 0.2);
}
.horizontal-card.pro-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
}
.pricing-info { flex: 1; max-width: 300px; }
.pricing-info h3 { font-size: 32px; color: #fff; font-weight: 700; margin-bottom: 12px; }
.pricing-info p { color: #94a3b8; font-size: 15px; line-height: 1.5; margin-bottom: 24px; }
.pricing-price { font-size: 48px; font-weight: 800; color: #fff; display: flex; align-items: baseline; }
.pricing-price span { font-size: 20px; color: #94a3b8; font-weight: 500; margin: 0 4px; }
.pricing-features { flex: 2; padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.08); }
.pricing-badge {
    position: absolute;
    top: -12px;
    right: 48px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}
.pricing-action { flex: 1; display: flex; justify-content: center; align-items: center; }
.intarva-pricing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 200px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 40px rgba(168, 85, 247, 0.15);
    animation: intarva-btn-glow 2.5s ease-in-out infinite;
}
.intarva-pricing-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.7), 0 0 60px rgba(236, 72, 153, 0.3);
}
@keyframes intarva-btn-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 40px rgba(168, 85, 247, 0.15); }
    50% { box-shadow: 0 0 30px rgba(236, 72, 153, 0.6), 0 0 60px rgba(168, 85, 247, 0.25); }
}
.btn-disabled { background: rgba(255, 255, 255, 0.05); color: #64748b; border: 1px solid rgba(255,255,255,0.1); pointer-events: none; }

/* =====================================================
 * CUSTOM NEON SEPARATORS FOR SECTION DIVIDERS
 * Replaces standard grey hr lines with modern glowing gradients
 * ===================================================== */
hr.wp-block-separator {
    display: block !important;
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg, rgba(15,23,42,0) 0%, rgba(168, 85, 247, 0.5) 50%, rgba(15,23,42,0) 100%) !important;
    margin: 64px auto !important;
    width: 80% !important;
    max-width: 800px !important;
    opacity: 1 !important;
    position: relative;
    overflow: visible !important;
    z-index: 0 !important;
}

hr.wp-block-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0) 0%, rgba(168, 85, 247, 1) 50%, rgba(168, 85, 247, 0) 100%);
    box-shadow: 0 0 16px 3px rgba(168, 85, 247, 0.4);
    z-index: 1;
}

/* =====================================================
 * RESPONSIVE
 * ===================================================== */
@media only screen and (max-width: 1024px) {
    /* Normalize overall section paddings for tablet/mobile */
    .intarva-animate-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    
    .horizontal-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 32px;
    }
    .pricing-info, .pricing-features, .pricing-action {
        flex: auto; max-width: 100%; border-left: none; padding-left: 0; width: 100%;
    }
    .pricing-features { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; }
    .intarva-pricing-btn { max-width: 100%; }
    .intarva-bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-content p {
        max-width: 100%;
    }
    /* FORCE EXACT HEADER PILL DIMENSIONS & ALIGNMENTS ON MOBILE */
    .c.intarva-header-pill {
        display: flex !important;
        height: 64px !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 24px !important;
        min-height: 64px !important;
        max-height: 64px !important;
    }
    .c.intarva-header-pill .wp-block-columns {
        display: flex !important;
        height: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }
    .superbthemes-navigation-three-columns-logo { 
        flex-basis: auto !important; 
        display: flex !important; 
        align-items: center !important; 
        margin: 0 !important; 
        padding: 0 !important;
        height: 100% !important;
    }

    /* Obliterate native FSE typography margins pushing text off-center */
    .superbthemes-navigation-three-columns-logo * {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        line-height: 1 !important;
    }

    .superbthemes-navigation-three-columns-button { 
        flex-basis: auto !important; 
        display: flex !important; 
        align-items: center !important; 
        justify-content: flex-end !important;
        margin: 0 !important; 
        padding: 0 !important;
        height: 100% !important;
    }

    /* Prevent FSE * + * block-gap from triggering on the hidden download button's sibling */
    .superbthemes-navigation-three-columns-button * {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .superbthemes-navigation-three-columns-nav { display: none !important; }
    .intarva-desktop-download-btn { display: none !important; }
    .intarva-mobile-hamburger-btn { 
        display: flex !important; 
        align-items: center !important; 
        justify-content: flex-end !important;
        height: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Fix Timeline stacking on Mobile */
    .intarva-timeline {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
        padding-top: 0 !important;
    }
    .intarva-timeline::before {
        display: none !important; /* Hide horizontal connecting line */
    }
    .intarva-step-card {
        width: 100% !important;
        max-width: 100% !important;
        text-align: left !important;
        transform: none !important; /* disable parallax layout squish on mobile */
    }
    .intarva-step-dot {
        margin: 0 0 16px 0 !important;
    }
}
@media only screen and (max-width: 599px) {
    /* Normalize overall section paddings for mobile */
    .intarva-animate-section {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .intarva-hero-wrapper h1 { font-size: 48px !important; }
    .intarva-hero-wrapper::before { width: 260px; height: 260px; }
    .intarva-hero-wrapper::after  { width: 200px; height: 200px; }

    /* Footer Hero Responsive Fixes */
    .intarva-hero-footer {
        padding: 40px 16px 40px 16px !important;
    }
    .intarva-footer-cta-box {
        padding: 40px 24px !important;
        margin-bottom: 40px !important;
        border-radius: 24px !important;
    }
    .intarva-footer-heading {
        font-size: 32px !important;
        line-height: 1.1 !important;
    }
    .intarva-footer-cta-box p {
        font-size: 16px !important;
        margin-bottom: 32px !important;
    }
    .intarva-os-installers {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .intarva-os-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 16px !important;
    }

    /* Contact Section Mobile Support */
    .intarva-contact-section {
        padding-top: 48px !important;
        padding-bottom: 24px !important;
    }
    .intarva-contact-section > div {
        flex-direction: column !important;
        gap: 16px !important;
        margin-bottom: 24px !important;
        width: 100% !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }
    .intarva-contact-section > div > div {
        width: 100% !important;
        padding: 16px 16px !important;
        box-sizing: border-box !important;
    }
    .intarva-contact-section > div > div a {
        font-size: 16px !important;
        word-break: break-all !important;
    }
}

/* =====================================================
 * CUSTOM MOBILE NAVIGATION SYSTEM
 * Bypasses FSE logic entirely
 * ===================================================== */
.intarva-mobile-hamburger-col {
    display: none !important; /* hidden on desktop */
}


.intarva-custom-mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #0f172a;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(16px);
}

.intarva-custom-mobile-menu.menu-active {
    opacity: 1;
    pointer-events: auto;
}

.intarva-mobile-close-btn {
    position: absolute;
    top: 32px; right: 32px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 12px;
}
.intarva-mobile-close-btn:hover {
    color: #f97316;
}

.intarva-custom-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
}

.intarva-custom-mobile-links a {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* =====================================================
 * INTARVA OS SELECTION DROPDOWN
 * ===================================================== */
.intarva-download-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.intarva-download-dropdown-wrapper.z-elevate {
    z-index: 9999 !important;
}

.intarva-dropdown-trigger {
    cursor: pointer;
}

.intarva-os-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0f172a;
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 12px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(168, 85, 247, 0.2);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.intarva-os-dropdown.is-active {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    z-index: 99999 !important;
}

.intarva-os-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.intarva-os-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =====================================================
 * GLOBAL REGISTRATION MODAL
 * ===================================================== */
.intarva-registration-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intarva-registration-modal-overlay.is-active {
    display: flex;
    opacity: 1;
}

.intarva-registration-modal {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 24px 48px rgba(0,0,0,0.6);
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.intarva-registration-modal-overlay.is-active .intarva-registration-modal {
    transform: translateY(0);
}

.intarva-reg-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 24px;
}

.intarva-reg-close:hover {
    color: #fff;
}

.intarva-registration-modal h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    padding-right: 32px; /* prevent overlap with close button */
    line-height: 1.3;
}

.intarva-registration-modal p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.intarva-reg-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.intarva-reg-form input {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.intarva-reg-form input:focus {
    outline: none;
    border-color: #a855f7;
}

.intarva-reg-submit {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.2s ease;
}

.intarva-reg-submit:hover {
    transform: translateY(-2px);
}


.intarva-custom-mobile-links a:hover {
    color: #f97316;
}

/* =====================================================
 * PREMIUM DOCS CODE BLOCKS
 * ===================================================== */
.docs-code-block {
    background: #01080f;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}

.docs-code-block pre {
    margin: 0;
    color: #06b6d4;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
}

.docs-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.docs-copy-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.docs-copy-btn.copied {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

/* =====================================================
 * TABBED CODE SYSTEM
 * ===================================================== */
.docs-tabbed-code {
    margin: 32px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: rgba(1, 8, 15, 0.5);
    overflow: hidden;
}

.code-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 12px;
}

.tab-btn {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: #f97316;
    border-bottom-color: #f97316;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content .docs-code-block {
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* =====================================================
 * DOCS TABLES & GLOSSARIES
 * ===================================================== */
.docs-glossary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.docs-glossary-table th {
    text-align: left;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-glossary-table td {
    padding: 16px 20px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    line-height: 1.5;
}

.docs-glossary-table tr:last-child td {
    border-bottom: none;
}

.docs-glossary-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

.docs-glossary-table code {
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
}


/* =============================================================
   13. MOBILE RESPONSIVENESS FOR DOCUMENTATION
   ============================================================= */

@media only screen and (max-width: 1280px) {
    .docs-container {
        grid-template-columns: 280px 1fr;
    }
    .docs-toc {
        display: none;
    }
}

@media only screen and (max-width: 1024px) {
    .docs-container {
        grid-template-columns: 250px 1fr;
    }
    .docs-sidebar {
        padding: 30px 20px;
    }
    .docs-content {
        padding: 40px 30px 80px 30px;
    }
}

/* Technical Grid System */
.docs-technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.tech-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.tech-card:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-4px);
}

.tech-card h4 {
    color: #f97316;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 700;
}

.tech-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
}

@media only screen and (max-width: 991px) {
    .docs-container {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        display: none; /* Hide sidebar by default on mobile */
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        z-index: 10000;
        background: #011222;
        border-right: 1px solid rgba(255,255,255,0.1);
        transition: left 0.3s ease;
        display: block; /* Make it block but off-screen */
    }
    .docs-sidebar.is-active {
        left: 0;
    }
    .docs-content {
        padding: 40px 20px 80px 20px;
    }
    /* Refined Mobile Docs Styling */
    .intarva-docs-wrapper {
        margin-top: 0; 
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
    }

    /* THE NUCLEAR FIX: Prevent any element from pushing past viewport */
    .intarva-docs-wrapper * {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .docs-container {
        display: block !important;
        width: 100% !important;
    }

    .docs-content {
        padding: 10px 15px 60px 15px !important; 
        width: 100% !important;
        max-width: 100% !important;
    }

    .docs-premium-content {
        padding: 30px 15px !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    .docs-main-title {
        font-size: 26px !important;
        line-height: 1.2;
        margin-top: 5px;
        letter-spacing: -0.02em;
        color: #ffffff;
    }

    .docs-deep-dive h2, 
    .docs-premium-content h2 {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }

    .docs-bento-grid,
    .docs-technical-grid,
    .docs-template-comparison {
        grid-template-columns: 1fr !important; /* Force single column on mobile */
        gap: 16px !important;
    }

    /* Horizontal Scroll for Tables on Mobile */
    .docs-glossary-table { 
        display: block !important; 
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap; /* Prevent text wrapping to maintain table structure */
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 12px;
    }

    .docs-glossary-table th, 
    .docs-glossary-table td { 
        min-width: 150px; /* Ensure columns have enough room to be readable while scrolling */
        padding: 12px 16px !important;
        font-size: 13px !important;
        white-space: normal; /* Allow internal text wrapping */
    }

    .docs-glossary-table thead tr { 
        position: static;
        top: auto;
        left: auto;
    }
    
    .docs-glossary-table tr { 
        display: table-row !important;
        border: none !important;
        margin-bottom: 0;
        border-radius: 0;
        background: transparent !important;
        padding: 0;
    }
    
    .docs-glossary-table td:before { 
        display: none !important;
    }

    .docs-mobile-toggle-inline {
        margin-top: 5px;
        margin-bottom: 15px;
        display: flex;
        width: auto;
    }
    
    .docs-mobile-toggle {
        background: rgba(249, 115, 22, 0.1);
        border: 1px solid rgba(249, 115, 22, 0.3);
        color: #f97316;
        padding: 6px 16px;
        border-radius: 100px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* Fix code blocks & pre tags */
    pre, code {
        white-space: pre-wrap !important;
        word-break: break-all !important;
    }

    .docs-mobile-toggle:active {
        background: rgba(249, 115, 22, 0.2);
        transform: scale(0.97);
    }

    /* Fix header overflow & alignment */
    .intarva-header-pill {
        padding-left: 20px !important; /* Align with content padding */
        padding-right: 20px !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        width: calc(100% - 20px) !important;
        box-sizing: border-box !important;
    }

    .docs-sidebar-close {
        display: block;
        background: transparent;
        border: none;
        color: #94a3b8;
        padding: 0;
        margin-bottom: 20px;
        cursor: pointer;
    }
}

@media only screen and (min-width: 992px) {
    .docs-mobile-toggle-inline, .docs-sidebar-close {
        display: none;
    }
}

@media only screen and (max-width: 600px) {
    .docs-main-title {
        font-size: 32px;
    }
    .docs-lead-paragraph {
        font-size: 16px;
        margin-bottom: 32px;
    }
    .bento-card {
        padding: 24px;
    }
    .docs-pagination {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        text-align: center;
    }
    .docs-info-box {
        padding: 16px;
        font-size: 14px;
    }
    .docs-code-block {
        padding: 16px;
    }
    .docs-premium-content {
        padding: 40px 20px;
        border-radius: 0; /* Full width on mobile looks better */
    }
}

