:root {
    /* Brand Colors - Refined Palette */
    --primary-color: #f05a28;
    /* TechJockey Orange */
    --primary-hover: #d84a1d;
    --primary-light: rgba(240, 90, 40, 0.1);
    --secondary-color: #2c3e50;
    /* Dark Blue/Gray */
    --accent-color: #3498db;

    /* Text Colors */
    --text-main: #1a1a1a;
    --text-muted: #6c757d;
    --text-light: #ffffff;

    /* Backgrounds */
    --bg-body: #f8f9fa;
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.95);

    /* Borders */
    --border-color: #e9ecef;
    --border-radius: 8px;
    --border-radius-lg: 16px;

    /* Shadows - Industrial Grade */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Dimensions */
    --header-height: 80px;

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-color);
}

/* --- Header & Navigation (Industrial Polish) --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.nav-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 1rem;
    transition: all 0.2s;
}

.nav-icon-link i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.nav-icon-link:hover i {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-icon-link:hover span {
    color: var(--primary-color);
}

/* Sub-Nav alignment fix */
.sub-nav {
    top: var(--header-height) !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef !important;
    padding-top: 12px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
}

.sub-nav .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.5rem;
    color: var(--secondary-color) !important;
    opacity: 0.8;
}

.sub-nav .nav-link:hover {
    color: var(--primary-color) !important;
    opacity: 1;
    background: rgba(240, 90, 40, 0.05);
    border-radius: 4px;
}

/* --- Buttons (Industrial Style) --- */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff7e5f 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(240, 90, 40, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d84a1d 0%, #e65100 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 90, 40, 0.4);
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #17a2b8 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-outline-secondary {
    border-color: #e9ecef;
    color: var(--secondary-color);
    background: transparent;
    box-shadow: none;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: var(--text-main);
    transform: translateY(-2px);
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: var(--text-main);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 90, 40, 0.3);
    transform: translateY(-2px);
}

/* Light outline buttons (for dark backgrounds) */
.btn-outline-light {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
}

/* Secondary outline for dark areas */
.btn-outline-secondary.btn-lg,
.btn-outline-light.btn-lg {
    font-weight: 600 !important;
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 0 1.8rem;
    transition: background 0.2s;
}

.search-btn:hover {
    background-color: var(--primary-hover);
}

/* --- Cards (Scalable & Interactive) --- */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    background: #fff;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-img-wrapper {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at center, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.product-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
    background: var(--primary-light);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: var(--secondary-color);
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

/* --- Hero Section (Modern) --- */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
    padding: 5rem 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(240, 90, 40, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), #ff7e5f);
    border-radius: 3px;
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-dark);
    color: #adb5bd;
    padding: 6rem 0 3rem;
    position: relative;
}

.footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer a {
    color: #adb5bd;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.3s;
}

.footer a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(240, 90, 40, 0.4);
}

/* --- Utilities & Animations --- */
.hover-shadow {
    transition: var(--transition-base);
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

/* --- Enterprise Section --- */
.enterprise-card {
    transition: transform 0.3s ease;
}

.enterprise-card:hover {
    transform: translateY(-5px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.hover-opacity-100:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}

.transition-all {
    transition: all 0.3s ease;
}

/* --- Tabbed Product Section --- */
.nav-pills .nav-link {
    color: var(--text-muted);
    background: #f1f3f5;
    border-radius: 50px;
    padding: 10px 25px;
    margin: 0 5px;
    font-weight: 600;
    border: none;
}

.nav-pills .nav-link.active {
    background-color: var(--secondary-color);
    /* Dark button for active state */
    color: white;
}

.badge-bestseller {
    background-color: #28a745;
    color: white;
    position: absolute;
    top: 15px;
    left: 0;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 4px 4px 0;
    z-index: 2;
}

/* --- World-Class Product Card --- */
.product-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(240, 90, 40, 0.2);
}

.product-card .card-img-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at center, #f8f9fa 0%, #fff 70%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card img {
    max-height: 60px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s;
}

.product-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .badge-top {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.badge-bestseller-premium {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-hot-premium {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: white;
}

.save-badge-premium {
    background: #fff0eb;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 8px 0;
    text-align: center;
    border-top: 1px solid rgba(240, 90, 40, 0.1);
}

.price-highlight {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* --- Promo Banners --- */
.promo-banner {
    background-color: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.promo-banner:hover {
    transform: translateY(-5px);
}

/* --- Testimonial Banner --- */
.testimonial-banner {
    background-color: #1a2b3c;
    /* Dark Blue */
    color: white;
    border-radius: 20px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

/* --- FAQ Accordion --- */
.accordion-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    background: transparent;
}

.accordion-button {
    font-weight: 600;
    color: var(--secondary-color);
    background: transparent;
    box-shadow: none !important;
    padding: 20px 0;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background: transparent;
}

/* --- Premium Footer --- */
.footer-dark {
    background-color: #000000;
    color: #999;
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

.footer-dark h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-dark a {
    color: #999;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-dark a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    margin-top: 50px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
    transition: background 0.3s;
}

.social-btn:hover {
    background: var(--primary-color);
}

.app-btn {
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 15px;
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    margin-right: 10px;
}

.app-btn:hover {
    background: #333;
    color: white;
}

.blur-3xl {
    filter: blur(60px);
}

.grayscale {
    filter: grayscale(100%);
    transition: var(--transition-base);
}

.grayscale:hover {
    filter: grayscale(0%);
    opacity: 1 !important;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .promo-banner {
        margin-bottom: 1.5rem;
    }

    .testimonial-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .testimonial-banner img {
        margin: 0 auto 20px;
    }

    .testimonial-banner .text-white {
        max-width: 100% !important;
    }
}

@media (max-width: 767.98px) {
    :root {
        --header-height: 60px;
    }

    h1.display-4 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .footer-dark {
        padding: 40px 0 20px;
        text-align: center;
    }

    .footer-dark .col-lg-3 {
        margin-bottom: 2rem;
    }

    .footer-bottom .d-flex {
        justify-content: center;
    }

    .footer-bottom .text-center {
        margin-bottom: 1rem;
    }
}

/* --- Advanced Utilities --- */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.filter-blur-3xl {
    filter: blur(64px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-5px);
}

.bg-gradient-to-b {
    background: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.from-primary {
    --tw-gradient-from: var(--primary-color);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(240, 90, 40, 0));
}

.to-transparent {
    --tw-gradient-to: transparent;
}

/* --- Ultra Premium Footer --- */
.footer-ultra-dark {
    background-color: #05080f;
    color: #94a3b8;
    font-size: 0.95rem;
}

.hover-white {
    transition: color 0.2s ease;
}

.hover-white:hover {
    color: #fff !important;
}

.footer-ultra-dark .form-control:focus {
    box-shadow: 0 0 0 4px rgba(240, 90, 40, 0.1);
    border-color: var(--primary-color);
}

/* --- Mega Menu (Fixed Layout) --- */
.mega-menu {
    position: static !important;
}

.mega-menu .dropdown-menu {
    width: 100%;
    margin-top: 0;
    border-radius: 0 0 16px 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 2rem 0;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    left: 0;
    right: 0;
    position: absolute;
}

.mega-menu-col {
    padding: 0 15px;
    margin-bottom: 10px;
}

.mega-menu-col h6 {
    font-weight: 800;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.mega-menu-link {
    display: block;
    color: var(--text-muted);
    padding: 6px 0;
    font-size: 0.95rem;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-menu-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    background: rgba(240, 90, 40, 0.05);
    padding-left: 8px;
    border-radius: 4px;
}

/* --- Mobile Offcanvas --- */
.offcanvas-mobile {
    background-color: #fff;
}

.offcanvas-mobile .offcanvas-header {
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    font-weight: 600;
    color: var(--secondary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    padding-left: 10px;
}