/* DhatuHub Industrial - Core Design System & Styling Rules
   Theme: High-End Industrial, Metal & Logistics Platform
   Colors: Deep Navy Blue, Metallic Slate, Clean Platinum, and Radiant Orange/Gold Accents
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette Variables */
    --primary-deep: #0B192C;     /* Dark Slate/Blue */
    --secondary-slate: #1E3E62;  /* Corporate Slate Blue */
    --metallic-dark: #343F56;    /* Dark Steel Gray */
    --metallic-light: #8D93AB;   /* Silver/Slate Gray */
    --accent-orange: #FF6B35;    /* Copper Orange Accent */
    --accent-gold: #F59E0B;      /* Warm Gold Accent */
    --light-platinum: #F9FAFB;   /* Off-White Platinum */
    --body-bg: #FFFFFF;
    --text-dark: #1E293B;        /* Cool Gray 800 */
    --text-muted: #64748B;       /* Cool Gray 500 */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* Global Styles */
body {
    font-family: var(--font-body);
    background-color: var(--body-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-deep);
}

a {
    color: var(--secondary-slate);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-orange);
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--primary-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--metallic-dark);
    border: 2px solid var(--primary-deep);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* 1. Global Components */
.bg-deep-navy {
    background-color: var(--primary-deep) !important;
}

.text-accent-orange {
    color: var(--accent-orange) !important;
}

.text-accent-gold {
    color: var(--accent-gold) !important;
}

.btn-premium {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #E65F2B 100%);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: var(--transition-smooth);
}

.btn-premium:hover, .btn-premium:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    color: white;
    background: linear-gradient(135deg, #FF7B4A 0%, #D44E1A 100%);
}

.btn-outline-premium {
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    background: transparent;
    transition: var(--transition-smooth);
}

.btn-outline-premium:hover {
    background-color: var(--accent-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* 2. Top Info Bar & Navigation */
.top-bar {
    background-color: #060e19;
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.navbar-custom {
    background-color: rgba(11, 25, 44, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
    background-color: var(--primary-deep);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-custom .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    letter-spacing: -0.5px;
}

.navbar-custom .navbar-brand span {
    color: var(--accent-orange);
}

.navbar-custom .nav-link {
    color: #e2e8f0;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-item.active .nav-link {
    color: var(--accent-orange);
}

.navbar-custom .dropdown-menu {
    background-color: var(--primary-deep);
    border: 1px solid var(--secondary-slate);
    border-radius: 6px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.navbar-custom .dropdown-item {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
}

.navbar-custom .dropdown-item:hover {
    background-color: var(--secondary-slate);
    color: white;
}

/* 3. Hero Section */
.hero-section {
    background: linear-gradient(rgba(11, 25, 44, 0.85), rgba(11, 25, 44, 0.85)), url('../images/hero_industrial_bg.jpg') no-repeat center center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Background fallback design patterns using CSS gradients for visual excellence */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 107, 53, 0.15), transparent 45%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 650px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* 4. Section Styling & Grid Cards */
.section-padding {
    padding: 5.5rem 0;
}

.bg-platinum {
    background-color: var(--light-platinum);
}

.section-tag {
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-orange);
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-orange);
    margin-top: 15px;
    border-radius: 2px;
}

.section-title.center-align::after {
    margin: 15px auto 0 auto;
}

/* Product Cards */
.product-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(11, 25, 44, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
}

.product-image-container {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image-container img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-deep);
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.product-badge.badge-inquiry {
    background-color: var(--accent-orange);
}

.product-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 1.25rem;
    color: var(--primary-deep);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: auto;
    margin-bottom: 1.25rem;
}

/* Service Cards */
.service-item-box {
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: var(--transition-smooth);
    height: 100%;
}

.service-item-box:hover {
    background-color: var(--primary-deep);
    border-color: var(--primary-deep);
    transform: translateY(-5px);
}

.service-item-box:hover h4,
.service-item-box:hover p {
    color: white;
}

.service-item-box:hover p {
    color: #94a3b8 !important;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.service-item-box:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-gold);
}

/* Statistics Stats counter */
.stats-banner {
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--secondary-slate) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    border-top: 4px solid var(--accent-orange);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-orange);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Why Choose Us features list */
.feature-row {
    margin-bottom: 2rem;
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-right: 1.25rem;
}

/* 5. Testimonial Slider styling */
.testimonial-card {
    background-color: white;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(11,25,44,0.05);
    border-left: 5px solid var(--accent-orange);
    position: relative;
    height: 100%;
}

.testimonial-card::after {
    content: "\F610"; /* Quotes icon */
    font-family: "bootstrap-icons";
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 3rem;
    color: #f1f5f9;
    z-index: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-deep);
    margin-right: 1rem;
}

/* 6. Blog Card Feed */
.blog-card {
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.blog-meta span {
    margin-right: 1rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.blog-readmore {
    font-weight: 600;
    color: var(--secondary-slate);
    margin-top: auto;
}

.blog-readmore:hover {
    color: var(--accent-orange);
}

/* 7. Loading Animation */
.page-loader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--primary-deep);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* From Uiverse.io by bociKond */ 
.loader {
  width: 44.8px;
  height: 44.8px;
  color: var(--accent-orange); /* Styled with brand accent-orange */
  position: relative;
  background: radial-gradient(11.2px,currentColor 94%,#0000);
  margin-bottom: 1.5rem;
}

.loader:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(10.08px at bottom right,#0000 94%,currentColor) top    left,
          radial-gradient(10.08px at bottom left ,#0000 94%,currentColor) top    right,
          radial-gradient(10.08px at top    right,#0000 94%,currentColor) bottom left,
          radial-gradient(10.08px at top    left ,#0000 94%,currentColor) bottom right;
  background-size: 22.4px 22.4px;
  background-repeat: no-repeat;
  animation: loader-anim 1.5s infinite cubic-bezier(0.3,1,0,1);
}

@keyframes loader-anim {
  33% {
    inset: -11.2px;
    transform: rotate(0deg);
  }

  66% {
    inset: -11.2px;
    transform: rotate(90deg);
  }

  100% {
    inset: 0;
    transform: rotate(90deg);
  }
}

.loader-brand {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
}

.loader-brand span {
    color: var(--accent-orange);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 8. Widgets & Actionables */
/* WhatsApp Floating Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-widget:hover {
    transform: scale(1.1) rotate(10deg);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Back To Top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-orange);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    border: none;
    transition: var(--transition-smooth);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-deep);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(11, 25, 44, 0.4);
}

/* Dynamic Page Headers */
.page-banner-section {
    background: linear-gradient(rgba(11, 25, 44, 0.9), rgba(11, 25, 44, 0.9)), url('../images/page_header_bg.jpg') no-repeat center center/cover;
    padding: 6rem 0 4rem 0;
    color: white;
    text-align: left;
}

.breadcrumb-custom {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.breadcrumb-custom a {
    color: #cbd5e1;
}

.breadcrumb-custom a:hover {
    color: var(--accent-orange);
}

.breadcrumb-custom .active {
    color: var(--accent-gold);
}

/* 9. Contact Info Card Blocks */
.contact-info-card {
    background-color: var(--light-platinum);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: var(--transition-smooth);
}

.contact-info-card:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--accent-orange);
    font-size: 1.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

/* Map frame design */
.map-container {
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Dashboard Sidebar Admin Design */
.admin-sidebar {
    background-color: var(--primary-deep);
    min-height: 100vh;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.admin-sidebar .sidebar-heading {
    padding: 1.5rem 1.25rem;
    font-size: 1.25rem;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-sidebar .nav-link {
    color: #cbd5e1;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: var(--secondary-slate);
    border-left: 4px solid var(--accent-orange);
}

.admin-top-navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border-bottom: 1px solid #e2e8f0;
}

.admin-card-metric {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    transition: var(--transition-smooth);
}

.admin-card-metric:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* 10. Footer Premium Contrast & Typography Fixes */
footer.bg-deep-navy {
    color: #e2e8f0 !important;
}

footer.bg-deep-navy h4,
footer.bg-deep-navy h5 {
    color: #ffffff !important;
}

footer.bg-deep-navy .text-muted {
    color: #cbd5e1 !important; /* Brighter slate for better contrast */
}

footer.bg-deep-navy a.text-muted {
    color: #cbd5e1 !important;
    transition: var(--transition-smooth);
}

footer.bg-deep-navy a.text-muted:hover,
footer.bg-deep-navy a:hover,
footer.bg-deep-navy a.hover-accent:hover {
    color: var(--accent-orange) !important;
}

footer.bg-deep-navy hr.border-secondary {
    border-color: rgba(255, 255, 255, 0.15) !important;
    opacity: 1 !important;
}

/* 11. Technical Table High Contrast Styles */
.table-responsive table {
    border-color: #dee2e6 !important;
}

.table-responsive table th {
    color: #ffffff !important;
    font-weight: 700 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    vertical-align: middle !important;
}

.table-responsive table td {
    color: #1e293b !important; /* Extremely high contrast dark blue/slate */
    font-weight: 500 !important;
}

.table-responsive table tr:hover td {
    color: #0b192c !important;
    background-color: rgba(0, 0, 0, 0.02) !important;
}

.table-responsive table td.text-muted {
    color: #475569 !important; /* Darker slate for readability, not too greyed out */
}

/* Make sure GU20 highlighted row is extremely readable and pops */
.table-responsive table tr.table-warning td {
    color: #92400e !important; /* Highly legible dark amber for highlighted text */
    background-color: rgba(245, 158, 11, 0.08) !important;
}

.table-responsive table tr.table-warning td:first-child {
    color: var(--accent-orange) !important;
    font-weight: 800 !important;
}
