/* ==========================
   Axein Custom Styles - Bootstrap 5 overrides
   =========================== */

/* -- Variables (Modify as needed for themes/branding) -- */
:root {
  --axein-primary: #196cff;
  --axein-secondary: #43baff;
  --axein-dark: #151d2c;
  --axein-light: #f5f7fa;
  --axein-gradient: linear-gradient(120deg, #196cff 0%, #43baff 100%);
  --axein-radius: 0.7rem;
  --axein-spacing: 1rem;
  --axein-font: 'Inter', system-ui, sans-serif;
}

/* -- Typography -- */
body {
  font-family: var(--axein-font);
  background-color: var(--axein-light);
  color: #222;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

/* -- Hero Section -- */
.hero {
  min-height: 480px;
}
.hero .gradient-text {
  background: var(--axein-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -- Feature Cards -- */
.card {
  border-radius: var(--axein-radius);
}

/* -- NavBar -- */
.navbar-brand {
  font-weight: bold;
  letter-spacing: 0.03em;
}
.navbar .nav-link {
  font-weight: 500;
}

/* -- Mega-menu dropdown -- */
.mega-dropdown .dropdown-menu {
  min-width: 420px;
}

/* -- Carousel -- */
.carousel-control-prev,
.carousel-control-next {
  width: 4rem;
}

/* -- Footer -- */
.footer {
  background: #151d2c;
  color: #fff;
}
.footer-link {
  color: #a8d0fd;
  text-decoration: none;
}
.footer-link:hover, .footer-link:focus {
  color: #fff;
  text-decoration: underline;
}

/* -- Customer Logos Slider -- */
.logos-slider img {
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.2s;
}
.logos-slider img:hover {
  filter: grayscale(0) opacity(1);
}

/* -- Cookie Consent Banner -- */
#cookieConsent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
}
#cookieConsent[hidden] {
  display: none !important;
}

/* -- Responsive Utilities -- */
@media (max-width: 767.98px) {
  .mega-dropdown .dropdown-menu { min-width: 100vw; }
}

/* -- Search Modal -- */
#searchModal .modal-dialog {
  max-width: 420px;
}

.service-card[hidden] {
  display: none !important;
}

/* ----------------------------------------------------- */
/* CUSTOM VARIABLES & BOOTSTRAP OVERRIDES */
/* ----------------------------------------------------- */

:root {
    /* axein Brand Colors (Based on professional tech aesthetics) */
    --axein-primary: #0052CC;      
    --axein-secondary: #00BFA5;    
    --axein-dark: #172B4D;         
    --axein-light: #F4F5F7;        
    --axein-text-light: #42526E;   
    --axein-border: #DFE1E6;       

    /* Spacing */
    --spacer: 1rem;
    --section-padding: calc(4 * var(--spacer)) 0;
}

/* Override Bootstrap defaults */
.btn-primary {
    --bs-btn-bg: var(--axein-primary);
    --bs-btn-border-color: var(--axein-primary);
    --bs-btn-hover-bg: #0040A3;
    --bs-btn-hover-border-color: #0040A3;
}

.btn-outline-primary {
    --bs-btn-color: var(--axein-primary);
    --bs-btn-border-color: var(--axein-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--axein-primary);
    --bs-btn-hover-border-color: var(--axein-primary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--axein-dark);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--axein-text-light);
}

/* ----------------------------------------------------- */
/* GLOBAL COMPONENTS */
/* ----------------------------------------------------- */

.section-padding {
    padding: var(--section-padding);
}

.text-axein-dark {
    color: var(--axein-dark) !important;
}

/* ----------------------------------------------------- */
/* HEADER & MEGA-MENU STYLES */
/* ----------------------------------------------------- */

.navbar {
    border-bottom: 1px solid var(--axein-border);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-link {
    font-weight: 500;
    color: var(--axein-dark) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--axein-primary) !important;
}

/* Mega Menu Dropdown Container - DESKTOP */
@media (min-width: 992px) {
    .dropdown {
        position: static;
    }
    
    .mega-menu-content {
        width: 100%;
        margin-top: 0;
        border-radius: 0 0 8px 8px;
        border-top: 2px solid var(--axein-primary);
        box-shadow: 0 8px 16px rgba(9, 30, 66, 0.15);
        left: 0;
        right: 0;
    }
}

/* Mega Menu Item Styling */
.mega-menu-item {
    padding: 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: block; 
    white-space: normal;
    text-align: left;
    text-decoration: none;
    line-height: 1.2;
}

.mega-menu-item:hover {
    background-color: var(--axein-light);
}

.mega-menu-item h6 {
    font-weight: 600;
    color: var(--axein-dark);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.mega-menu-item p {
    font-size: 0.8rem;
    color: #000000;
    white-space: normal;
}

.mega-menu-content .row > [class*="col-"] {
    padding-left: 1rem;
    padding-right: 1rem;
}

.mega-menu-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--axein-dark);
    margin-bottom: 1rem;
    padding: 0 1rem;
}

/* Mobile Toggler Icon */
.navbar-toggler {
    border: none;
    padding: 0;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* ----------------------------------------------------- */
/* HERO SECTION STYLES */
/* ----------------------------------------------------- */

.hero-section {
    padding: calc(6 * var(--spacer)) 0;
    background: linear-gradient(180deg, var(--axein-light) 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-illustration {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ----------------------------------------------------- */
/* PRODUCT/FEATURE GRID STYLES */
/* ----------------------------------------------------- */

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--axein-border);
    border-radius: 8px;
    height: 100%;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(9, 30, 66, 0.1);
}

.product-card .card-icon {
    font-size: 2.5rem;
    color: var(--axein-primary);
}

/* ----------------------------------------------------- */
/* UTILITY AND RESPONSIVENESS */
/* ----------------------------------------------------- */

.nav-pills .nav-link {
    color: var(--axein-text-light);
    border-radius: 8px;
    font-weight: 500;
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    color: var(--axein-primary);
    background-color: var(--axein-light);
}

/* Footer Styling */
footer {
    background-color: var(--axein-dark);
    color: #A5ADBA;
    padding-top: calc(3 * var(--spacer));
}

footer a {
    color: #A5ADBA;
    text-decoration: none;
}

footer a:hover {
    color: var(--axein-light);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
}

.footer-bottom {
    border-top: 1px solid #42526E;
    padding-top: var(--spacer);
}

/* ----------------------------------------------------- */
/* MOBILE DROPDOWN FIX - CRITICAL */
/* ----------------------------------------------------- */

@media (max-width: 991.98px) {
    /* Make navbar scrollable */
    #navbarNav {
        overflow-y: auto;
        max-height: 85vh;
        padding-bottom: 2rem;
        background-color: var(--header-bg) !important;
    }

    /* Reset mega-menu positioning for mobile */
    .dropdown-menu.mega-menu-content {
        position: relative !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 0.5rem 1rem 0.5rem !important;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        transform: none !important;
        inset: auto !important;
    }

    /* Ensure dropdown shows when toggled */
    .dropdown-menu.show {
        display: block !important;
    }

    /* Adjust column layout for mobile */
    .mega-menu-content .col-lg-3 {
        padding: 0 !important;
    }

    /* Adjust headers for mobile */
    .mega-menu-content h5 {
        color: var(--header-text) !important;
        margin-top: 1rem;
        padding-left: 0.5rem !important;
        font-size: 0.9rem;
    }
    
    /* Adjust menu items for mobile */
    .mega-menu-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Light white line for divider */
        padding: 0.75rem 0;
    }
    
    .mega-menu-item * {
        color: var(--header-text) !important; /* Force all nested text (h6, p) to off-white */
    }
    
    .mega-menu-content .border-start h6, 
    .mega-menu-content .border-start p {
    color: var(--header-text) !important; /* Force the header text to white */
    }

    /* Smaller hero text on mobile */
    .hero-section h1 {
        font-size: 2.5rem;
    }
}