/* ==========================================================================
   MAANAK CONSULTANCY - PREMIUM UI REDESIGN SYSTEM
   Ultra-modern, sleek B2B corporate compliance aesthetic
   ========================================================================== */

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #0284c7;
    --accent-light: #38bdf8;
    --success: #10b981;
    --slate-dark: #0f172a;
    --slate-surface: #1e293b;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-soft: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-premium: 0 20px 40px -15px rgba(30, 64, 175, 0.12), 0 0 1px 1px rgba(255, 255, 255, 0.9);
    --shadow-hover: 0 25px 50px -12px rgba(30, 64, 175, 0.22);
}

/* Smooth Scrolling & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Anchor offset for sticky header */
[id] {
    scroll-margin-top: 5rem;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background-color: #fafbfc;
}

/* Custom Selection */
::selection {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 9px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
    border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
}

.glass-panel-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-hover);
}

/* Text Gradients */
.text-gradient-primary {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-dark {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Neutralized Mesh Backgrounds for a more standard corporate look */
.mesh-gradient-hero {
    background-color: #f8fafc;
}

.mesh-gradient-subtle {
    background-color: #ffffff;
}

/* Subtle Animated Shimmer for Badges */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.badge-shimmer {
    background: linear-gradient(90deg, rgba(30,64,175,0.08) 0%, rgba(59,130,246,0.18) 50%, rgba(30,64,175,0.08) 100%);
    background-size: 200% 100%;
    animation: shimmer 4s infinite linear;
}

/* Premium Button with Specular Glow */
.btn-premium {
    position: relative;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.875rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.35);
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-secondary-premium {
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn-secondary-premium:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.08);
}

/* Bento Grid System */
.bento-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}

/* Floating animation refined */
@keyframes floatGentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float-gentle {
    animation: floatGentle 4s ease-in-out infinite;
}

/* Infinite Marquee */
.marquee-wrapper {
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Live Pulse Ring */
.live-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.live-indicator::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    animation: pingIndicator 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.75;
}

@keyframes pingIndicator {
    75%, 100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Service Card Modern */
.service-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-feature-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 20px 45px -10px rgba(30, 64, 175, 0.15);
    transform: translateY(-6px);
}

.service-feature-card:hover .service-icon-box {
    transform: scale(1.1) rotate(3deg);
}

.service-icon-box {
    transition: transform 0.35s ease;
}

/* Accordion Smooth Styles */
.faq-details summary::-webkit-details-marker {
    display: none;
}
.faq-details[open] summary .faq-icon {
    transform: rotate(180deg);
}
.faq-details[open] summary .faq-icon {
    background-color: #eff6ff;
    color: #1e40af;
}

/* Smooth FAQ content reveal */
.faq-details > div {
    animation: faqReveal 0.3s ease-out;
}
@keyframes faqReveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive Pill Navigation */
.nav-pill-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-pill-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: all 0.25s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

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

/* Modern Article Prose & Tables */
.prose h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.prose h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.prose p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.prose ul, .prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #475569;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.prose table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.75rem 0;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.prose table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.prose table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.925rem;
}

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

/* ==========================================================================
   3D STYLING & DEPTH SYSTEM (Next-Gen 3D UI)
   ========================================================================== */

/* 3D Perspective & Preservation */
.perspective-1000 {
    perspective: 1000px;
}
.perspective-1500 {
    perspective: 1500px;
}
.preserve-3d {
    transform-style: preserve-3d;
}

/* Standardized Interactive Card (No 3D) */
.card-3d {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.card-3d:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Standardized Hero Showcase Card (No 3D) */
.hero-3d-card {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-3d-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Standard Badges (No 3D Float) */
.floating-3d-badge-1,
.floating-3d-badge-2 {
    transform: none;
    animation: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@keyframes float3D1 { }
@keyframes float3D2 { }

/* 3D Tactile Metric Tiles */
.stat-3d-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.25rem;
    box-shadow: 
        0 10px 25px -5px rgba(15, 23, 42, 0.05),
        0 8px 16px -6px rgba(30, 64, 175, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-style: preserve-3d;
}

.stat-3d-card:hover {
    transform: translateY(-6px) translateZ(10px);
    box-shadow: 
        0 20px 40px -10px rgba(30, 64, 175, 0.18),
        0 10px 20px -5px rgba(15, 23, 42, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Standard Embossed Icon Container */
.icon-box-3d {
    position: relative;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}

.card-3d:hover .icon-box-3d,
.service-feature-card:hover .icon-box-3d {
    transform: translateY(-2px);
}

/* 3D Button Style */
.btn-3d {
    position: relative;
    background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    font-weight: 700;
    border-radius: 0.875rem;
    border-bottom: 4px solid #172554;
    box-shadow: 0 12px 25px -5px rgba(37, 99, 235, 0.45);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -5px rgba(37, 99, 235, 0.55);
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
}

.btn-3d:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
    box-shadow: 0 6px 15px -3px rgba(37, 99, 235, 0.4);
}

/* Standard Floating Geometry Spheres / Polyhedra in Background (Removed) */
.hero-3d-orb {
    display: none;
}


