/**
 * NS Technologie - Master Corporate & Dynamic CMS Stylesheet
 * Palette: Primary #0B1F3A | Secondary #123D66 | Accent #00A8E8 | Background #F5F8FC | Text #263449
 * Features: Glassmorphism, 5-Category Mega Menu, Smooth Micro-Animations, Core Web Vitals Optimized
 */

:root {
    --ns-primary: #0B1F3A;
    --ns-secondary: #123D66;
    --ns-accent: #00A8E8;
    --ns-accent-cyan: #00E5FF;
    --ns-bg: #F5F8FC;
    --ns-surface: #FFFFFF;
    --ns-text: #263449;
    --ns-text-muted: #52657C;
    --ns-border: rgba(18, 61, 102, 0.11);
    --ns-gradient-hero: linear-gradient(135deg, #071527 0%, #0B1F3A 52%, #123D66 100%);
    --ns-gradient-accent: linear-gradient(135deg, #00A8E8 0%, #0077B6 100%);
    --ns-gradient-cyan: linear-gradient(90deg, #00A8E8 0%, #00E5FF 100%);
    --ns-shadow-sm: 0 4px 16px rgba(11, 31, 58, 0.05);
    --ns-shadow-md: 0 12px 32px rgba(11, 31, 58, 0.09);
    --ns-shadow-lg: 0 22px 48px rgba(11, 31, 58, 0.16);
    --ns-radius: 16px;
    --ns-radius-sm: 10px;
}

/* Optional Theme 2: White + Black + Royal Blue */
body.theme-white-royal {
    --ns-primary: #0A0F1D;
    --ns-secondary: #1E3A8A;
    --ns-accent: #2563EB;
    --ns-accent-cyan: #60A5FA;
    --ns-bg: #F8FAFC;
    --ns-gradient-hero: linear-gradient(135deg, #090D16 0%, #111827 55%, #1E3A8A 100%);
    --ns-gradient-accent: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
}

/* Optional Theme 3: Dark Glassmorphism + Cyan */
body.theme-dark-cyan {
    --ns-primary: #060E1A;
    --ns-secondary: #0F253E;
    --ns-accent: #00D2FF;
    --ns-accent-cyan: #38BDF8;
    --ns-bg: #0A1628;
    --ns-surface: #10213A;
    --ns-text: #E2E8F0;
    --ns-text-muted: #94A3B8;
    --ns-border: rgba(0, 210, 255, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--ns-bg);
    color: var(--ns-text);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    color: var(--ns-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
}

body.theme-dark-cyan h1,
body.theme-dark-cyan h2,
body.theme-dark-cyan h3,
body.theme-dark-cyan h4,
body.theme-dark-cyan h5,
body.theme-dark-cyan h6 {
    color: #FFFFFF;
}

a {
    color: var(--ns-accent);
    text-decoration: none;
    transition: all 0.22s ease;
}

a:hover {
    color: var(--ns-secondary);
}

/* Top Utility Bar */
.ns-topbar {
    background: var(--ns-primary);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.84rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ns-topbar a {
    color: rgba(255, 255, 255, 0.9);
}

.ns-topbar a:hover {
    color: var(--ns-accent-cyan);
}

/* Sticky Navbar & Glassmorphism */
.ns-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ns-border);
    transition: all 0.25s ease;
    z-index: 1030;
}

body.theme-dark-cyan .ns-navbar {
    background: rgba(10, 22, 40, 0.92);
}

.ns-navbar.scrolled {
    box-shadow: var(--ns-shadow-md);
}

.ns-navbar .nav-link {
    color: var(--ns-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1rem !important;
    border-radius: 8px;
}

body.theme-dark-cyan .ns-navbar .nav-link {
    color: #F1F5F9;
}

.ns-navbar .nav-link:hover,
.ns-navbar .nav-link.active {
    color: var(--ns-accent);
    background: rgba(0, 168, 232, 0.07);
}

/* 5-Category Mega Menu Dropdown */
.ns-megamenu-dropdown {
    position: static !important;
}

.ns-megamenu {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0 !important;
    border: none;
    border-top: 3px solid var(--ns-accent);
    border-radius: 0 0 20px 20px;
    background: var(--ns-surface);
    box-shadow: var(--ns-shadow-lg);
    padding: 1.75rem 0;
}

.ns-mega-cat-card {
    background: rgba(245, 248, 252, 0.65);
    border: 1px solid var(--ns-border);
    border-radius: 12px;
    padding: 1rem;
    height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

body.theme-dark-cyan .ns-mega-cat-card {
    background: rgba(15, 37, 62, 0.65);
}

.ns-mega-cat-card:hover {
    border-color: var(--ns-accent);
    transform: translateY(-2px);
}

.ns-mega-cat-title {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ns-primary);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ns-mega-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ns-text);
    border-radius: 6px;
    transition: all 0.18s ease;
}

.ns-mega-link i {
    color: var(--ns-accent);
    font-size: 0.9rem;
}

.ns-mega-link:hover {
    background: rgba(0, 168, 232, 0.1);
    color: var(--ns-accent);
    transform: translateX(3px);
}

/* Buttons */
.btn-ns-primary {
    background: var(--ns-gradient-accent);
    color: #FFFFFF !important;
    font-weight: 700;
    padding: 0.72rem 1.5rem;
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 168, 232, 0.28);
    transition: all 0.25s ease;
}

.btn-ns-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 168, 232, 0.4);
    color: #FFFFFF !important;
}

.btn-ns-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF !important;
    border: 1.5px solid rgba(0, 229, 255, 0.55);
    font-weight: 700;
    padding: 0.72rem 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

.btn-ns-outline:hover {
    background: var(--ns-accent);
    border-color: var(--ns-accent);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.btn-ns-navy {
    background: var(--ns-primary);
    color: #FFFFFF !important;
    font-weight: 700;
    padding: 0.72rem 1.5rem;
    border-radius: 10px;
    border: none;
}

.btn-ns-navy:hover {
    background: var(--ns-secondary);
    transform: translateY(-2px);
}

/* Hero Section with Glassmorphism */
.ns-hero {
    background: var(--ns-gradient-hero);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 5rem;
}

.ns-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.26) 0%, transparent 70%);
    pointer-events: none;
}

.ns-hero::after {
    content: '';
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

.ns-hero h1 {
    color: #FFFFFF;
    font-size: clamp(2.15rem, 4.2vw, 3.45rem);
    line-height: 1.15;
}

.ns-text-gradient {
    background: var(--ns-gradient-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ns-badge-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 168, 232, 0.16);
    border: 1px solid rgba(0, 229, 255, 0.38);
    color: #7CE8FF;
    padding: 0.42rem 1rem;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    backdrop-filter: blur(10px);
}

.ns-glass-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--ns-radius);
    padding: 1.75rem;
    color: #FFFFFF;
}

/* Section Headers & Cards */
.ns-section {
    padding: 5rem 0;
}

.ns-section-alt {
    background-color: var(--ns-surface);
    padding: 5rem 0;
}

.ns-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 168, 232, 0.11);
    color: var(--ns-accent);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.ns-card {
    background: var(--ns-surface);
    border: 1px solid var(--ns-border);
    border-radius: var(--ns-radius);
    padding: 1.75rem;
    height: auto;
    box-shadow: var(--ns-shadow-sm);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.row.g-3 > [class*="col-"] > .ns-card:only-child,
.row.g-4 > [class*="col-"] > .ns-card:only-child {
    height: 100%;
}

.ns-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ns-shadow-md);
    border-color: rgba(0, 168, 232, 0.45);
}

.ns-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.14) 0%, rgba(18, 61, 102, 0.08) 100%);
    color: var(--ns-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.15rem;
    transition: all 0.25s ease;
}

.ns-card:hover .ns-icon-box {
    background: var(--ns-gradient-accent);
    color: #FFFFFF;
    transform: scale(1.06);
}

/* Process Step Badges */
.ns-step-badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--ns-primary);
    color: var(--ns-accent-cyan);
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ns-accent);
}

/* Page Banner & Breadcrumbs */
.ns-page-banner {
    background: var(--ns-gradient-hero);
    color: #FFFFFF;
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.ns-page-banner h1 {
    color: #FFFFFF;
    font-size: clamp(1.85rem, 3.5vw, 2.85rem);
}

.ns-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
}

.ns-breadcrumb .breadcrumb-item.active {
    color: var(--ns-accent-cyan);
    font-size: 0.88rem;
    font-weight: 600;
}

.ns-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45);
}

/* CTA Banner Section */
.ns-cta-banner {
    background: var(--ns-gradient-hero);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ns-shadow-lg);
}

.ns-cta-banner h2 {
    color: #FFFFFF;
}

/* 4-Column Professional Footer */
.ns-footer {
    background: #071527;
    color: rgba(255, 255, 255, 0.78);
    padding: 4.5rem 0 2rem;
    border-top: 3px solid var(--ns-accent);
}

.ns-footer h5 {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.ns-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: var(--ns-accent);
    border-radius: 2px;
}

.ns-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ns-footer-links li {
    margin-bottom: 0.55rem;
}

.ns-footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ns-footer-links a:hover {
    color: var(--ns-accent-cyan);
    transform: translateX(4px);
}

/* Floating WhatsApp Lead Button */
.ns-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    background: #25D366;
    color: #FFFFFF !important;
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
    transition: all 0.25s ease;
}

.ns-whatsapp-float:hover {
    background: #1EBE5D;
    transform: translateY(-3px) scale(1.02);
    color: #FFFFFF !important;
}

/* Scroll Reveal Utility */
.reveal-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive Cost Calculator Option Pills */
.calc-option-card {
    border: 1.5px solid var(--ns-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    background: var(--ns-surface);
    transition: all 0.2s ease;
    user-select: none;
}

.calc-option-card.active {
    border-color: var(--ns-accent);
    background: rgba(0, 168, 232, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.15);
}

/* Admin Sidebar Layout */
.ns-admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: #F1F5F9;
}

.ns-admin-sidebar {
    width: 265px;
    background: #0B1F3A;
    color: #FFFFFF;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.ns-admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.78);
    padding: 0.68rem 1.15rem;
    border-radius: 8px;
    margin: 0.15rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ns-admin-sidebar .nav-link:hover,
.ns-admin-sidebar .nav-link.active {
    background: var(--ns-accent);
    color: #FFFFFF;
}

.ns-admin-main {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .ns-hero {
        padding: 3.75rem 0 3.25rem;
    }
    .ns-section, .ns-section-alt {
        padding: 3.5rem 0;
    }
    .ns-admin-wrapper {
        flex-direction: column;
    }
    .ns-admin-sidebar {
        width: 100%;
    }
}
