/* Alignment container for right-side buttons */
.alignment-btns {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-left: 20px;
}

/* Book a Demo Button (Outline style) */
.navbar-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #111111 !important;
    background-color: #ffffff;
    border: 2.5px solid #111111;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap !important;
}

.navbar-btn-outline:hover {
    background-color: #f8f9fa;
    transform: translateY(-1.5px);
    box-shadow: 2px 2px 0px #111111;
}

.navbar-btn-outline:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* Try for Free Button (Neobrutalist Green style) */
.navbar-btn-filled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #111111 !important;
    background-color: #ffda18; /* vibrant neon green matching user reference */
    border: 2.5px solid #111111;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    line-height: 1.2;
    box-shadow: 4px 4px 0px #ffda18; /* solid offset green shadow */
    cursor: pointer;
    white-space: nowrap !important;
}

.navbar-btn-filled:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #ffda18;
}

.navbar-btn-filled:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* Responsive adjustment for medium/large laptops & desktop sizes (1200px - 1399px) */
@media (max-width: 1399px) {
    .alignment-btns {
        gap: 8px;
        margin-left: 10px;
    }
    .navbar-btn-outline,
    .navbar-btn-filled {
        padding: 8px 16px;
        font-size: 13px;
        border-width: 2px;
    }
    .navbar-btn-filled {
        box-shadow: 3px 3px 0px #00df89;
    }
    .navbar-btn-outline:hover {
        box-shadow: 1.5px 1.5px 0px #111111;
    }
}

/* Hide buttons completely on viewports smaller than 1200px (where mobile offcanvas trigger is standard) */
@media (max-width: 1199px) {
    .alignment-btns {
        display: none !important;
    }
}

/* Offcanvas stacked action buttons */
.ss-offcanvas-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 0;
    width: 100%;
}

.ss-offcanvas-actions .navbar-btn-outline,
.ss-offcanvas-actions .navbar-btn-filled {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 24px;
}

/* Mega Menu Dropdown Container & Structure */
.tp-header-menu ul li.has-mega-menu {
    position: static !important;
}

/* Reset intermediate wrapper positioning for full-width absolute menu */
.tp-header-box,
.tp-header-menu,
.tp-header-menu nav,
.tp-mobile-menu-active {
    position: static !important;
}

.mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff !important; /* Unified white background */
    border-top: none !important; /* Removed border to merge seamlessly with navbar */
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 40px 0 50px 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

/* Trigger mega menu on hover */
.tp-header-menu ul li.has-mega-menu:hover .mega-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega menu column layout styling */
.mega-menu-dropdown .row {
    justify-content: center;
    text-align: left;
}

.mega-menu-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666666 !important;
    margin-bottom: 22px;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 8px;
}

.mega-menu-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.mega-menu-list li {
    position: static !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mega-menu-list li a {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #111111 !important;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 2px 0;
}

.mega-menu-list li a:hover {
    color: #00df89 !important; /* Accent green hover color */
    transform: translateX(4px);
}

/* Global Header Background Override (Default / Resting over Hero) */
#header-sticky.tp-header-area {
    background-color: #ffffff !important;
    border-bottom: none !important; /* Removed bottom border so it merges seamlessly with dropdowns */
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Sticky Header Glassmorphism Effect */
#header-sticky.tp-header-area.header-sticky {
    background-color: rgba(255, 255, 255, 0.8) !important; /* Premium Glass White */
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Dropdown Submenu Background Color Override */
.tp-header-dropdown nav ul li .tp-submenu,
.dropdown-white-bg nav ul li .tp-submenu {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

/* Dropdown Submenu Link Styling */
.tp-header-dropdown nav ul li .tp-submenu li a,
.dropdown-white-bg nav ul li .tp-submenu li a {
    color: #111111 !important;
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.tp-header-dropdown nav ul li .tp-submenu li:hover > a,
.dropdown-white-bg nav ul li .tp-submenu li:hover > a {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #00df89 !important;
}

/* Megamenu column title adjustment */
.mega-menu-title {
    color: #333333 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
}

/* Caret/Arrow for Dropdown Menus */
.tp-header-dropdown nav ul li.has-dropdown::after,
.header-sticky.sticky-white-bg .tp-header-dropdown nav ul li.has-dropdown::after,
.tp-header-inner-style .tp-header-dropdown nav ul li.has-dropdown::after {
    content: none !important;
}

.mn-nav-arrow {
    width: 0.65em;
    height: auto;
    margin-left: 6px;
    transition: transform 0.3s ease;
    transform-origin: center;
    display: inline-block;
    vertical-align: middle;
}

.tp-header-dropdown nav ul li.has-dropdown:hover > a .mn-nav-arrow {
    transform: rotate(-180deg);
}

.tp-offcanvas-menu nav ul li.has-dropdown.active > a .mn-nav-arrow {
    transform: rotate(-180deg);
}

/* Main Navigation Links styling */
.tp-header-menu > nav > ul > li > a {
    color: #111111 !important;
}
.tp-header-menu > nav > ul > li > a:hover {
    color: #00df89 !important;
}

/* Hamburger menu button styles */
.tp-header-bar button {
    color: #111111 !important;
}
.tp-header-bar button i {
    background-color: #111111 !important;
}
