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

:root {
    --bg-dark: #F8FAFC;
    --text-white: #0F172A;
    --text-grey: #475569;
    --accent-red: #B22234;
    --accent-blue: #0a1755;
    --accent-green: #74d37d;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(10, 23, 85, 0.1);
    --glass-blur: blur(12px);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Base Animations & Utils --- */
.anim-visible { opacity: 1 !important; transform: none !important; }
.anim-shimmer-text { 
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-green) 40%, var(--accent-blue) 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nlp-text-shimmer 3.5s linear infinite;
    opacity: 1 !important;
}

@keyframes nlp-text-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* --- Scoped Header Styles --- */
#nlp-header-wrapper {
    position: relative;
    z-index: 9999; /* Ensure it's above everything */
}

#nlp-header-wrapper .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    z-index: 10001;
    padding: 6px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#nlp-header-wrapper .lang-btn {
    font-size: 11px;
    padding: 4px 10px;
    opacity: 0.8;
    border-radius: 50px;
    transition: all 0.3s;
    background: rgba(10, 23, 85, 0.05);
    border: none;
    color: var(--text-grey);
}

#nlp-header-wrapper .lang-btn.active,
#nlp-header-wrapper .lang-btn:hover {
    opacity: 1;
    background: var(--accent-blue);
    color: #fff;
}

#nlp-header-wrapper .navbar-custom {
    position: fixed;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(10, 23, 85, 0.1);
    border-radius: 40px;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#nlp-header-wrapper .navbar-custom.scrolled {
    width: 100%;
    max-width: 100%;
    top: 36px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

#nlp-header-wrapper .brand-logo {
    height: 40px;
    width: auto;
    transition: all 0.3s;
}

#nlp-header-wrapper .navbar-custom.scrolled .brand-logo {
    height: 34px;
}

#nlp-header-wrapper .nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#nlp-header-wrapper .nav-link {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s;
}

#nlp-header-wrapper .nav-link:hover {
    color: var(--accent-blue);
    background: rgba(10, 23, 85, 0.05);
}

#nlp-header-wrapper .mobile-only-links {
    display: none; /* Hide on desktop */
}

/* --- Mega Menu & Dropdowns --- */
#nlp-header-wrapper .mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 1100px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    display: none; /* Add display none to ensure it doesn't take space */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2000;
    max-height: 80vh;
    overflow-y: auto;
}

#nlp-header-wrapper .mega-menu.active {
    opacity: 1;
    visibility: visible;
    display: block; /* Show when active */
    transform: translateX(-50%) translateY(10px);
}

#nlp-header-wrapper .mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

#nlp-header-wrapper .mega-column h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    font-weight: 800;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(10, 23, 85, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
}

#nlp-header-wrapper .mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

#nlp-header-wrapper .mega-links li {
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

#nlp-header-wrapper .mega-links a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-grey);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

#nlp-header-wrapper .mega-links a i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.85rem;
    color: var(--accent-blue);
    background: rgba(10, 23, 85, 0.05);
    border-radius: 6px;
    flex-shrink: 0;
}

#nlp-header-wrapper .mega-links a:hover {
    background: rgba(10, 23, 85, 0.05);
    color: var(--accent-blue);
    transform: translateX(5px);
}

#nlp-header-wrapper .mega-links a:hover i {
    background: var(--accent-blue);
    color: white;
}

/* --- Mega Menu Search (Home.html Style) --- */
#nlp-header-wrapper .mega-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

#nlp-header-wrapper .mega-menu-search {
    position: relative;
    width: 400px;
}

#nlp-header-wrapper .mega-menu-search input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 100px;
    border: 2px solid rgba(10, 23, 85, 0.1);
    outline: none;
    transition: all 0.3s;
    font-size: 0.9rem;
    background: white;
}

#nlp-header-wrapper .mega-menu-search input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 5px 15px rgba(10, 23, 85, 0.1);
}

#nlp-header-wrapper .mega-menu-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-blue);
    opacity: 0.6;
}

/* Live Search States */
#nlp-header-wrapper .mega-link-fade {
    opacity: 0.2;
    filter: blur(1px);
}

#nlp-header-wrapper .mega-link-match {
    opacity: 1 !important;
    filter: none !important;
    background: rgba(10, 23, 85, 0.05) !important;
    color: var(--accent-blue) !important;
    border-radius: 10px;
}

/* --- Company Dropdown --- */
#nlp-header-wrapper .company-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 260px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    padding: 15px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: all 0.3s;
    z-index: 1500;
}

#nlp-header-wrapper .company-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    display: block;
    transform: translateX(-50%) translateY(10px);
}

#nlp-header-wrapper .company-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 10px;
    color: var(--text-grey);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

#nlp-header-wrapper .company-dropdown-menu a:hover {
    background: rgba(10, 23, 85, 0.05);
    color: var(--accent-blue);
}

#nlp-header-wrapper .company-dropdown-menu i {
    width: 24px;
    margin-right: 12px;
    color: var(--accent-blue);
}

/* --- Mobile Menu --- */
#nlp-header-wrapper .nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--accent-blue);
}

@media (max-width: 991px) {
    #nlp-header-wrapper .nav-toggle { display: block; }
    #nlp-header-wrapper .navbar-custom { width: 95%; border-radius: 20px; top: 60px; }
    #nlp-header-wrapper .navbar-custom.scrolled { top: 10px; }
    #nlp-header-wrapper .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        margin-top: 10px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        max-height: 80vh;
        overflow-y: auto;
    }
    #nlp-header-wrapper .nav-links.active { display: flex; }
    #nlp-header-wrapper .mobile-only-links { display: block; }
    #nlp-header-wrapper .mega-menu { width: 100%; position: static; transform: none; box-shadow: none; padding: 15px 0; }
    #nlp-header-wrapper .mega-menu-grid { grid-template-columns: 1fr; }
    #nlp-header-wrapper .mega-menu-search { width: 100%; }
}

/* --- Pill Buttons --- */
.btn-pill {
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-white {
    background: white;
    color: var(--accent-blue) !important;
    border: 1px solid rgba(10, 23, 85, 0.1);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--accent-blue);
    color: var(--accent-blue) !important;
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 23, 85, 0.1);
}

.btn-white:hover {
    background: var(--accent-blue);
    color: white !important;
}

/* --- Footer Styles --- */
#nlp-footer-wrapper footer {
    background: #0a1755;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

#nlp-footer-wrapper h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 25px;
    border-left: 3px solid var(--accent-green);
    padding-left: 15px;
}

#nlp-footer-wrapper .list-unstyled li {
    margin-bottom: 10px;
}

#nlp-footer-wrapper a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s;
}

#nlp-footer-wrapper a:hover {
    color: var(--accent-green);
    padding-left: 5px;
}

#nlp-footer-wrapper .footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
}

#nlp-footer-wrapper .footer-bottom-bar {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px 0;
    margin-top: 50px;
}

/* --- Social Icons (Flip Effect) --- */
.social-card-v2 {
    display: flex;
    gap: 10px;
}

.social-link-v2 {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.social-link-v2 i {
    position: absolute;
    transition: all 0.4s;
    color: white;
}

.social-link-v2 i:last-child {
    transform: translateY(40px);
}

.social-link-v2:hover i:first-child { transform: translateY(-40px); }
.social-link-v2:hover i:last-child { transform: translateY(0); }

.social-link-v2.facebook:hover { background: #1877f2; }
.social-link-v2.twitter:hover { background: #000; }
.social-link-v2.instagram:hover { background: #e1306c; }
.social-link-v2.linkedin:hover { background: #0077b5; }
.social-link-v2.youtube:hover { background: #ff0000; }
.social-link-v2.whatsapp:hover { background: #25d366; }

/* --- Dark Theme Support --- */
body.dark-theme {
    --bg-dark: #0f172a;
    --text-white: #f8fafc;
    --text-grey: #94a3b8;
    --accent-blue: #60a5fa;
}

body.dark-theme #nlp-header-wrapper .top-bar {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme #nlp-header-wrapper .navbar-custom {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme #nlp-header-wrapper .mega-menu,
body.dark-theme #nlp-header-wrapper .company-dropdown-menu {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme #nlp-header-wrapper .nav-link:hover,
body.dark-theme #nlp-header-wrapper .mega-links a:hover,
body.dark-theme #nlp-header-wrapper .company-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 9999;
    transition: all 0.3s;
}

.whatsapp-float img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.whatsapp-float:hover { transform: scale(1.1) rotate(5deg); }

/* --- Custom Scrollbar --- */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(10, 23, 85, 0.2); border-radius: 10px; }
body.dark-theme .custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); }