/* ==========================================================================
   DEFOX TECHNOLOGIES - PREMIUM GLOBAL CSS STYLESHEET
   Aesthetic: Deep Obsidian, Cyber Neon Orange Accents, Sleek Glassmorphism
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #09090b;
    --bg-deep: #030303;
    --bg-card: rgba(18, 18, 22, 0.65);
    --bg-card-hover: rgba(26, 26, 32, 0.85);
    --bg-nav: rgba(9, 9, 11, 0.8);
    
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    --primary: #ff6b00;
    --primary-rgb: 255, 107, 0;
    --primary-light: #ff8833;
    --primary-dark: #cc5200;
    --accent: #f59e0b;
    
    --border: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 107, 0, 0.25);
    
    --glass-blur: 16px;
    --shadow-glow: 0 0 30px rgba(255, 107, 0, 0.12);
    
    /* Layout & Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. RESET & BASE RULES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

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

ul {
    list-style: none;
}

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

input, textarea, select {
    font-family: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 0, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 0, 0.5);
}

/* ==========================================================================
   2. UTILITIES & GLOBAL LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 7.5rem 0;
}

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

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 9999px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 107, 0, 0.2);
    margin-bottom: 1.5rem;
}

/* Section Header */
.section-header {
    max-w: 640px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff 40%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Background Glowing Orbs */
.ambient-glow {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.12;
    transition: var(--transition);
}

.glow-1 {
    top: -10vw;
    right: -10vw;
    background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 70%);
}

.glow-2 {
    bottom: 20vw;
    left: -10vw;
    background: radial-gradient(circle, var(--accent) 0%, rgba(0,0,0,0) 70%);
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.25);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 0, 0.4);
}

.btn-primary-nav,
.nav-links a.btn-primary-nav {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8533 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 0.65rem 1.5rem !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 107, 0, 0.5) !important;
    margin-left: 0.5rem;
    text-decoration: none !important;
}

.btn-primary-nav::after,
.nav-links a.btn-primary-nav::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.btn-primary-nav:hover,
.nav-links a.btn-primary-nav:hover {
    background: linear-gradient(135deg, #ff8533 0%, var(--primary) 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5) !important;
    border-color: var(--primary) !important;
}

.btn-primary-nav.active,
.nav-links a.btn-primary-nav.active {
    background: linear-gradient(135deg, #e66000 0%, var(--primary) 100%) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.65) !important;
    transform: translateY(-1px) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   4. NAVIGATION (HEADER)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-scrolled {
    padding: 0.5rem 0;
    background: rgba(3, 3, 3, 0.9);
    border-bottom-color: rgba(255, 107, 0, 0.15);
}

.header-container {
    height: 4.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.logo:hover .logo-img {
    transform: scale(1.03);
    filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.35));
}

.logo-accent {
    color: var(--primary);
}

.logo-dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    height: 100%;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

/* Nav Dropdown Menus */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 1.5rem 0;
}

.nav-item-dropdown > a::after {
    display: none !important;
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
    opacity: 0.7;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--primary);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(10px);
    background: rgba(12, 12, 14, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.85rem;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 107, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 500;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

/* Invisible hover bridge to prevent premature mouseleave */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.nav-dropdown-menu.grid-2 {
    min-width: 420px;
    grid-template-columns: 1fr 1fr;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem !important;
    border-radius: 8px;
    color: var(--text-secondary) !important;
    font-size: 0.85rem !important;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-item::after {
    display: none !important;
}

.nav-dropdown-item:hover {
    background: rgba(255, 107, 0, 0.1);
    color: #fff !important;
    transform: translateX(4px);
}

.nav-dropdown-item .item-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown-item:hover .item-dot {
    opacity: 1;
    transform: scale(1.4);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-nav-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-deep);
    border-left: 1px solid var(--border);
    z-index: 200;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
    right: 0;
}

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

.drawer-close {
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-links a {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.drawer-links a:hover {
    color: var(--primary);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: 8rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-cols: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4.25rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-title span {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

/* Hero Tech Art / Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-globe {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 107, 0, 0.15);
    position: relative;
    animation: rotateGlobe 30s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-globe::before,
.visual-globe::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 0, 0.05);
}

.visual-globe::before {
    width: 120%;
    height: 120%;
    border-style: dotted;
    animation: rotateGlobe 20s linear infinite reverse;
}

.visual-globe::after {
    width: 75%;
    height: 75%;
    animation: pulseGlobe 4s ease-in-out infinite alternate;
}

.visual-core {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, rgba(255, 107, 0, 0.2) 60%, rgba(0,0,0,0) 100%);
    box-shadow: 0 0 50px rgba(255, 107, 0, 0.4);
    position: absolute;
    z-index: 1;
}

/* ==========================================================================
   6. SERVICES INDEX PAGE
   ========================================================================== */

/* --- Hero --- */
.services-hero {
    padding-top: 10rem;
    padding-bottom: 4rem;
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.03) 0%, rgba(0,0,0,0) 60%);
}

.services-hero-content {
    max-width: 720px;
    margin: 0 auto 3.5rem auto;
}

.services-hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.services-hero-title span {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.services-hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.services-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.services-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Service Cards Grid --- */
.services-list {
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.service-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.service-card-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.service-card-arrow {
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
    opacity: 0;
}

.service-card:hover .service-card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.service-card-headline {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.service-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.service-card-tech .tech-tag {
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-link span {
    transition: var(--transition);
}

.service-card:hover .service-link span {
    transform: translateX(4px);
}

/* --- Why Choose Defox --- */
.services-why {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.services-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.services-why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.services-why-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.services-why-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.services-why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.65rem;
}

.services-why-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* --- CTA Section --- */
.services-cta {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.06) 0%, rgba(9, 9, 11, 0.95) 100%);
    border-top: 1px solid var(--border);
    padding: 6rem 0;
}

.services-cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.services-cta-title {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.services-cta-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.services-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   7. SERVICE DETAIL PAGE
   ========================================================================== */

/* --- Hero --- */
.svc-detail-hero {
    padding-top: 10rem;
    padding-bottom: 3rem;
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.03) 0%, rgba(0,0,0,0) 60%);
}

.svc-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.svc-breadcrumb a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.svc-breadcrumb a:hover {
    color: var(--primary);
}

.svc-breadcrumb-sep {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.svc-breadcrumb-current {
    color: var(--primary);
}

.svc-detail-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.svc-detail-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.svc-detail-headline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.svc-detail-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.svc-tech-tag {
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.2);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
}

/* --- Sidebar Card --- */
.svc-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.svc-sidebar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.svc-sidebar-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.svc-sidebar-trust {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.svc-sidebar-trust p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

/* --- Problem & Solution --- */
.svc-detail-problem {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.svc-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.svc-section-block {
    margin-bottom: 3rem;
}

.svc-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.svc-section-block h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.svc-section-block p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
}

.svc-impact-block {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: 16px;
    padding: 2rem;
}

.svc-solution-block {
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: 16px;
    padding: 2rem;
}

/* Sticky sidebar */
.svc-sticky-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: sticky;
    top: 6rem;
}

.svc-sticky-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.svc-facts-list {
    list-style: none;
    padding: 0;
}

.svc-facts-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.svc-facts-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.svc-facts-list li strong {
    color: var(--text-primary);
}

/* --- How It Works --- */
.svc-detail-process {
    background: var(--bg-dark);
}

.svc-process-steps {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.svc-process-steps::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(255, 107, 0, 0.1) 100%);
}

.svc-process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.svc-process-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary);
    flex-shrink: 0;
    z-index: 2;
}

.svc-process-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
    transition: var(--transition);
}

.svc-process-content:hover {
    border-color: var(--border-hover);
}

.svc-process-content h3 {
    font-size: 1.05rem;
    margin: 0;
    color: var(--text-primary);
}

/* --- Benefits --- */
.svc-detail-benefits {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.svc-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.svc-benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.svc-benefit-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.svc-benefit-check {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.svc-benefit-card p {
    color: var(--text-secondary);
    font-size: 1.0rem;
    line-height: 1.6;
    margin: 0;
}

/* --- FAQs --- */
.svc-detail-faqs {
    background: var(--bg-dark);
}

.svc-faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.svc-faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}

.svc-faq-item:hover {
    border-color: var(--border-hover);
}

.svc-faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.svc-faq-arrow {
    font-size: 1.25rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.svc-faq-item.active .svc-faq-arrow {
    transform: rotate(45deg);
}

.svc-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-faq-item.active .svc-faq-answer {
    max-height: 300px;
}

.svc-faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 1.0rem;
    line-height: 1.7;
    margin: 0;
}

/* --- CTA --- */
.svc-detail-cta {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.06) 0%, rgba(9, 9, 11, 0.95) 100%);
    border-top: 1px solid var(--border);
    padding: 6rem 0;
}

.svc-detail-cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.svc-detail-cta-inner h2 {
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.svc-detail-cta-inner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.svc-detail-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.75rem 2.25rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.85rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-link span {
    transition: var(--transition);
}

.service-card:hover .service-link span {
    transform: translateX(4px);
}

/* ==========================================================================
   7B. SOLUTIONS INDEX PAGE
   ========================================================================== */

/* --- Hero --- */
.solutions-hero {
    padding-top: 10rem;
    padding-bottom: 4rem;
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.03) 0%, rgba(0,0,0,0) 60%);
}

.solutions-hero-content {
    max-width: 720px;
    margin: 0 auto 3.5rem auto;
}

.solutions-hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.solutions-hero-title span {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.solutions-hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.solutions-hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.solutions-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.solutions-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Solutions Grid --- */
.solutions-list {
    background: var(--bg-dark);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.solution-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.solution-card-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.15);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
}

.solution-card-arrow {
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
    opacity: 0;
}

.solution-card:hover .solution-card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.65rem;
}

.solution-card-headline {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.85rem;
}

.solution-card-problem {
    color: var(--text-secondary);
    font-size: 1.0rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.solution-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.solution-card-tech .tech-tag {
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
}

/* --- How We Approach --- */
.solutions-approach {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.solutions-approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.solutions-approach-step {
    text-align: center;
    padding: 1.5rem;
}

.solutions-approach-num {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 0.75rem;
}

.solutions-approach-step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.65rem;
}

.solutions-approach-step p {
    color: var(--text-secondary);
    font-size: 1.0rem;
    line-height: 1.65;
}

/* --- CTA Section --- */
.solutions-cta {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.06) 0%, rgba(9, 9, 11, 0.95) 100%);
    border-top: 1px solid var(--border);
    padding: 6rem 0;
}

.solutions-cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.solutions-cta-title {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.solutions-cta-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.solutions-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   7C. KNOWLEDGE NODE DETAIL PAGES (Solutions, Industries, Technologies, KB)
   ========================================================================== */

/* --- Hero (Full-width centered) --- */
.kn-hero {
    padding-top: 10rem;
    padding-bottom: 4rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.04) 0%, rgba(0,0,0,0) 60%);
}

.kn-breadcrumb {
    margin-bottom: 2.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.kn-breadcrumb a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.kn-breadcrumb a:hover {
    color: var(--primary);
}

.kn-breadcrumb-sep {
    margin: 0 0.5rem;
    opacity: 0.4;
}

.kn-breadcrumb-current {
    color: var(--primary);
    font-weight: 500;
}

.kn-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.kn-hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 1rem 0 1.5rem;
    letter-spacing: -0.03em;
}

.kn-hero-tech {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kn-tech-pill {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 107, 0, 0.06);
    border: 1px solid rgba(255, 107, 0, 0.15);
    border-radius: 20px;
    color: var(--text-primary);
}

/* --- Challenge Section (Problem + Impact) --- */
.kn-challenge {
    background: var(--bg-dark);
}

.kn-challenge-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.kn-challenge-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kn-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.kn-card-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.kn-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.kn-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.kn-card--problem {
    border-left: 3px solid var(--primary);
}

.kn-card--problem .kn-card-label {
    color: var(--primary);
}

.kn-card--impact {
    border-left: 3px solid #ef4444;
    background: rgba(239, 68, 68, 0.03);
}

.kn-card--impact .kn-card-label {
    color: #ef4444;
}

/* Sticky sidebar */
.kn-challenge-aside {
    position: sticky;
    top: 120px;
}

.kn-sticky-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.kn-sticky-card h4 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.kn-facts-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.kn-facts-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.kn-facts-list li:last-child {
    border-bottom: none;
}

.kn-facts-list li strong {
    color: var(--text-primary);
}

.kn-cta-btn {
    width: 100%;
    text-align: center;
    display: block;
}

/* --- Solution Section (Full-width centered) --- */
.kn-solution {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.kn-solution-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.kn-solution-header {
    margin-bottom: 1.5rem;
}

.kn-solution-header .kn-card-label {
    color: #22c55e;
}

.kn-solution-header h2 {
    font-size: 2rem;
}

.kn-solution-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- Process Pipeline (Horizontal flow) --- */
.kn-process {
    background: var(--bg-dark);
}

.kn-process-pipeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    padding: 1rem 0;
}

.kn-process-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 160px;
    position: relative;
}

.kn-process-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: rgba(255, 107, 0, 0.08);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.kn-process-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 160px;
    line-height: 1.4;
}

.kn-process-line {
    position: absolute;
    top: 24px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 2px;
    background: var(--border);
    z-index: 1;
}

/* --- Benefits (Alternating rows) --- */
.kn-benefits {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.kn-benefits-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kn-benefit-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
}

.kn-benefit-row:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.kn-benefit-row--reverse {
    flex-direction: row-reverse;
}

.kn-benefit-num {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    opacity: 0.35;
    flex-shrink: 0;
    width: 48px;
    text-align: center;
}

.kn-benefit-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* --- Tech Stack (Centered pill flow) --- */
.kn-stack {
    background: var(--bg-dark);
}

.kn-stack-flow {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto;
}

.kn-stack-tag {
    padding: 0.6rem 1.25rem;
    font-size: 1.0rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    transition: var(--transition);
}

.kn-stack-tag:hover {
    border-color: rgba(255, 107, 0, 0.25);
    color: var(--primary);
}

/* --- FAQs (Accordion) --- */
.kn-faqs {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
}

.kn-faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kn-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.kn-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-heading);
    transition: var(--transition);
}

.kn-faq-question:hover {
    color: var(--primary);
}

.kn-faq-arrow {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 1rem;
}

.kn-faq-item.active .kn-faq-arrow {
    transform: rotate(45deg);
}

.kn-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.kn-faq-item.active .kn-faq-answer {
    max-height: 500px;
}

.kn-faq-answer p {
    padding: 0 1.5rem 1.25rem;
    font-size: 1.0rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- CTA Section --- */
.kn-cta {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.06) 0%, rgba(9, 9, 11, 0.95) 100%);
    border-top: 1px solid var(--border);
    padding: 6rem 0;
}

.kn-cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.kn-cta-title {
    font-size: 2.5rem;
    line-height: 1.15;
    margin: 1rem 0;
}

.kn-cta-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.kn-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   7D. TECH TAGS & SHARED COMPONENTS
   ========================================================================== */
.tech-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   8. PORTFOLIO GRID & DETAILS (INTERACTIVE FILTERS)
   ========================================================================== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.25);
}

.portfolio-grid {
    display: grid;
    grid-template-cols: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.portfolio-card.hide {
    display: none;
}

.portfolio-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background-color: #121214;
}

.portfolio-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img-container img {
    transform: scale(1.05);
}

.portfolio-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-card-client {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.portfolio-card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.portfolio-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Portfolio Case Study view */
.case-study-hero {
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.04) 0%, rgba(0,0,0,0) 100%);
    padding: 10rem 0 5rem 0;
    border-bottom: 1px solid var(--border);
}

.case-study-meta-grid {
    display: grid;
    grid-template-cols: repeat(4, 1fr);
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3.5rem;
}

.meta-item h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.meta-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

.case-study-detail-grid {
    display: grid;
    grid-template-cols: 1.2fr 0.8fr;
    gap: 4rem;
}

.case-study-section {
    margin-bottom: 3rem;
}

.case-study-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.case-study-section p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.case-study-image-large {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16/9;
}

.case-study-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   9. FAQ & INTERACTIVE AI SEARCH DESK (AEO / GEO FOCUS)
   ========================================================================== */
.ai-desk-container {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, rgba(9, 9, 11, 0.95) 100%);
    border: 1px solid var(--border-hover);
    border-radius: 24px;
    padding: 3.5rem;
    margin-bottom: 5rem;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.ai-desk-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.ai-desk-header h3 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.ai-desk-header p {
    color: var(--text-secondary);
}

.ai-search-bar {
    display: flex;
    background: rgba(3, 3, 3, 0.6);
    border: 1px solid var(--border);
    padding: 0.6rem 0.6rem 0.6rem 1.5rem;
    border-radius: 16px;
    margin: 0 auto 2rem auto;
    max-width: 680px;
    align-items: center;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.ai-search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.15), inset 0 2px 8px rgba(0,0,0,0.5);
}

.ai-search-input {
    flex-grow: 1;
    font-size: 1.05rem;
    padding: 0.5rem 0;
}

.ai-search-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.ai-search-btn:hover {
    background: var(--primary-light);
}

.ai-desk-suggestions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.suggestion-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 0.45rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.suggestion-chip:hover {
    background: rgba(255, 107, 0, 0.08);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* AI Terminal response */
.ai-response-box {
    margin: 2.5rem auto 0 auto;
    max-width: 760px;
    background: #020203;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 2rem;
    display: none; /* Controlled via JS */
}

.ai-response-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ai-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-badge-active::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--primary);
    animation: pulseGlobe 1.5s ease-in-out infinite alternate;
}

.ai-response-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-primary);
    min-height: 4rem;
}

/* General FAQ Accordion list */
.faq-accordion-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-accordion-item:hover {
    border-color: var(--border-hover);
}

.faq-accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-accordion-header h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.faq-arrow {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-accordion-item.active .faq-arrow {
    transform: rotate(45deg);
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(3, 3, 3, 0.2);
}

.faq-accordion-content-inner {
    padding: 0 2rem 1.75rem 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid transparent;
}

.faq-accordion-item.active .faq-accordion-content {
    max-height: 300px; /* Bounded for animation */
}

/* ==========================================================================
   10. BLOG LIST & INSIGHT ARTICLE VIEWS
   ========================================================================== */
.blog-layout {
    display: grid;
    grid-template-cols: 1.3fr 0.7fr;
    gap: 4rem;
}

.blog-grid {
    display: grid;
    grid-template-cols: repeat(2, 1fr);
    gap: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.blog-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.blog-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #111;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.04);
}

.blog-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta-dot {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.blog-card h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Pagination container */
.pagination-wrapper {
    margin-top: 3rem;
}

/* Laravel Default Pagination styling override to look premium */
.pagination-wrapper nav {
    display: flex;
    justify-content: center;
}

.pagination-wrapper .relative {
    background: none !important;
    border: none !important;
}

/* Article view */
.article-header {
    text-align: center;
    max-width: 800px;
    margin: 8rem auto 3rem auto;
}

.article-header-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.author-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 700;
}

.article-title {
    font-size: 3.25rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.article-cover {
    max-width: 1000px;
    margin: 0 auto 4rem auto;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 21/9;
    border: 1px solid var(--border);
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

/* Styling Markdown Content rendered dynamically */
.rich-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.rich-content p {
    margin-bottom: 1.75rem;
}

.rich-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.25rem 0;
    color: var(--text-primary);
}

.rich-content h3 {
    font-size: 1.5rem;
    margin: 2.25rem 0 1rem 0;
}

.rich-content ul, 
.rich-content ol {
    margin-bottom: 1.75rem;
    padding-left: 2rem;
}

.rich-content li {
    margin-bottom: 0.75rem;
}

.rich-content blockquote {
    border-left: 4px solid var(--primary);
    background: rgba(255, 107, 0, 0.03);
    padding: 1.5rem 2rem;
    font-style: italic;
    border-radius: 0 12px 12px 0;
    margin: 2.5rem 0;
}

/* ==========================================================================
   11. CONTACT & LEADS FORM
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-cols: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: start;
}

.contact-info-panel h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.contact-info-panel p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.contact-method-card {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.method-icon {
    font-size: 1.75rem;
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.2);
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.method-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* Form Styling (Interactive Floating labels) */
.contact-form-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(3, 3, 3, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(3, 3, 3, 0.7);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.12);
}

.form-label {
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition);
}

/* Floating Label Animation */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -0.65rem;
    left: 0.75rem;
    font-size: 0.75rem;
    background: var(--bg-dark);
    padding: 0 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

textarea.form-input {
    min-height: 140px;
    resize: vertical;
}

/* Feedback Alerts */
.alert {
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.error-message {
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: block;
}

/* ==========================================================================
   12. ABOUT PAGE
   ========================================================================== */

/* --- Hero --- */
.about-hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.03) 0%, rgba(0,0,0,0) 60%);
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.about-hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.about-hero-title span {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-hero-desc--muted {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.about-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.about-stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.about-stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.about-stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Our Story --- */
.about-story {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-section-title {
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.about-section-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.about-story-visual {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.about-visual-card:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
}

.about-visual-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.about-visual-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.about-visual-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* --- Core Values --- */
.about-values {
    background: var(--bg-dark);
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.about-value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.25rem;
    transition: var(--transition);
}

.about-value-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.about-value-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.about-value-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* --- Our Process --- */
.about-process {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-process-timeline {
    position: relative;
    padding-top: 2rem;
}

.about-process-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 20%, var(--primary) 80%, transparent 100%);
    opacity: 0.3;
}

.about-process-steps {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.about-process-step {
    text-align: center;
    padding: 1rem 0.5rem;
    position: relative;
}

.about-step-marker {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.about-process-step:hover .about-step-marker {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
    transform: scale(1.1);
}

.about-process-step h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.about-process-step p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* --- Technology Stack --- */
.about-tech {
    background: var(--bg-dark);
}

.about-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-tech-category h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.about-tech-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.about-tech-tag:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(255, 107, 0, 0.05);
}

/* --- Compliance & Standards --- */
.about-compliance {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-compliance-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.about-compliance-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    text-align: center;
    transition: var(--transition);
    min-width: 160px;
}

.about-compliance-badge:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.about-compliance-icon {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.about-compliance-badge span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- Achievements Showcase --- */
.about-achievements {
    background: var(--bg-dark);
}

.about-achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.about-achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.about-achievement-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.about-achievement-card:hover::before {
    opacity: 1;
}

.about-achievement-number {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    display: inline;
}

.about-achievement-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: inline;
    opacity: 0.7;
}

.about-achievement-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin: 0.75rem 0 0.5rem 0;
}

.about-achievement-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.55;
}

/* --- CTA Section --- */
.about-cta {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.06) 0%, rgba(9, 9, 11, 0.95) 100%);
    border-top: 1px solid var(--border);
    padding: 6rem 0;
}

.about-cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.about-cta-title {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.about-cta-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.about-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.stat-grid {
    display: grid;
    grid-template-cols: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.main-footer {
    background: #030304;
    border-top: 1px solid var(--border);
}

/* --- Tier 1: Newsletter --- */
.footer-newsletter {
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 0;
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.newsletter-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.newsletter-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.newsletter-form {
    flex-shrink: 0;
}

.newsletter-input-group {
    display: flex;
    background: rgba(3, 3, 3, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.35rem 0.35rem 0.35rem 1.25rem;
    align-items: center;
    transition: var(--transition);
}

.newsletter-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.1);
}

.newsletter-input-group input {
    flex-grow: 1;
    min-width: 260px;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    color: var(--text-primary);
}

.newsletter-input-group input::placeholder {
    color: var(--text-muted);
}

.newsletter-input-group .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
}

/* --- Tier 2: Main Footer Grid --- */
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 3rem;
    padding: 5rem 0 4rem 0;
}

.footer-brand-col .logo {
    margin-bottom: 1.25rem;
    display: inline-block;
}

.footer-brand-col .logo-img {
    height: 34px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.footer-contact-details {
    margin-bottom: 1.75rem;
}

.footer-contact-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    color: var(--primary);
    font-size: 1rem;
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.65rem;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

/* Link Columns */
.footer-links-col h3 {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}

.footer-links-col h3.footer-col-group-title {
    margin-top: 2rem;
}

.footer-links-col ul li {
    margin-bottom: 0.6rem;
}

.footer-links-col ul li a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: inline-block;
    transition: var(--transition);
}

.footer-links-col ul li a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

/* --- Tier 3: Bottom Bar --- */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.75rem 0;
}

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

.footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-trust {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* Custom Terminal & Config System Overrides */
.terminal-tab {
    opacity: 0.7;
    position: relative;
}
.terminal-tab:hover {
    opacity: 1;
}
.terminal-tab.active {
    opacity: 1;
    color: var(--primary) !important;
}
.terminal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.85rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}
input[type="range"]::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
}
#blueprint-tags .tech-tag {
    animation: pulseGlobe 1s ease-in-out alternate;
}

#industry-content-panel,
#process-description-box,
#testimonial-box {
    transition: opacity 0.2s ease-in-out;
}

.process-node-btn:hover {
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* Systems Architect Blueprint Styles */
.blueprint-menu-item {
    background: rgba(10, 10, 12, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 4px solid rgba(255, 107, 0, 0.2);
    border-radius: 8px;
    padding: 1.25rem 1.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blueprint-menu-item:hover {
    background: rgba(15, 15, 18, 0.9);
    border-color: rgba(255, 107, 0, 0.3);
    border-left-color: var(--primary);
    transform: translateX(6px);
}

.blueprint-menu-item.active {
    background: rgba(255, 107, 0, 0.04);
    border-color: var(--primary);
    border-left-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.08);
}

.menu-level {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.menu-status {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid rgba(255, 107, 0, 0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.blueprint-menu-item h4 {
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

#blueprint-diagnostic-screen {
    transition: opacity 0.2s ease-in-out;
}

/* ==========================================================================
   14. KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes rotateGlobe {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlobe {
    0% { transform: scale(0.96); opacity: 0.8; }
    100% { transform: scale(1.04); opacity: 1; }
}

/* ==========================================================================
   15. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-grid,
    .portfolio-grid,
    .contact-grid,
    .about-hero-grid,
    .case-study-detail-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        padding-top: 7rem;
        min-height: auto;
        padding-bottom: 5rem;
    }
    
    .hero-title {
        font-size: 3.25rem;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .newsletter-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .newsletter-input-group {
        width: 100%;
    }

    .newsletter-input-group input {
        min-width: 0;
    }

    .about-hero-grid,
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .about-process-steps {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

    .services-hero-title {
        font-size: 2.75rem;
    }

    .services-hero-stats {
        gap: 2.5rem;
    }

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

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

    .svc-detail-hero-grid,
    .svc-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    /* Solutions page responsive */
    .solutions-hero-title {
        font-size: 2.75rem;
    }

    .solutions-hero-stats {
        gap: 2.5rem;
    }

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

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

    /* Knowledge show pages responsive */
    .kn-hero-title {
        font-size: 2.75rem;
    }

    .kn-challenge-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .kn-challenge-aside {
        position: static;
    }

    .kn-process-pipeline {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .kn-process-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .services-grid,
    .portfolio-grid,
    .blog-grid {
        grid-template-cols: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .ai-desk-container,
    .contact-form-box {
        padding: 2rem 1.5rem;
    }

    .newsletter-inner {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .newsletter-input-group {
        flex-direction: column;
        padding: 0.75rem;
    }

    .newsletter-input-group input {
        min-width: 0;
        width: 100%;
        text-align: center;
    }

    .newsletter-input-group .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

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

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

    .about-hero-title {
        font-size: 2.5rem;
    }

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

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

    .about-process-steps {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .about-process-line {
        display: none;
    }

    .about-process-step {
        display: grid;
        grid-template-columns: 48px 1fr;
        text-align: left;
        gap: 0 1rem;
        padding: 0.75rem 0;
    }

    .about-step-marker {
        margin: 0;
    }

    .about-process-step h3,
    .about-process-step p {
        grid-column: 2;
    }

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

    .about-compliance-grid {
        gap: 1rem;
    }

    .about-compliance-badge {
        padding: 1.25rem 1.5rem;
        min-width: 120px;
    }

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

    .about-cta-title {
        font-size: 2rem;
    }

    .about-cta-actions {
        flex-direction: column;
    }

    .services-hero-title {
        font-size: 2.25rem;
    }

    .services-hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .services-stat {
        min-width: 40%;
    }

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

    .services-why-grid {
        grid-template-columns: 1fr;
    }

    .services-cta-actions {
        flex-direction: column;
    }

    .svc-detail-title {
        font-size: 2.25rem;
    }

    .svc-benefits-grid {
        grid-template-columns: 1fr;
    }

    .svc-detail-cta-inner h2 {
        font-size: 2rem;
    }

    .svc-detail-cta-actions {
        flex-direction: column;
    }

    /* Solutions page responsive */
    .solutions-hero-title {
        font-size: 2.25rem;
    }

    .solutions-hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .solutions-stat {
        min-width: 40%;
    }

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

    .solutions-approach-grid {
        grid-template-columns: 1fr;
    }

    .solutions-cta-title {
        font-size: 2rem;
    }

    .solutions-cta-actions {
        flex-direction: column;
    }

    /* Knowledge show pages responsive */
    .kn-hero-title {
        font-size: 2.25rem;
    }

    .kn-hero-tech {
        gap: 0.4rem;
    }

    .kn-process-pipeline {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .kn-process-node {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        min-width: 0;
    }

    .kn-process-num {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .kn-process-label {
        max-width: none;
    }

    .kn-benefit-row,
    .kn-benefit-row--reverse {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .kn-stack-flow {
        gap: 0.5rem;
    }

    .kn-stack-tag {
        padding: 0.4rem 0.9rem;
        font-size: 0.85rem;
    }

    .kn-cta-title {
        font-size: 2rem;
    }

    .kn-cta-actions {
        flex-direction: column;
    }
}
