/* ==============================================================
   SUCALI LAB PVT. LTD. - MASTER NEUMORPHIC DESIGN SYSTEM
   Modern 3D Animated UI / UX & Responsive Styling (Light & Dark)
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

/* Dynamic CSS Variable Defaults */
:root {
    --theme-primary: #00b4d8;
    --theme-secondary: #0077b6;
    --theme-primary-rgb: 0, 180, 216;
    --theme-secondary-rgb: 0, 119, 182;
    --theme-bg-base: #f0f4f8;
    --theme-bg-surface: #ffffff;
    --theme-shadow-dark: #d0d8e2;
    --theme-shadow-light: #ffffff;
    --theme-text: #1e293b;
    --theme-text-muted: #64748b;
    --theme-border: rgba(0, 0, 0, 0.08);
    --theme-accent: #00b4d8;
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Overrides & High Contrast Readability */
[data-color-mode='light'] {
    --theme-shadow-dark: #d0d8e2;
    --theme-shadow-light: #ffffff;
    --theme-text: #0f172a;
    --theme-text-muted: #334155;
    --theme-border: rgba(0, 0, 0, 0.08);
}

[data-color-mode='light'] body,
[data-color-mode='light'] p,
[data-color-mode='light'] h1,
[data-color-mode='light'] h3,
[data-color-mode='light'] h4,
[data-color-mode='light'] h5,
[data-color-mode='light'] h6,
[data-color-mode='light'] label,
[data-color-mode='light'] strong,
[data-color-mode='light'] td,
[data-color-mode='light'] th,
[data-color-mode='light'] .neu-input,
[data-color-mode='light'] .neu-select,
[data-color-mode='light'] .neu-textarea {
    color: var(--theme-text);
}

[data-color-mode='light'] .text-muted,
[data-color-mode='light'] .section-subtitle,
[data-color-mode='light'] .hero-desc,
[data-color-mode='light'] .footer-links a,
[data-color-mode='light'] .footer-contact-item {
    color: var(--theme-text-muted);
}

/* Dark Mode Overrides */
[data-color-mode='dark'] {
    --theme-text: #f1f5f9;
    --theme-text-muted: #94a3b8;
    --theme-border: rgba(255, 255, 255, 0.08);
}


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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--theme-bg-base);
    color: var(--theme-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

main {
    flex: 1;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ==============================================================
   CUSTOM ACTIVE THEME SCROLLBAR
   ============================================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--theme-bg-base);
    box-shadow: inset 2px 2px 5px var(--theme-shadow-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--theme-primary), var(--theme-secondary));
    border-radius: 9999px;
    border: 2px solid var(--theme-bg-base);
    box-shadow: 0 0 10px rgba(var(--theme-primary-rgb), 0.5);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--theme-primary);
}

/* ==============================================================
   PAGE ANIMATED LOADER & TRANSITION EFFECTS
   ============================================================== */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--theme-bg-base);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-gauge-spinner {
    position: relative;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 3px solid rgba(var(--theme-primary-rgb), 0.2);
    border-top-color: var(--theme-primary);
    border-bottom-color: var(--theme-secondary);
    animation: loaderSpin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 25px rgba(var(--theme-primary-rgb), 0.4);
}

.loader-inner-icon {
    font-size: 1.8rem;
    color: var(--theme-primary);
    animation: loaderPulse 1.6s ease-in-out infinite;
}

.loader-text {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--theme-text);
}

.loader-subtext {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--theme-primary);
    letter-spacing: 1px;
    margin-top: 4px;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 8px var(--theme-primary)); }
}

/* Page Transition Overlay */
#page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--theme-bg-base);
    z-index: 999998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#page-transition-overlay.is-transitioning {
    opacity: 1;
    pointer-events: auto;
}

/* Typography Utility & H2 Section Gradient Effect */
h2, .section-title, .gradient-heading {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: -0.5px;
}

h2 i, .section-title i {
    -webkit-text-fill-color: initial !important;
    color: var(--theme-primary) !important;
}

h2 span, .section-title span {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.text-amber-gradient {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* ==============================================================
   NEUMORPHISM PRIMITIVES & CARDS
   ============================================================== */

.neu-card {
    background: var(--theme-bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: 10px 10px 24px var(--theme-shadow-dark),
                -10px -10px 24px var(--theme-shadow-light);
    border: 1px solid var(--theme-border);
    padding: 28px;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.neu-card:hover {
    transform: translateY(-5px);
    box-shadow: 14px 14px 30px var(--theme-shadow-dark),
                -14px -14px 30px var(--theme-shadow-light),
                0 0 20px rgba(var(--theme-primary-rgb), 0.15);
}

.neu-card-flat {
    background: var(--theme-bg-surface);
    border-radius: var(--radius-md);
    box-shadow: 6px 6px 16px var(--theme-shadow-dark),
                -6px -6px 16px var(--theme-shadow-light);
    border: 1px solid var(--theme-border);
    padding: 20px;
}

.neu-inset {
    background: var(--theme-bg-base);
    border-radius: var(--radius-md);
    box-shadow: inset 5px 5px 12px var(--theme-shadow-dark),
                inset -5px -5px 12px var(--theme-shadow-light);
    border: 1px solid var(--theme-border);
}

.neu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    background: var(--theme-bg-surface);
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    box-shadow: 6px 6px 16px var(--theme-shadow-dark),
                -6px -6px 16px var(--theme-shadow-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.neu-btn:hover {
    color: var(--theme-primary);
    box-shadow: 3px 3px 8px var(--theme-shadow-dark),
                -3px -3px 8px var(--theme-shadow-light),
                0 0 16px rgba(var(--theme-primary-rgb), 0.3);
    transform: translateY(-2px);
}

.neu-btn:active {
    box-shadow: inset 4px 4px 8px var(--theme-shadow-dark),
                inset -4px -4px 8px var(--theme-shadow-light);
    transform: translateY(1px);
}

.neu-btn-primary {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: #ffffff;
    font-weight: 800;
    border: none;
    box-shadow: 0 8px 25px rgba(var(--theme-primary-rgb), 0.4),
                6px 6px 16px var(--theme-shadow-dark);
}

.neu-btn-primary:hover {
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(var(--theme-primary-rgb), 0.6),
                3px 3px 8px var(--theme-shadow-dark);
    transform: translateY(-2px);
}

.neu-btn-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-weight: 800;
    border: none;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.neu-btn-amber:hover {
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.6);
}

.neu-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-bg-surface);
    box-shadow: 5px 5px 12px var(--theme-shadow-dark),
                -5px -5px 12px var(--theme-shadow-light);
    color: var(--theme-primary);
    font-size: 1.25rem;
    border: 1px solid var(--theme-border);
}

.neu-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 9999px;
    background: var(--theme-bg-base);
    box-shadow: inset 2px 2px 5px var(--theme-shadow-dark),
                inset -2px -2px 5px var(--theme-shadow-light);
}

.neu-badge.cyan { color: var(--theme-primary); border: 1px solid rgba(var(--theme-primary-rgb), 0.3); }
.neu-badge.amber { color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.neu-badge.emerald { color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.neu-badge.purple { color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }

/* Inputs & Form Elements */
.neu-input, .neu-select, .neu-textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--theme-bg-base);
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    box-shadow: inset 4px 4px 10px var(--theme-shadow-dark),
                inset -4px -4px 10px var(--theme-shadow-light);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.neu-input:focus, .neu-select:focus, .neu-textarea:focus {
    border-color: var(--theme-primary);
    box-shadow: inset 4px 4px 10px var(--theme-shadow-dark),
                inset -4px -4px 10px var(--theme-shadow-light),
                0 0 14px rgba(var(--theme-primary-rgb), 0.35);
}

/* ==============================================================
   3D CARD PERSPECTIVE TILT
   ============================================================== */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

.tilt-inner {
    transition: transform 0.25s ease-out;
}

.tilt-sheen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tilt-card:hover .tilt-sheen {
    opacity: 1;
}

/* ==============================================================
   HEADER & NAVIGATION BAR WITH GLOWING MENU ITEMS
   ============================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(var(--theme-primary-rgb), 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--theme-border);
    transition: all var(--transition-smooth);
}

[data-color-mode='light'] .site-header {
    background: rgba(255, 255, 255, 0.85);
}

[data-color-mode='dark'] .site-header {
    background: rgba(15, 23, 42, 0.85);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-symbol {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--theme-bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 10px var(--theme-shadow-dark),
                -4px -4px 10px var(--theme-shadow-light);
    color: var(--theme-primary);
    font-size: 1.4rem;
    border: 1px solid var(--theme-border);
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--theme-text);
}

.brand-text span {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--theme-primary);
    text-transform: uppercase;
    font-weight: 700;
}

/* Desktop Nav Menu - Fixed Single Line Spacing & Glowing Hover */
.main-nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.84rem;
    font-weight: 600;
    padding: 7px 11px;
    border-radius: var(--radius-md);
    color: var(--theme-text);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--theme-primary);
    background: var(--theme-bg-surface);
    border-color: rgba(var(--theme-primary-rgb), 0.4);
    box-shadow: 0 0 16px rgba(var(--theme-primary-rgb), 0.35),
                inset 2px 2px 5px var(--theme-shadow-dark),
                inset -2px -2px 5px var(--theme-shadow-light);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(var(--theme-primary-rgb), 0.6);
}

.nav-link.active {
    color: var(--theme-primary);
    background: var(--theme-bg-surface);
    border-color: rgba(var(--theme-primary-rgb), 0.3);
    box-shadow: inset 3px 3px 8px var(--theme-shadow-dark),
                inset -3px -3px 8px var(--theme-shadow-light);
    font-weight: 700;
}

/* Admin Inline Toolbar */
.admin-inline-toolbar {
    background: var(--theme-bg-surface);
    border-bottom: 1px solid var(--theme-border);
    padding: 8px 0;
    position: relative;
    z-index: 1002;
    box-shadow: 0 2px 8px var(--theme-shadow-dark);
}

.admin-inline-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-inline-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(var(--theme-primary-rgb), 0.12);
    color: var(--theme-primary);
}

.admin-inline-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-inline-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--theme-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}

.admin-inline-link:hover {
    color: var(--theme-primary);
}

/* Inline Editing Active Styles */
body.inline-editing-active [data-inline-key],
body.inline-editing-active [data-inline-id],
body.inline-editing-active [contenteditable="true"] {
    outline: 2px dashed var(--theme-primary) !important;
    outline-offset: 4px;
    cursor: text !important;
    position: relative;
    border-radius: 4px;
    transition: outline 0.2s ease, background 0.2s ease;
}

body.inline-editing-active [data-inline-key]:hover,
body.inline-editing-active [data-inline-id]:hover,
body.inline-editing-active [contenteditable="true"]:hover {
    background: rgba(var(--theme-primary-rgb), 0.08) !important;
}

body.inline-editing-active [data-inline-key]:focus,
body.inline-editing-active [data-inline-id]:focus,
body.inline-editing-active [contenteditable="true"]:focus {
    outline: 2px solid var(--theme-primary) !important;
    background: rgba(var(--theme-primary-rgb), 0.12) !important;
}


/* Scroll to Top Floating Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--theme-bg-surface);
    color: var(--theme-primary);
    border: 1px solid var(--theme-border);
    box-shadow: 4px 4px 12px var(--theme-shadow-dark),
                -4px -4px 12px var(--theme-shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s ease,
                background 0.2s ease,
                color 0.2s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)) !important;
    box-shadow: 0 0 20px rgba(var(--theme-primary-rgb), 0.5),
                6px 6px 16px var(--theme-shadow-dark);
    transform: translateY(-4px) scale(1.06);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

/* Light / Dark Mode Toggle Switch Button */
.color-mode-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--theme-bg-surface);
    box-shadow: 4px 4px 10px var(--theme-shadow-dark),
                -4px -4px 10px var(--theme-shadow-light);
    border: 1px solid var(--theme-border);
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all var(--transition-fast);
}

.color-mode-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 18px rgba(var(--theme-primary-rgb), 0.45);
}

.color-mode-toggle:active {
    box-shadow: inset 2px 2px 6px var(--theme-shadow-dark),
                inset -2px -2px 6px var(--theme-shadow-light);
}

/* Hamburger Toggle Button */
.hamburger-btn {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--theme-bg-surface);
    box-shadow: 4px 4px 10px var(--theme-shadow-dark),
                -4px -4px 10px var(--theme-shadow-light);
    border: 1px solid var(--theme-border);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 1001;
}

.hamburger-line {
    width: 22px;
    height: 2.5px;
    background: var(--theme-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background: var(--theme-primary);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background: var(--theme-primary);
}

/* Mobile Slide-In Navigation Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 330px;
    max-width: 88%;
    height: 100vh;
    background: var(--theme-bg-surface);
    box-shadow: -15px 0 35px var(--theme-shadow-dark);
    z-index: 1000;
    padding: 90px 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

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

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    font-weight: 600;
    padding: 13px 18px;
    border-radius: var(--radius-md);
    background: var(--theme-bg-base);
    box-shadow: 4px 4px 10px var(--theme-shadow-dark),
                -4px -4px 10px var(--theme-shadow-light);
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--theme-primary);
    box-shadow: inset 3px 3px 6px var(--theme-shadow-dark),
                inset -3px -3px 6px var(--theme-shadow-light);
    border-color: rgba(var(--theme-primary-rgb), 0.4);
}

/* ==============================================================
   3D HERO SECTION
   ============================================================== */
.hero-section {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 0;
}

.hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

#hero-3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    pointer-events: none;
}

.hero-content * {
    pointer-events: auto;
}

.hero-badge-pill {
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--theme-text);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--theme-text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hero-stat-card {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--theme-bg-surface);
    border: 1px solid var(--theme-border);
    box-shadow: 6px 6px 16px var(--theme-shadow-dark),
                -6px -6px 16px var(--theme-shadow-light);
}

.hero-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--theme-primary);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
    font-weight: 600;
}

/* ==============================================================
   MIDDLE MOTION SCROLLING MARQUEE TICKER (PLACED IN MIDDLE)
   ============================================================== */
.middle-marquee-section {
    position: relative;
    overflow: hidden;
    user-select: none;
    padding: 20px 0;
    background: var(--theme-bg-surface);
    border-top: 1px solid var(--theme-border);
    border-bottom: 1px solid var(--theme-border);
    box-shadow: 0 8px 24px var(--theme-shadow-dark);
    margin: 40px 0;
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marqueeScroll 26s linear infinite;
}

.marquee-track.reverse {
    animation-direction: reverse;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--theme-text);
    white-space: nowrap;
}

.marquee-item i {
    color: var(--theme-primary);
    font-size: 1rem;
    filter: drop-shadow(0 0 6px rgba(var(--theme-primary-rgb), 0.5));
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==============================================================
   SECTION HEADERS
   ============================================================== */
.section-pad {
    padding: 80px 0;
    position: relative;
}

.section-pad-alt {
    padding: 80px 0;
    background: rgba(var(--theme-primary-rgb), 0.02);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 12px;
    margin-bottom: 16px;
    color: var(--theme-text);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--theme-text-muted);
    line-height: 1.6;
}

/* ==============================================================
   SERVICES & CARDS GRID
   ============================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon-box {
    margin-bottom: 22px;
}

.service-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--theme-text);
}

.service-desc {
    color: var(--theme-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-meta {
    padding-top: 16px;
    border-top: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-range {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--theme-primary);
    font-weight: 700;
}

/* ==============================================================
   WHY CHOOSE US - BROCHURE 7 PILLARS
   ============================================================== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
}

.pillar-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
}

.pillar-number {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--theme-primary);
    line-height: 1;
    opacity: 0.9;
}

.pillar-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--theme-text);
}

.pillar-content p {
    font-size: 0.9rem;
    color: var(--theme-text-muted);
    line-height: 1.5;
}

/* ==============================================================
   INDUSTRIES WE SERVE
   ============================================================== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 26px;
}

.industry-card {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.industry-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #f59e0b;
    margin-bottom: 20px;
    background: var(--theme-bg-base);
    box-shadow: inset 4px 4px 10px var(--theme-shadow-dark),
                inset -4px -4px 10px var(--theme-shadow-light);
    border: 1px solid var(--theme-border);
}

/* ==============================================================
   SCOPE OF CALIBRATION TABLE
   ============================================================== */
.scope-table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--theme-border);
}

.neu-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
}

.neu-table th {
    background: var(--theme-bg-surface);
    color: var(--theme-primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid var(--theme-border);
}

.neu-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--theme-border);
    background: var(--theme-bg-base);
    color: var(--theme-text);
}

.neu-table tr:hover td {
    background: rgba(var(--theme-primary-rgb), 0.05);
}

.cal-discipline-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.badge-temp { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-press { background: rgba(14, 165, 233, 0.15); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.3); }
.badge-et { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.badge-mech { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-hum { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

/* ==============================================================
   DYNAMIC ITEMS SHOWCASE
   ============================================================== */
.dynamic-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.dynamic-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dynamic-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

/* ==============================================================
   FOOTER
   ============================================================== */
.site-footer {
    background: var(--theme-bg-surface);
    border-top: 1px solid var(--theme-border);
    padding: 70px 0 30px;
    margin-top: auto;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--theme-text);
    margin-bottom: 22px;
}

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

.footer-links a {
    color: var(--theme-text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--theme-primary);
    transform: translateX(4px);
    display: inline-block;
}

.footer-contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--theme-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact-item i {
    color: var(--theme-primary);
    margin-top: 3px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--theme-text-muted);
}

/* ==============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================== */
@media (max-width: 1200px) {
    .nav-links {
        gap: 3px;
    }
    .nav-link {
        font-size: 0.8rem;
        padding: 6px 9px;
        gap: 5px;
    }
    .header-cta-btn {
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
    }
    .brand-text h1 {
        font-size: 1.15rem;
    }
    .brand-text span {
        font-size: 0.68rem;
    }
}

@media (max-width: 1040px) {
    .nav-links, .desktop-only, .header-cta-btn {
        display: none !important;
    }
    .hamburger-btn {
        display: flex !important;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .hero-section {
        min-height: auto;
        padding: 40px 0 60px;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .services-grid, .pillars-grid, .industries-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2rem;
    }
}
