/* ========================================
   NeoxBD IT - Main Stylesheet
   ======================================== */

/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-bangla);
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-bangla);
    font-weight: 700;
    line-height: 1.3;
}

a { transition: var(--transition); }
a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; }

/* Typography Helpers */
.font-english { font-family: var(--font-english); }

/* Section Padding */
.section-padding { padding: 80px 0; }
@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
}

.min-vh-60 { min-height: 60vh; }
.min-vh-50 { min-height: 50vh; }

/* Section Header */
.section-header .section-badge {
    display: inline-block;
    background: rgba(9, 132, 227, 0.1);
    color: var(--secondary-color);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.section-header .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-color);
}

.section-header .section-subtitle {
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .section-header .section-title { font-size: 1.6rem; }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.4s, visibility 0.4s;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-spinner {
    width: 50px; height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== NAVIGATION ========== */
.main-navbar {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}
.main-navbar.navbar-scrolled {
    box-shadow: var(--shadow-md);
}

.brand-text { font-family: var(--font-english); font-weight: 800; font-size: 1.5rem; }
.brand-neox { color: var(--secondary-color); }
.brand-bd { color: var(--accent-color); }
.brand-text-light .brand-neox { color: #fff; }
.brand-text-light .brand-bd { color: var(--accent-color); }
.brand-tagline { font-size: 0.6rem; font-weight: 400; color: var(--text-light); letter-spacing: 1px; }

.site-logo { max-height: 45px; width: auto; }

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--text-color) !important;
    font-size: 0.95rem;
    position: relative;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--secondary-color) !important;
}
.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
}
.navbar .dropdown-item {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.navbar .dropdown-item:hover {
    background: rgba(9, 132, 227, 0.08);
    color: var(--secondary-color);
}

.nav-actions .btn-link {
    color: var(--text-color);
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
    padding: 0.5rem;
}
.nav-actions .btn-link:hover { color: var(--secondary-color); }

.cart-badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px; height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Top Header */
.top-header { font-size: 0.85rem; }
.top-header a:hover { color: var(--accent-color) !important; }

/* Search Modal */
.modal-search .form-control {
    border: 2px solid var(--secondary-color);
}

/* ========== HERO ========== */
.hero-section { background: var(--bg-light); }

.hero-slider .hero-slide { padding: 2rem 0; }

.hero-title { line-height: 1.2; }

.hero-image-wrapper img {
    max-height: 450px;
    width: 100%;
    object-fit: cover;
}

.bg-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ========== DEMO CARDS ========== */
.demo-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.demo-card:hover .demo-card-image img {
    transform: scale(1.05);
}
.demo-card:hover .demo-card-overlay {
    opacity: 1 !important;
}
.demo-card .card-title a { color: var(--text-color); }
.demo-card .card-title a:hover { color: var(--secondary-color); }

.demo-card-overlay .btn { min-width: 100px; }

/* ========== CARDS ========== */
.card { border-radius: var(--radius-md); transition: var(--transition); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card .card-title a { color: var(--text-color); }
.blog-card .card-title a:hover { color: var(--secondary-color); }

/* Category Card */
.category-card .card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: var(--radius-md);
}
.category-card .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.category-card .category-icon i { transition: var(--transition); }
.category-card .card:hover .category-icon i {
    transform: scale(1.15);
    color: var(--accent-color) !important;
}

/* Feature Card */
.feature-card { transition: var(--transition); border-radius: var(--radius-md); }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-card .feature-icon i { transition: var(--transition); }
.feature-card:hover .feature-icon i { transform: scale(1.1); }

/* ========== SIDEBAR ========== */
.sidebar .widget {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.sidebar .widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--secondary-color);
    position: relative;
}
.sidebar .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}
.sidebar ul li a { color: var(--text-color); }
.sidebar ul li a:hover { color: var(--secondary-color); padding-left: 3px; }

.tagcloud a {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 4px 8px 0;
    background: var(--bg-light);
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px !important;
    transition: var(--transition);
}
.tagcloud a:hover { background: var(--secondary-color); color: #fff; }

/* ========== PAGINATION ========== */
.pagination-wrapper ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 5px;
}
.pagination-wrapper ul li a,
.pagination-wrapper ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.pagination-wrapper ul li a:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}
.pagination-wrapper ul li span.current {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}
.pagination-wrapper ul li span.dots {
    border: none;
    background: transparent;
}

/* ========== FOOTER ========== */
.site-footer { background: var(--bg-dark); }

.footer-widget h5 {
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.8rem;
}
.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 35px; height: 2px;
    background: var(--secondary-color);
}

.footer-menu li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    display: inline-block;
    transition: var(--transition);
}
.footer-menu li a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-demo-list li a:hover { color: #fff !important; }
.footer-contact li i { color: var(--secondary-color); }

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    margin-left: 6px;
}
.social-icon:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

.payment-icons i { opacity: 0.7; transition: var(--transition); }
.payment-icons i:hover { opacity: 1; }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px; left: 30px;
    width: 45px; height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover { transform: translateY(-3px); }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px; left: 90px;
    width: 55px; height: 55px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ========== BREADCRUMB ========== */
.breadcrumb-wrapper .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 8px 0;
}
.breadcrumb-wrapper .breadcrumb a { color: var(--text-color); }
.breadcrumb-wrapper .breadcrumb a:hover { color: var(--secondary-color); }

/* ========== SINGLE DEMO ========== */
.demo-detail-content h2,
.demo-detail-content h3 { margin-top: 1.5rem; margin-bottom: 1rem; }
.demo-detail-content ul { padding-right: 1.2rem; }
.demo-detail-content ul li { margin-bottom: 0.5rem; }

.feature-item { padding: 8px 12px; border-radius: var(--radius-sm); transition: var(--transition); }
.feature-item:hover { background: var(--bg-light); }

.sticky-sidebar { position: sticky; }

/* ========== SEARCH ========== */
.search-result-item { transition: var(--transition); }
.search-result-item:hover {
    transform: translateX(-3px);
    box-shadow: var(--shadow-md);
}

/* ========== COMMENTS ========== */
.comment-list .children { padding-right: 2rem; margin-top: 1rem; }
.comment-reply a { color: var(--secondary-color); text-decoration: none; font-size: 0.9rem; }
.comment-reply a:hover { color: var(--accent-color); }

/* ========== FORMS ========== */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(9, 132, 227, 0.15);
}
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(9, 132, 227, 0.15);
}

/* ========== WOOCOMMERCE OVERRIDES ========== */
.woocommerce ul.products li.product .onsale {
    background: var(--secondary-color);
}
.woocommerce .price { color: var(--accent-color) !important; font-weight: 700; }
.woocommerce .star-rating span { color: #fdcb6e; }
.woocommerce div.product .product_title { font-size: 1.8rem; }
.woocommerce a.added_to_cart { color: var(--secondary-color); }

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    font-size: 0.8rem;
}

/* ========== OWL CAROUSEL CUSTOM ========== */
.owl-theme .owl-dots .owl-dot span {
    background: #ccc;
    width: 10px; height: 10px;
    transition: var(--transition);
}
.owl-theme .owl-dots .owl-dot.active span {
    background: var(--secondary-color);
    width: 30px;
    border-radius: 10px;
}
.owl-theme .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px; height: 45px;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: var(--shadow-md);
    font-size: 1.2rem !important;
    transition: var(--transition);
}
.owl-theme .owl-nav button:hover { background: var(--secondary-color) !important; color: #fff !important; }
.owl-theme .owl-prev { left: -20px; }
.owl-theme .owl-next { right: -20px; }
@media (max-width: 768px) {
    .owl-theme .owl-nav button { display: none; }
}

/* ========== CTA SECTION ========== */
.cta-section { padding: 80px 0; }
.cta-section .opacity-90 { opacity: 0.9; }

/* ========== FILTER SECTION ========== */
.filter-btn { transition: var(--transition); border-radius: 50px; font-size: 0.85rem; }

/* ========== DEMO META ========== */
.demo-meta .meta-item { min-width: 100px; }

.demo-rating .fas.fa-star-half-alt,
.demo-rating .far.fa-star { font-size: 0.85rem; }

/* ========== SOCIAL SHARE ========== */
.social-share .btn-sm {
    width: 32px; height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    font-size: 0.85rem;
}
.btn-facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.btn-facebook:hover { background: #166fe5; color: #fff; }
.btn-twitter { background: #1da1f2; color: #fff; border-color: #1da1f2; }
.btn-twitter:hover { background: #1a91da; color: #fff; }
.btn-linkedin { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.btn-linkedin:hover { background: #0958a8; color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn-whatsapp:hover { background: #20bd5a; color: #fff; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1199px) {
    .owl-theme .owl-prev { left: -10px; }
    .owl-theme .owl-next { right: -10px; }
}

@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1050;
    }
    .nav-actions { margin-top: 10px; justify-content: center; }
}

@media (max-width: 767px) {
    .hero-title { font-size: 1.8rem; }
    .section-padding { padding: 40px 0; }
    .demo-meta .meta-item { min-width: 80px; }
    .back-to-top { bottom: 20px; left: 20px; width: 40px; height: 40px; }
    .whatsapp-float { bottom: 20px; left: 70px; width: 45px; height: 45px; font-size: 22px; }
    .search-result-item { flex-direction: column; }
}

@media (max-width: 575px) {
    .hero-title { font-size: 1.5rem; }
    .hero-actions .btn { width: 100%; }
    .demo-meta { flex-direction: column; gap: 10px; }
    .top-header { display: none; }
}

/* ========== BANGLA FONT FIXES ========== */
.hind-siliguri { font-family: 'Hind Siliguri', sans-serif; }

/* ========== PRINT ========== */
@media print {
    .top-header, .main-navbar, .preloader,
    .whatsapp-float, .back-to-top,
    .footer-social, .payment-icons,
    .demo-sidebar-card, .social-share { display: none !important; }
}

/* ========== ADMIN BAR FIX ========== */
.admin-bar .sticky-top { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .sticky-top { top: 46px; }
}
