/*
 *
 * WebStraNet Design System
 * =======================================================================
 *
 * Copyright © 2026 WebStraNet Technologies Pvt Ltd.
 * All Rights Reserved.
 *
 * This stylesheet is part of the proprietary WebStraNet branding engine.
 *
 * @project   WebStraNet Public UI
 * @author    WebStraNet Design Team
 * @license   Proprietary
 */

/* FONTS & ICONS (MUST BE AT THE TOP) --- */
@import url("https://cdn.jsdelivr.net/npm/@mdi/font@7.2.96/css/materialdesignicons.min.css");

/* --- BASE RESET --- */
body {
    font-family: var(--bs-body-font-family);
    overflow-x: hidden !important;
    font-size: 16px;
    color: var(--bs-body-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bs-body-font-family);
    line-height: 1.5;
    font-weight: 600 !important;
    color: var(--bs-heading-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none !important;
    color: var(--bs-link-color);
    transition: all .3s;
}
a:hover { color: var(--bs-link-hover-color); }

/* --- LAYOUT HELPERS --- */
.section { padding: 80px 0; position: relative; }
.section-two { padding: 60px 0; position: relative; }

/* Hero Spacing */
.bg-half-170 { 
    padding: 170px 0; 
    background-size: cover; 
    align-self: center; 
    position: relative; 
    background-position: center center; 
}
@media (max-width: 768px) {
    .bg-half-170 { padding: 120px 0; }
}

/* Overlays & Shapes */
.bg-overlay { background-color: rgba(60, 72, 88, .7); position: absolute; top: 0; right: 0; left: 0; bottom: 0; width: 100%; height: 100%; }
.bg-overlay-white { background-color: rgba(255, 255, 255, .9); }
.shape { position: absolute; pointer-events: none; right: 0; bottom: -1px; left: 0; z-index: 1; }
.shape > svg { transform: scale(2); width: 100%; height: auto; transform-origin: top center; }

/* --- 4. TYPOGRAPHY UTILITIES --- */
.title-heading { line-height: 26px; }
.title-heading .heading { font-size: 40px !important; letter-spacing: 1px; font-weight: 800 !important; }
.title-heading .para-desc { font-size: 18px; font-weight: 400; max-width: 600px; }

.section-title { position: relative; }
.section-title .title { letter-spacing: 0.5px; font-size: 30px !important; font-weight: 700 !important; }
.section-title .para-desc { max-width: 600px; margin: 0 auto; font-size: 16px; }

/* --- 5. COMPONENT STYLES --- */

/* Badges */
.alert.alert-pills {
    border-radius: 30px;
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #f1f1f1;
    margin-bottom: 20px;
}
.alert.alert-pills .badge { 
    padding: 6px 12px; font-weight: 600; letter-spacing: 0.5px; margin-right: 8px;
}
.alert.alert-pills .content { 
    font-weight: 600; font-size: 13px; color: var(--bs-heading-color);
}

/* Hero Decoration */
.dashboard-shape-two { position: relative; z-index: 1; }
.dashboard-shape-two:before {
    content: "";
    position: absolute;
    bottom: 0; right: 0; width: 100%; height: 100%; z-index: -1;
    background-color: rgba(var(--bs-primary-rgb), 0.15);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: rotate(-10deg) scale(1.2);
}
.app-image-fluid img { 
    width: 100%; height: auto; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

/* Cards */
.card {
    border: 1px solid #E5E7EB;
    box-shadow: 0 10px 15px -3px rgba(70, 0, 115, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(70, 0, 115, 0.1); }

/* Buttons */
.btn {
    padding: 10px 24px;
    font-size: 15px;
    letter-spacing: 0.5px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}
.btn-pills { border-radius: 30px; }

/* Forms */
.form-control {
    background-color: transparent;
    border: 1px solid #E5E7EB;
    color: var(--bs-heading-color);
    height: 46px;
    font-size: 14px;
    border-radius: 8px;
}

/* =========================================================================
   NAVIGATION CORE
   ========================================================================= */

#topnav {
    position: fixed;
    right: 0; left: 0; top: 0;
    z-index: 1030;
    background-color: transparent;
    border: 0;
    transition: all .5s ease;
    padding: 15px 0;
}

/* Container: Flexbox Alignment */
#topnav .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important; 
}

/* Logo */
.logo {
    font-weight: 700;
    font-size: 24px;
    padding: 0;
    letter-spacing: 1px;
    line-height: 1;
    color: var(--bs-heading-color) !important;
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Sticky State */
#topnav.nav-sticky {
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    padding: 10px 0;
}

/* Menu Items */
#topnav .navigation-menu { 
    list-style: none; margin: 0; padding: 0; display: flex; align-items: center; 
}

#topnav .navigation-menu > li { 
    display: block; position: relative; margin: 0 12px; 
}

/* GENERAL LINK STYLES (The Default) */
#topnav .navigation-menu > li > a {
    display: block;
    color: var(--bs-heading-color);
    font-size: 15px;
    background-color: transparent !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 24px;
    text-transform: capitalize;
    padding-left: 5px;
    padding-right: 5px;
}

#topnav .navigation-menu > li > a:hover, 
#topnav .navigation-menu > li.active > a {
    color: var(--bs-primary) !important;
}

/* --- DESKTOP BEHAVIOR (min-width: 992px) --- */
@media (min-width: 992px) {
    #navigation { 
        margin-left: auto; 
        display: flex !important; 
        align-items: center; 
        background-color: transparent !important;
        height: auto !important;
        overflow: visible !important;
    }

    #topnav .navigation-menu { display: flex; align-items: center; }

    /* Link Layout */
    #topnav .navigation-menu > li > a {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    /* Caret Arrow (Desktop) */
    #topnav .navigation-menu > li > a .menu-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
        color: var(--bs-primary);
    }
    #topnav .navigation-menu > li > a .menu-arrow i {
        font-size: 18px;
        line-height: 1;
        font-weight: bold;
    }

    /* Hover States */
    #topnav .navigation-menu > li.has-submenu:hover > a .menu-arrow { transform: rotate(180deg); }
    
    #topnav .navigation-menu > li.has-submenu:hover > .submenu {
        visibility: visible; opacity: 1; margin-top: 10px;
    }

    /* Dropdown Container */
    #topnav .navigation-menu > li .submenu {
        position: absolute;
        top: 100%; left: -20px; 
        z-index: 1000;
        padding: 15px 0;
        list-style: none;
        min-width: 220px;
        visibility: hidden; opacity: 0;
        margin-top: 15px;
        transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 12px;
        background-color: #fff;
        box-shadow: 0 10px 40px rgba(0,0,0,0.08);
        border: 1px solid #f3f4f6;
    }

    /* Dropdown Items */
    #topnav .navigation-menu > li .submenu li a {
        display: block;
        padding: 14px 28px;
        margin-bottom: 6px;
        border-radius: 6px;
        clear: both;
        white-space: nowrap;
        font-size: 15px;
        color: #4B5563 !important;
        transition: all 0.3s;
    }
    #topnav .navigation-menu > li .submenu li:last-child a {
        margin-bottom: 0;
    }
    #topnav .navigation-menu > li .submenu li.active > a,
    #topnav .navigation-menu > li .submenu li a.active {
        color: var(--bs-primary) !important;
        background-color: #f3eaff;
    }
    #topnav .navigation-menu > li .submenu li a:hover {
        color: var(--bs-primary) !important;
        background-color: #f9fafb;
        padding-left: 28px;
    }

    /* Contact Button Visibility */
    #topnav .navigation-menu > li.buy-button-menu > a.btn {
        background-color: var(--bs-primary) !important;
        border: 1px solid var(--bs-primary) !important;
        color: #fff !important;
        opacity: 1 !important;
        padding: 8px 24px !important;
        display: inline-block !important;
    }
    /* 2. Hover State */
    #topnav .navigation-menu > li.buy-button-menu > a.btn:hover {
        background-color: var(--bs-secondary) !important;
        border-color: var(--bs-secondary) !important;
        color: #fff !important;
        transform: translateY(-2px);
    }
    
    #topnav .navigation-menu > li.has-submenu > a:after { display: none !important; }
}

/* --- MOBILE BEHAVIOR (max-width: 991px) --- */
@media (max-width: 991px) {
    #topnav { background-color: #fff; box-shadow: 0 0 3px rgba(22, 28, 45, .15); }
    
    .menu-extras { order: 2; margin-left: auto; display: flex; align-items: center; } 
    
    #navigation {
        width: 100%; order: 3; display: none;
        height: auto; max-height: 400px; overflow-y: auto;
        background-color: #fff; border-top: 1px solid #eee; margin-top: 10px;
    }
    #navigation.open { display: block; }
    
    #topnav .navigation-menu { display: block; padding: 10px 0; }
    #topnav .navigation-menu > li { float: none; margin: 0; border-bottom: 1px solid #f9f9f9; }
    
    /* Mobile Link Style */
    #topnav .navigation-menu > li > a { 
        padding: 12px 20px; 
        border-bottom: 1px solid #f5f5f5;
        display: flex;
        justify-content: space-between; 
        align-items: center;
        color: #333;
    }
    
    /* Mobile Caret */
    #topnav .navigation-menu > li.has-submenu > a .menu-arrow {
        display: inline-flex; color: var(--bs-primary); font-size: 18px; width: 24px;
    }
    #topnav .navigation-menu > li.has-submenu.open > a .menu-arrow { transform: rotate(180deg); }
    
    /* Mobile Submenu */
    #topnav .navigation-menu > li .submenu {
        display: none; list-style: none; padding-left: 20px; background: #f9fafc;
    }
    #topnav .navigation-menu > li.has-submenu.open > .submenu { display: block; }
    
    #topnav .navigation-menu > li.buy-button-menu { 
        margin: 15px 20px !important;
        border-bottom: none !important;
    }
    
    #topnav .navigation-menu > li.buy-button-menu > a.btn { 
        width: 100%; 
        text-align: center; 
        background-color: var(--bs-primary) !important;
        color: #ffffff !important;
        border: 1px solid var(--bs-primary) !important;
        display: block !important; 
        justify-content: center;
    }
}

/* --- FOOTER & ICONS --- */
.feature .icon, .service-wrapper .icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 80px; height: 80px;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    border-radius: 16px; font-size: 36px;
    margin-bottom: 24px;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.feature .icon .icon-shape, .service-wrapper .icon .icon-shape {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; z-index: -1;
}
.feature .icon i, .service-wrapper .icon i { line-height: 1; z-index: 2; }

/* Hover Effects */
.feature:hover .icon, .service-wrapper:hover .icon {
    background: var(--bs-primary); color: #fff;
    box-shadow: 0 15px 30px rgba(var(--bs-primary-rgb), 0.3); transform: translateY(-5px);
}
.feature:hover .icon i, .feature:hover .icon .text-primary,
.service-wrapper:hover .icon i, .service-wrapper:hover .icon .text-primary {
    color: #fff !important;
}

/* Footer Colors */
.bg-footer { background-color: #1E0033 !important; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.text-white-50 { color: rgba(255, 255, 255, 0.75) !important; }
.hover-white:hover { color: #ffffff !important; text-shadow: 0 0 10px rgba(255,255,255,0.5); transition: all 0.3s; }
.hover-primary:hover { color: var(--bs-primary) !important; transform: translateX(5px); transition: all 0.3s; }
.footer-links li a { display: flex; align-items: center; transition: all 0.3s; }
.bg-black { background-color: #0F0518 !important; }
.border-white-10 { border-color: rgba(255, 255, 255, 0.1) !important; }
.fs-7 { font-size: 14px; }
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 99;
    width: 40px; height: 40px; line-height: 40px; text-align: center;
    background: var(--bs-primary); color: #fff; border-radius: 8px;
    transition: all 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.back-to-top:hover { background: var(--bs-secondary); transform: translateY(-3px); color: #fff; }
.back-to-top i { font-size: 20px; }

/* =========================================
   SURGICAL FIX: DROPDOWN CARET ARROW
   ========================================= */
#topnav .navigation-menu > li > a .menu-arrow {
    display: inline-block !important;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.3s ease;
    line-height: 1;
}

/* 2. Target the Icon inside the span */
#topnav .navigation-menu > li > a .menu-arrow i {
    font-size: 18px !important;
    font-weight: bold;
    color: var(--bs-primary) !important; 
    display: block;
}

/* 3. Rotation on Hover (Desktop) */
@media (min-width: 992px) {
    #topnav .navigation-menu > li.has-submenu:hover > a .menu-arrow {
        transform: rotate(180deg);
    }
}

/* 4. Rotation on Click/Open (Mobile) */
@media (max-width: 991px) {
    #topnav .navigation-menu > li.has-submenu.open > a .menu-arrow {
        transform: rotate(180deg);
    }
}

/* 5. Nuke any legacy CSS arrows that might be conflicting */
#topnav .navigation-menu > li.has-submenu > a:after {
    display: none !important;
    content: none !important;
}

/* =========================================
   SURGICAL FIX: MOBILE HAMBURGER MENU
   ========================================= */

@media (max-width: 991px) {
    .menu-extras {
        display: flex !important;
        align-items: center;
        order: 2;
        margin-left: auto;
    }

    /* 2. Reset the Button Area */
    .navbar-toggle {
        border: 0;
        background-color: transparent !important;
        cursor: pointer;
        padding: 5px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 3. The Lines Container */
    .lines {
        width: 24px;
        display: block;
        position: relative;
        height: 18px;
    }

    /* 4. The Individual Lines (The Meat) */
    .lines span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: var(--bs-heading-color) !important;
        margin-bottom: 5px;
        transition: transform 0.5s ease;
        border-radius: 2px;
    }

    /* 5. Handle the "Open" State (Turn into X) */
    .navbar-toggle.open .lines span:first-child {
        transform: rotate(45deg);
        position: absolute;
        top: 8px;
    }

    .navbar-toggle.open .lines span:nth-child(2) {
        opacity: 0; /* Hide middle line */
    }

    .navbar-toggle.open .lines span:last-child {
        transform: rotate(-45deg);
        position: absolute;
        top: 8px;
        margin-bottom: 0;
    }
}

/* Hero Image Animation */
@keyframes floatImage {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

.dashboard-shape-two img {
    animation: floatImage 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.dashboard-shape-two {
    transform: scale(1.08);
}

/* Service Cards Animations */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.service-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.service-image-container img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-image-container:hover img {
  transform: scale(1.05);
}

.service-image-wrapper {
  position: relative;
  transition: all 0.4s ease;
}

.service-image-wrapper:hover {
  transform: translateY(-10px);
}

/* Service Gradient Backgrounds */
.service-gradient-purple {
  background: linear-gradient(135deg, rgba(161, 0, 255, 0.1) 0%, rgba(70, 0, 115, 0.05) 100%);
}

.service-gradient-cyan {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 200, 83, 0.05) 100%);
}

.service-gradient-orange {
  background: linear-gradient(135deg, rgba(255, 171, 0, 0.1) 0%, rgba(255, 61, 0, 0.05) 100%);
}

/* Service Image Card Styling */
.service-card-image {
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.service-card-image-marketing {
  border-radius: 20px;
  padding: 40px 30px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.service-card-image img {
  max-width: 100%;
  height: auto;
}

/* Arrow Bounce Animation */
.bounce-arrow {
  animation: bounce 2s infinite;
}

/* Icon Size Utility */
.icon-check { font-size: 20px; }
.icon-large { font-size: 48px; }
.icon-extra-large { font-size: 64px; }

/* Section Gradient Background */
.section-gradient-brand {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
  color: #fff;
}

/* Background Image Utilities */
.bg-map-center { 
  background: url('images/map.png') center center !important;
  background-size: cover;
}

.bg-app { 
  background-image: url('images/app/bg.jpg') !important;
  background-size: cover;
}

.bg-bg5 { 
  background: url('images/bg5.png') center center !important;
  background-size: cover;
}

.bg-bg6 { 
  background: url('images/bg6.png') center center !important;
  background-size: cover;
  height: auto;
}

.bg-app-01 { 
  background: url('images/app/01.jpg') center center !important;
  background-size: cover;
}

.bg-bg2 { 
  background: url('images/bg2.png') center center !important;
  background-size: cover;
  height: auto;
}

/* Avatar Size Utilities */
.avatar-50 { 
  width: 50px !important; 
  height: 50px !important; 
}

.max-w-100-block { 
  max-width: 100%; 
  height: auto; 
  display: block;
}

/* Modal Header Radius */
.modal-header-rounded { 
  border-radius: 12px 12px 0 0;
}

.modal-content-rounded { 
  border-radius: 12px;
}

/* Error/Exception Styling */
.error-scroll-300 { 
  max-height: 300px; 
  overflow-y: auto;
}

.max-height-300 { 
  max-height: 300px;
}

/* Pre Formatting */
.pre-wrap-text { 
  white-space: pre-wrap;
}

/* Dashboard Shape Shadow */
.dashboard-shadow { 
  position: relative;
  filter: drop-shadow(0 20px 50px rgba(161, 0, 255, 0.15));
}

/* Intro Text Styling */
.intro-text { 
  color: var(--bs-body-color); 
  line-height: 1.5;
}