/* ==========================================================================
   M SOLUÇÕES INTELIGENTES - PREMIUM STYLESHEET (VANILLA CSS)
   ========================================================================== */

/* --- Design Tokens & Variables --- */
:root {
    /* Color Palette */
    --color-bg-dark: #07070a;
    --color-bg-panel: rgba(14, 14, 18, 0.7);
    --color-bg-card: rgba(20, 20, 25, 0.5);
    --color-primary: #ff6a00;
    --color-primary-rgb: 255, 106, 0;
    --color-primary-hover: #ff8533;
    --color-primary-dark: #cc5500;
    
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-text-light: #cbd5e1;
    
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-glow: rgba(255, 106, 0, 0.25);
    
    --glow-primary: 0 0 30px rgba(255, 106, 0, 0.2);
    --glow-secondary: 0 10px 40px rgba(0, 0, 0, 0.5);

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* --- Base & Reset Rules --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 106, 0, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    font-weight: 400;
    color: var(--color-text-muted);
}

.orange-text {
    color: var(--color-primary);
}

.font-accent {
    font-family: var(--font-display);
}

/* Background Atmosphere Glows */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.18;
}
.bg-glow-1 {
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.8) 0%, rgba(0,0,0,0) 70%);
}
.bg-glow-2 {
    bottom: -100px;
    left: -200px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.6) 0%, rgba(0,0,0,0) 70%);
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- Layout Wrappers --- */
.section-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* --- Common UI Components --- */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 30px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}
.btn-block {
    width: 100%;
}

.btn-filled {
    background: var(--color-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.25);
}
.btn-filled:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(var(--color-primary-rgb), 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-main);
    border: 1.5px solid var(--color-primary);
}
.btn-outline:hover {
    background: rgba(var(--color-primary-rgb), 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.15);
}

.btn-outline-alt {
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}
.btn-outline-alt:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 106, 0, 0.08);
    border: 1px solid rgba(255, 106, 0, 0.2);
    color: var(--color-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.8s infinite ease-in-out;
}

/* Glass Panels */
.glass-panel {
    background: var(--color-bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glow-secondary);
}

.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    transition: var(--transition-smooth);
}

/* Section Common Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}
.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.section-desc-light {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}
.text-center-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(7, 7, 10, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    height: 70px;
    background: rgba(7, 7, 10, 0.9);
    border-bottom-color: rgba(255, 106, 0, 0.15);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text-main);
}

.nav-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-m {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.logo-sub {
    display: flex;
    flex-direction: column;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-text-main);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero-section {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

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

.hero-content {
    z-index: 10;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.glow-text {
    text-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.3);
}

.hero-desc {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 580px;
    color: var(--color-text-light);
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Hero 3D Graphic Area */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.visual-wrapper {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Base hologram circle platform background */
.platform-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.9;
}

.glow-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    z-index: 2;
    pointer-events: none;
    transform: rotateX(70deg);
}

.glow-ring-1 {
    width: 280px;
    height: 280px;
    bottom: 20px;
    box-shadow: 0 0 30px rgba(var(--color-primary-rgb), 0.15), inset 0 0 20px rgba(var(--color-primary-rgb), 0.1);
    animation: glow-pulse 3s infinite alternate ease-in-out;
}

.glow-ring-2 {
    width: 380px;
    height: 380px;
    bottom: -10px;
    border-style: dashed;
    animation: spin 30s linear infinite;
}

.logo-3d-container {
    position: relative;
    width: 280px;
    height: 280px;
    transform-style: preserve-3d;
    /* Tilted at scroll = 0, flat at scroll = 350px */
    transform: rotateX(calc(55deg * (1 - var(--scroll-progress, 0)))) rotateZ(calc(-35deg * (1 - var(--scroll-progress, 0))));
    z-index: 5;
    perspective: 1200px;
    transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.logo-3d-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.2, 1), opacity 0.4s ease, filter 0.4s ease;
}

/* 3D Layers Scroll-linked Styles */
.layer-bottom {
    transform: translateZ(calc(-80px * (1 - var(--scroll-progress, 0))));
    opacity: calc(0.8 * (1 - var(--scroll-progress, 0)));
    filter: drop-shadow(0 0 25px rgba(var(--color-primary-rgb), 0.55)) brightness(0.65) sepia(1) saturate(10) hue-rotate(-12deg);
}

.layer-middle {
    transform: translateZ(0px);
    opacity: calc(0.35 * (1 - var(--scroll-progress, 0)));
    filter: brightness(2) contrast(1.1) opacity(0.65);
}

.layer-top {
    transform: translateZ(calc(80px * (1 - var(--scroll-progress, 0))));
    opacity: 1;
    filter: drop-shadow(0 calc(15px * (1 - var(--scroll-progress, 0)) + 5px) calc(30px * (1 - var(--scroll-progress, 0)) + 15px) rgba(0, 0, 0, calc(0.55 * (1 - var(--scroll-progress, 0)) + 0.3)))
            drop-shadow(0 0 calc(25px * var(--scroll-progress, 0)) rgba(var(--color-primary-rgb), calc(0.7 * var(--scroll-progress, 0))));
}

.logo-3d-shadow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) rotateX(90deg) scale(calc(0.85 + (0.15 * var(--scroll-progress, 0))));
    width: 160px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(var(--color-primary-rgb), 0.4) 0%, rgba(0,0,0,0) 75%);
    z-index: 1;
    pointer-events: none;
    opacity: calc(0.45 + (0.4 * var(--scroll-progress, 0)));
    transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.2, 1), opacity 0.4s ease;
}

/* --- Services Grid Section --- */
.services-section {
    padding: 5rem 0;
    position: relative;
}

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

.service-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 2.25rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(var(--color-primary-rgb), 0.08), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-glow);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(var(--color-primary-rgb), 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 106, 0, 0.08);
    border: 1px solid rgba(255, 106, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .card-icon-box {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.4);
    transform: scale(1.05);
}

.card-icon-box i {
    width: 24px;
    height: 24px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--color-text-main);
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

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

.card-link i {
    width: 14px;
    height: 14px;
    transition: var(--transition-fast);
}

.service-card:hover .card-link {
    color: var(--color-text-main);
}

.service-card:hover .card-link i {
    transform: translateX(4px);
    color: var(--color-primary);
}

/* --- Stats Bar Section --- */
.stats-section {
    padding: 4rem 0;
    position: relative;
}

.stats-bar {
    background: rgba(10, 10, 14, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-icon {
    color: var(--color-primary);
    opacity: 0.85;
}

.stat-icon i {
    width: 32px;
    height: 32px;
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --- About Us Section --- */
.about-section {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-panel {
    border-color: rgba(255, 106, 0, 0.1);
}

.pillars-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pillars-list li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.pillar-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    background: rgba(255, 106, 0, 0.08);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 106, 0, 0.2);
    flex-shrink: 0;
}

.pillar-content h5 {
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin-bottom: 0.35rem;
}

.pillar-content p {
    font-size: 0.9rem;
}

/* --- Solutions Detail Section --- */
.solutions-detail-section {
    padding: 6rem 0;
    position: relative;
}

.tabs-container {
    margin-top: 3rem;
}

.tabs-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 0.5rem;
    border-radius: 40px;
    max-width: 750px;
    margin: 0 auto 3rem auto;
    backdrop-filter: blur(8px);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    color: var(--color-text-muted);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
}

.tab-btn i {
    width: 18px;
    height: 18px;
}

.tab-btn:hover {
    color: var(--color-text-main);
}

.tab-btn.active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.25);
}

.tab-panels-wrapper {
    min-height: 420px;
}

.tab-panel {
    display: none;
    animation: fade-in-up 0.5s ease forwards;
}

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

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

.panel-info h3 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--color-text-main);
}

.panel-info p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

.panel-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.panel-list li i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.panel-media {
    position: relative;
}

.media-box-accent {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.15) 0%, rgba(0,0,0,0) 100%);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.glass-subpanel {
    background: rgba(14, 14, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--glow-secondary);
}

.subpanel-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    gap: 0.4rem;
}

.subpanel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.subpanel-body {
    padding: 2rem;
}

/* Tab 1 Chart Mockup */
.metrics-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.bar-chart-mock {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}
.mock-bar {
    width: 35px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}
.bar-active {
    background: linear-gradient(to top, var(--color-primary-dark), var(--color-primary));
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.4);
}
.stat-highlight {
    display: flex;
    flex-direction: column;
}
.highlight-val {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
}
.highlight-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Tab 2 Funnel Mockup */
.funnel-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.funnel-layer {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    color: var(--color-text-muted);
}
.funnel-active {
    background: rgba(var(--color-primary-rgb), 0.1);
    border-color: rgba(var(--color-primary-rgb), 0.3);
    color: var(--color-primary);
}

/* Tab 3 Legal Calendar Mockup */
.legal-visual {
    display: flex;
    flex-direction: column;
}
.calendar-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.cal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}
.cal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
}
.cal-item.done {
    opacity: 0.6;
}
.cal-item .bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}
.bullet.green { background: #27c93f; }
.bullet.orange { background: var(--color-primary); }
.bullet.gray { background: var(--color-text-muted); }
.cal-item .tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

/* Tab 4 Radial Chart Mockup */
.compliance-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.radial-chart-mock {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.radial-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.03);
    border-top-color: var(--color-primary);
    border-right-color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    transform: rotate(45deg);
}
.radial-text {
    position: absolute;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.rad-val {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
}
.rad-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

/* --- Cases Section --- */
.cases-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, rgba(10, 10, 14, 0.6) 50%, var(--color-bg-dark) 100%);
}

.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 1rem;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.case-card {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    box-shadow: var(--glow-secondary);
    min-height: 380px;
}

.case-info {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.case-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.case-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

.case-metrics {
    display: flex;
    gap: 2.5rem;
}

.metric-box {
    display: flex;
    flex-direction: column;
}

.metric-num {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.metric-lbl {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.3;
}

.case-image {
    background-size: cover;
    background-position: center;
}

.case-img-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.25;
}

.case-img-placeholder i {
    width: 100px;
    height: 100px;
}

/* Carousel controls */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.35);
}

.carousel-btn i {
    width: 18px;
    height: 18px;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dots .dot:hover {
    background: rgba(255, 255, 255, 0.35);
}

.carousel-dots .dot.active {
    background: var(--color-primary);
    width: 20px;
    border-radius: 4px;
}

/* --- Blog Section --- */
.blog-section {
    padding: 6rem 0;
}

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

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

.blog-post-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-glow);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(var(--color-primary-rgb), 0.1);
}

.post-img {
    position: relative;
    background-size: cover;
    background-position: center;
}

.post-img-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    transition: var(--transition-smooth);
}

.post-img-overlay i {
    width: 44px;
    height: 44px;
}

.blog-post-card:hover .post-img-overlay {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
}

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

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.post-cat {
    letter-spacing: 0.05em;
}

.post-date {
    color: var(--color-text-muted);
}

.post-title {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.post-title a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: var(--transition-fast);
}

.post-title a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-light);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.post-more-btn i {
    width: 14px;
    height: 14px;
    transition: var(--transition-fast);
}

.post-more-btn:hover {
    color: var(--color-primary);
}

.blog-post-card:hover .post-more-btn i {
    transform: translateX(4px);
}

/* --- Contact Section --- */
.contact-section {
    padding: 6rem 0;
    position: relative;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.detail-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 106, 0, 0.08);
    border: 1px solid rgba(255, 106, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.detail-icon i {
    width: 22px;
    height: 22px;
}

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

.detail-text span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.detail-text strong {
    font-size: 1.1rem;
    color: var(--color-text-main);
    font-weight: 600;
}

.contact-form-card {
    border-color: rgba(255, 106, 0, 0.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), 0 0 30px rgba(var(--color-primary-rgb), 0.05);
    position: relative;
    overflow: hidden;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

.input-wrapper input, .input-wrapper select, .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group textarea {
    padding: 0.85rem 1rem;
}

.input-wrapper input:focus, .input-wrapper select:focus, .form-group textarea:focus {
    border-color: var(--color-primary);
    background: rgba(255, 106, 0, 0.02);
    box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.15);
}

.input-wrapper input:focus + i, .input-wrapper select:focus + i {
    color: var(--color-primary);
}

/* Custom styling for standard select arrow */
.input-wrapper select {
    appearance: none;
    -webkit-appearance: none;
}

.error-msg {
    font-size: 0.75rem;
    color: #ff5f56;
    margin-top: 0.35rem;
    display: none;
}

.form-group.invalid input, .form-group.invalid select, .form-group.invalid textarea {
    border-color: #ff5f56;
    background: rgba(255, 95, 86, 0.02);
}

.form-group.invalid .error-msg {
    display: block;
}

/* Success View inside card */
.form-success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
    animation: fade-in 0.5s ease forwards;
}

.success-icon {
    color: #27c93f;
    margin-bottom: 1.5rem;
}

.success-icon i {
    width: 64px;
    height: 64px;
}

.form-success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.form-success-message p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 320px;
}

/* --- Footer --- */
.footer {
    background: #040406;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(2, 0.85fr) 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

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

.footer-brand-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.25);
}

.footer-socials a i {
    width: 16px;
    height: 16px;
}

.footer-links-col h4 {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    color: var(--color-text-main);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-newsletter {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.footer-newsletter input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 3rem 0.75rem 1rem;
    border-radius: 20px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast);
}

.footer-newsletter input:focus {
    border-color: var(--color-primary);
}

.footer-newsletter button {
    position: absolute;
    right: 4px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.footer-newsletter button:hover {
    background: var(--color-primary-hover);
}

.footer-newsletter button i {
    width: 14px;
    height: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.5rem 0;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

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

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

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


/* --- Animations & Keyframes --- */
@keyframes float {
    0% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-16px) rotateY(3deg); }
    100% { transform: translateY(0px) rotateY(0deg); }
}

@keyframes shadow-scale {
    0% { transform: rotateX(70deg) scale(1); opacity: 0.8; }
    50% { transform: rotateX(70deg) scale(0.85); opacity: 0.45; }
    100% { transform: rotateX(70deg) scale(1); opacity: 0.8; }
}

@keyframes pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(var(--color-primary-rgb), 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0); }
}

@keyframes glow-pulse {
    0% { box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.1), inset 0 0 10px rgba(var(--color-primary-rgb), 0.05); }
    100% { box-shadow: 0 0 35px rgba(var(--color-primary-rgb), 0.35), inset 0 0 25px rgba(var(--color-primary-rgb), 0.2); }
}

@keyframes spin {
    0% { transform: rotateX(70deg) rotate(0deg); }
    100% { transform: rotateX(70deg) rotate(360deg); }
}

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

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll Reveal Classes */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive Media Queries --- */

/* Large Tablets & Medium Screen Desktops (Under 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem;
    }
    
    .stat-item:nth-child(2) {
        border-right: none;
    }
    .stat-item:nth-child(even) {
        justify-content: flex-end;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-visual {
        order: 2;
    }
    
    .panel-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .panel-media {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .case-card {
        grid-template-columns: 1fr;
    }
    .case-info {
        padding: 2.5rem;
    }
    .case-image {
        height: 250px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Small Tablets & Mobile Devices (Under 768px) */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .mobile-toggle-btn {
        display: block;
        z-index: 1100;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(8, 8, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 106, 0, 0.15);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 4rem 2.5rem;
        gap: 2.5rem;
        z-index: 1050;
        transform: translateX(100%);
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        transform: translateX(0);
        box-shadow: -10px 0 30px rgba(0,0,0,0.6);
    }
    
    .nav-link {
        font-size: 1.15rem;
        width: 100%;
    }
    
    .header-actions .btn-outline {
        display: none; /* Hide header CTA button on mobile to save space */
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-visual {
        order: -1; /* Place 3D logo visual first on mobile screens */
    }
    .visual-wrapper {
        width: 320px;
        height: 320px;
    }
    .hero-floating-logo {
        width: 200px;
    }
    .logo-shadow {
        bottom: -60px;
        width: 100px;
    }
    .glow-ring-1 { width: 220px; height: 220px; }
    .glow-ring-2 { width: 300px; height: 300px; }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tabs-list {
        flex-wrap: wrap;
        border-radius: 16px;
    }
    .tab-btn {
        width: calc(50% - 0.5rem);
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Extra Small Phones (Under 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-bar {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .stat-item {
        border-right: none !important;
        justify-content: center !important;
    }
    
    .tabs-list {
        background: transparent;
        border: none;
        gap: 0.5rem;
    }
    .tab-btn {
        width: 100%;
        border: 1px solid var(--color-border);
    }
    .tab-btn.active {
        border-color: var(--color-primary);
    }
    
    .case-metrics {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
}
