/* =========================================
   OMNIPRO SAAS THEME (MegaOne Overrides)
   ========================================= */

:root {
    --primary-teal: #3cb6a1;
    --primary-dark: #0f172a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-800: #1e293b;
    --border-radius: 8px;
    --font-sans: 'Montserrat', sans-serif;
    --gradient: linear-gradient(135deg, #3cb6a1 0%, #1a9c85 100%);
}

/* --- 1. GLOBAL RESETS & TYPOGRAPHY --- */
body {
    color: var(--slate-800);
    background-color: #fff;
    font-family: var(--font-sans);
}

h1, h2, h3, h4, h5 {
    color: var(--primary-dark);
    font-weight: 700;
}

p {
    color: var(--slate-500);
    line-height: 1.7;
}

.side-menu.center {
    background: #3cb6a1;
}

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

/* Force White/Clean Backgrounds (Kill Parallax Images) */
section#home, section.about, section#work, section#pricing {
    background: #fff !important;
    padding-top: 3rem !important;    /* Reduced Top Padding */
    padding-bottom: 6rem !important; /* Increased Bottom Padding */
}

.bg-light-saas {
    background-color: var(--slate-50) !important;
}

/* Remove Creative Studio "Ghost" Images (Circles) */
.about:before,
.about:after {
    content: none !important;
    display: none !important;
}

/* --- 2. NAVIGATION & HEADER FIXES --- */

/* Fix Hamburger Menu - Force Top Right & Visible */
.menu_bars {
    position: fixed !important;
    top: 35px !important;
    right: 30px !important;
    cursor: pointer;
}

/* Force Menu Lines to be Dark (Visible on White) */
.menu-lines span {
    background-color: var(--primary-dark) !important;
}
.menu-lines span:before, 
.menu-lines span:after {
    background-color: var(--primary-dark) !important;
}

/* Logo Fixes - Prevent Stretching */
.navbar-brand img, 
.logo img, 
img.logo-default, 
img.logo-scrolled {
    height: 35px !important;
    width: auto !important;
    object-fit: contain;
}

/* Nav Links Color */
.navbar.bottom-nav .navbar-nav .nav-link {
    color: var(--primary-dark) !important; 
    font-weight: 600;
}

/* --- 3. HERO SECTION & SEARCH COMPONENT --- */

.hero-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 75vh; /* Reduced height to show content fold */
    padding-top: 0 !important; /* Pull content up */
}

/* Search Container */
.search-container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--slate-100);
    width: 100%;
    max-width: 900px;
    margin-top: 2rem;
}

/* Tabs */
.search-tabs {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--slate-100);
}

.search-tab {
    padding-bottom: 1rem;
    color: var(--slate-500);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.search-tab:hover {
    color: var(--primary-teal);
}

.search-tab.active {
    color: var(--primary-teal);
    border-bottom-color: var(--primary-teal);
}

.heavy-text {
    font-weight: 400;
}

/* Fake Input Box */
.fake-input-box {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    font-family: 'Source Sans Pro', monospace;
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.cursor {
    width: 2px; 
    height: 1.2em;
    background: var(--primary-teal);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}
@keyframes blink { 50% { opacity: 0; } }

/* Smart Pills Grid */
.pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.smart-pill {
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 50px;
    background: white;
    border: 1px solid var(--slate-200);
    color: var(--slate-500);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.smart-pill i { font-size: 0.9em; }

.smart-pill.active {
    background: #ccfbf1; /* Light Teal Background */
    color: #0f766e;     /* Dark Teal Text */
    border-color: #5eead4;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(60, 182, 161, 0.2);
}

/* --- 4. TRUST BAR --- */
.trust-bar {
    padding: 2rem 0;
    border-bottom: 1px solid var(--slate-100);
    background: white;
}
.trust-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--slate-500);
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
    font-weight: 700;
}
.trust-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.trust-icon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--slate-500);
}
.trust-icon-item i { color: var(--primary-teal); font-size: 1.2rem; }

/* --- 5. FEATURE SECTIONS (FAKE UI & IMAGES) --- */
.feature-ui-box {
    border: 1px solid var(--slate-100);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.feature-ui-box:hover {
    transform: translateY(-5px);
}

.ui-header {
    background: var(--slate-50);
    padding: 12px 15px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    gap: 6px;
    align-items: center;
}
.ui-dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }

.blur-text { filter: blur(4px); opacity: 0.6; cursor: not-allowed; }

/* --- 6. PRICING CARDS --- */
.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--slate-200); /* Make border visible */
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-teal);
}

.pricing-card.popular {
    border: 2px solid var(--primary-teal);
    background: #f0fdfa; /* Very light teal tint */
}

/* Fix Headline Size */
.pricing-card h2 {
    font-size: 1.5rem !important;
    font-weight: 800;
    margin: 15px 0;
}

/* Fix Badge Size */
.pop-badge {
    position: absolute;
    top: -12px; 
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-teal);
    color: white;
    padding: 4px 12px !important;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.7rem !important;
    text-transform: uppercase;
    white-space: nowrap;
}

/* --- 7. BUTTONS --- */
.btn-teal {
    background-color: var(--primary-teal);
    color: white !important;
    padding: 10px 28px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 6px rgba(60, 182, 161, 0.2);
    transition: all 0.2s;
}

.btn-teal:hover { 
    background-color: #349e8d; 
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(60, 182, 161, 0.3);
}

/* --- 8. MODAL FIXES --- */
.modal-content {
    border-radius: 12px;
    border: none;
    overflow: hidden;
}
.modal-header {
    border-bottom: none;
}
.modal-body iframe {
    width: 100%;
    height: 500px;
    border: none;
}
/* --- HIDE HAMBURGER ON SCROLL --- */
/* When the header becomes sticky (header-appear), hide the fixed hamburger */
header.header-appear .menu_bars {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

/* Custom class to hide hamburger immediately */
.menu_bars.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-20px); /* Slide up effect */
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}
/* =========================================
   OMNIPRO FOOTER STYLES
   ========================================= */

.omnipro-footer {
    /* Define Color Variables */
    --omnipro-teal: #3cb6a1;
    --omnipro-light-teal: #e0f5f1;
    --omnipro-hover-teal: #2ea08d;
    --text-dark: #1a1b1e;

    /* Base Styles */
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
    font-family: 'Montserrat', sans-serif;
    padding: 3rem 0; /* Bootstrap 'large' padding equivalent */
}

/* --- Branding --- */
.footer-logo {
    max-width: 55px;
    height: auto;
    display: block;
}

.footer-brand-heading {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    font-size: 1.25rem; /* Heading Medium */
    margin-bottom: 0;
}

.footer-brand-sub {
    opacity: 0.7;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    font-weight: 400;
    font-size: 0.75rem; /* Body Small */
    margin-bottom: 0;
}

/* --- Navigation List Spacing --- */
.footer-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-nav-item {
    margin-left: 2rem; /* Spacing between links */
}

.footer-nav-item:first-child {
    margin-left: 0;
}

/* --- Link Styling --- */
.omnipro-footer a.footer-link {
    color: var(--text-dark) !important;
    text-decoration: none !important;
    opacity: 0.75;
    font-size: 0.875rem;
    padding: 0.25rem 0;
    position: relative;
    transition: all 0.2s ease;
    display: inline-block;
}

/* Hover State */
.omnipro-footer a.footer-link:hover,
.omnipro-footer a.footer-link:focus {
    color: var(--omnipro-hover-teal) !important;
    opacity: 1;
}

/* Teal Underline Animation */
.omnipro-footer a.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--omnipro-teal);
    transition: width 0.3s ease-in-out;
}

.omnipro-footer a.footer-link:hover::after {
    width: 100%;
}

/* --- FOOTER CONTAINER --- */
.footer-section {
    margin-top: auto; /* Pushes to bottom if flex container allows */
    padding-top: 32px;
    text-align: center;
    border-top: 1px solid #f1f5f9; /* Subtle separator */
    width: 100%;
}

.login-prompt {
    font-size: 14px;
    color: var(--slate-light);
    margin-bottom: 16px;
}

.login-link-action {
    color: var(--primary-teal);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}
.login-link-action:hover { color: var(--primary-teal-dark); text-decoration: underline; }

/* --- ANIMATED LEGAL NAV --- */
.omnipro-footer {
    display: flex;
    justify-content: center;
    padding-bottom: 16px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 24px; /* Space between links */
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav-item {
    display: inline-block;
}

/* --- THE ANIMATION CSS --- */
.footer-link {
    /* Map to your existing variables */
    --link-color: var(--slate-light); 
    --link-hover: var(--primary-teal-dark);
    --underline-color: var(--primary-teal);

    color: var(--link-color) !important;
    text-decoration: none !important;
    font-size: 12px; /* Smaller legal text size */
    font-weight: 500;
    padding: 4px 0;
    position: relative;
    transition: color 0.2s ease, opacity 0.2s ease;
    display: inline-block;
}

/* Hover State */
.footer-link:hover,
.footer-link:focus {
    color: var(--link-hover) !important;
    opacity: 1;
}

/* Teal Underline Animation */
.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--underline-color);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth ease */
}

.footer-link:hover::after {
    width: 100%;
}

/* --- Utilities --- */
.footer-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 1.5rem 0;
}

.footer-copyright {
    color: var(--text-dark);
    opacity: 0.5;
    font-size: 0.75rem;
}

/* --- MOBILE VISIBILITY (Hides Nav on Tablets/Mobile) --- */
@media only screen and (max-width: 991px) {
    .footer-nav-list {
        display: none !important;
        visibility: hidden;
    }
    .footer-nav-list-mobile-hidden {
        display: none;
    }
    /* Align branding to left on mobile */
    .footer-brand-container {
        margin-bottom: 1.5rem;
    }
}
.nav-three-circles .navbar-nav .nav-item .nav-link.active::after, .nav-three-circles .navbar-nav .nav-item .nav-link:hover::after {
    color: #f1c30f;
    text-shadow: 10px 0 #84a1d2, -10px 0 #e57bff;
    color: #3cb6a1;
    text-shadow: 10px 0 #3cb6a1d1, -10px 0 #3cb6a19e;
}

/* =========================================
   SCROLLBAR OVERRIDE (Brand Teal)
   ========================================= */

/* Width */
::-webkit-scrollbar {
    width: 4px;
}

/* Track (Background) */
::-webkit-scrollbar-track {
    background: #f1f5f9; /* Light Slate */
}

/* Handle (The Scroller) */
::-webkit-scrollbar-thumb {
    background: #3cb6a1; /* OmniPro Teal */
    border-radius: 5px;
}

/* Handle on Hover */
::-webkit-scrollbar-thumb:hover {
    background: #2ea08d; /* Darker Teal */
}

/* =========================================
   MOBILE UI TIGHTENING FIXES
   ========================================= */
@media (max-width: 768px) {
    /* 1. Remove forced full-height on the hero section to kill massive vertical gaps */
    section#home.h-100vh, 
    section#home {
        height: auto !important;
        min-height: auto !important;
        padding-top: 100px !important; /* Just enough to clear the fixed navbar */
        padding-bottom: 2rem !important;
    }

    .hero-wrapper {
        min-height: auto !important;
    }

    /* 2. Reduce the huge gaps below the text */
    .hero-wrapper .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .hero-wrapper h1.display-4 {
        font-size: 2.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-wrapper p.lead {
        font-size: 0.95rem;
        margin-bottom: 0 !important;
    }

    /* 3. Tighten up the Search Box internals */
    .search-container {
        padding: 1.25rem !important;
        margin-top: 0 !important;
    }
    
    .search-tabs {
        gap: 10px !important;
        margin-bottom: 1rem !important;
        justify-content: space-around;
    }
    
    .search-tab {
        font-size: 0.85rem;
        padding-bottom: 0.5rem !important;
    }
    
    .fake-input-box {
        padding: 0.8rem !important;
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    .smart-pill {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }

    /* 4. Fix AI Logo placement (stacks neatly above search box) */
    .hero-wrapper .flex-column > div:first-child {
        margin-bottom: 15px !important;
        margin-right: 0 !important; /* Removes desktop right-margin */
        text-align: center;
        width: 100%;
    }
    
    .hero-wrapper .flex-column > div:first-child img {
        height: 35px !important; /* Scale it down slightly for mobile */
    }

    /* 5. Bring the Trust Bar closer */
    .trust-bar {
        padding: 1.25rem 0 !important;
    }
    
    .trust-text {
        margin-bottom: 1rem !important;
    }
    
    .trust-icons {
        gap: 15px !important;
        flex-direction: column; /* Stacks the items vertically so they aren't unreadable */
        align-items: center;
    }
/* 6. Fixed Mobile Navbar */
    .navbar.bottom-nav {
        top: 0 !important;
        bottom: auto !important;
        position: fixed !important; /* Keeps it pinned to the top */
        width: 100%;
        height: 75px !important; /* Gives the header a set height */
        background-color: #ffffff !important; /* Solid background so text doesn't bleed through */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
        z-index: 1030 !important;
    }
    
    .navbar .logo {
        position: absolute !important;
        top: 20px !important; /* Centered vertically in the 75px header */
        left: 20px !important;
        margin: 0 !important;
    }

    /* 7. Force Hamburger to stay visible on scroll */
    header.header-appear .menu_bars,
    .menu_bars.fade-out {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important; /* Kills the slide-up animation */
    }

    /* Adjust hamburger position to perfectly align with the new fixed header */
    .menu_bars {
        top: 26px !important; 
        right: 20px !important;
        z-index: 1040 !important; /* Ensures it sits above the white navbar */
    }
}

/* =========================================
   LINKEDIN & SECURITY SECTION OVERRIDES
   ========================================= */

/* Feature List Icons (LinkedIn Section) */
.list-icon {
    width: 48px;
    height: 48px;
    background: #e0f5f1; /* Light Teal Background */
    color: var(--primary-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Security Trust Cards */
.trust-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--slate-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-teal);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-dark);
    color: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}