:root {
    /* LIGHT THEME (Default) */
    --primary-bg: #ffffff;
    --secondary-bg: #f8f9fa;
    --text-color: #333333;
    --text-muted: #6c757d;
    --heading-color: #1a2942;
    
    --brand-color: #0056b3;
    --accent-color: #0056b3;
    
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.98);
    --nav-text: #1a2942;
    
    --footer-bg: #f8f9fa;
    --footer-text: #333333;
    --footer-heading: #1a2942;
    
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    
    --white: #ffffff;
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

[data-theme="dark"] {
    /* DARK THEME */
    --primary-bg: #051024;
    --secondary-bg: #0b1d3a;
    --text-color: #cbd5e1;
    --text-muted: #94a3b8;
    --heading-color: #ffffff;
    
    --brand-color: #3b82f6; 
    --accent-color: #3b82f6;
    
    --nav-bg: rgba(11, 29, 58, 0.95);
    --nav-bg-scrolled: rgba(11, 29, 58, 0.98);
    --nav-text: #ffffff;
    
    --footer-bg: #020813;
    --footer-text: #a0aabf;
    --footer-heading: #ffffff;
    
    --card-bg: #112647;
    --border-color: #1e3a68;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--primary-bg);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--heading-color);
}

p {
    color: var(--text-color);
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-light {
    background-color: var(--secondary-bg) !important;
}

.text-primary {
    color: var(--brand-color) !important;
}

.bg-white {
    background-color: var(--card-bg) !important;
}

/* Global Button */
.btn-primary-custom {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.3);
}

.btn-primary-custom:hover {
    background-color: #004494;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 86, 179, 0.4);
}

[data-theme="dark"] .btn-primary-custom:hover {
    background-color: #2563eb;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--heading-color);
    border: 2px solid var(--heading-color);
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--heading-color);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

/* Navbar */
.custom-navbar {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.custom-navbar.scrolled {
    background-color: var(--nav-bg-scrolled);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 12px 0;
}

.navbar-brand {
    color: var(--heading-color) !important;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.navbar-brand span {
    color: var(--accent-color);
    font-weight: 700;
}

.navbar-toggler i {
    color: var(--heading-color);
}

.nav-link {
    color: var(--nav-text) !important;
    font-weight: 600;
    margin: 0 12px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 5px;
}

/* Use before for underline to preserve dropdown caret in ::after */
.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before, .nav-link.active::before {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

/* Call Now Button & Theme Toggle in Navbar */
.navbar .btn-outline-custom {
    border-radius: 50px;
    padding: 8px 24px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar .btn-outline-custom i {
    font-size: 1rem;
}

#theme-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: var(--border-color);
    color: var(--heading-color);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background-color: var(--card-bg);
    border-color: var(--heading-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(11, 29, 58, 0.8), rgba(11, 29, 58, 0.6)), url('../images/hero-bg.png') no-repeat center center/cover;
    background-attachment: fixed;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
    color: var(--white);
}

/* Hero buttons override */
.hero-content .btn-outline-custom {
    color: var(--white);
    border-color: var(--white);
}

.hero-content .btn-outline-custom:hover {
    background-color: var(--white);
    color: #000;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 30px;
    color: var(--heading-color);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--brand-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

[data-theme="dark"] .section-title {
    color: var(--heading-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Dark Section overrides for specific static dark sections */
.dark-section {
    background-color: #0b1d3a !important; /* Always dark */
    color: #fff !important;
}

.dark-section .section-title, .dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4, .dark-section h5, .dark-section p, .dark-section .stat-number, .dark-section .stat-text {
    color: #fff !important;
}

/* Product Cards */
.product-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 1.25rem;
    color: var(--heading-color);
    margin-bottom: 15px;
}

/* Stats Counter */
.stat-box {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-color);
    margin-bottom: 5px;
}

.stat-text {
    color: var(--text-color);
    font-weight: 500;
}

/* Why Choose Us */
.feature-box {
    display: flex;
    margin-bottom: 30px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.feature-box:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
}

.feature-content h4 {
    font-size: 1.2rem;
    color: var(--heading-color);
    margin-bottom: 10px;
}

/* Industries Grid */
.industry-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}

.industry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(11,29,58,0.9), rgba(11,29,58,0.2));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: #fff;
}

.industry-overlay h4 {
    margin: 0;
    font-size: 1.2rem;
    transform: translateY(10px);
    transition: transform 0.3s;
    color: #fff;
}

.industry-item:hover img {
    transform: scale(1.1);
}

.industry-item:hover .industry-overlay h4 {
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.footer-logo {
    color: var(--footer-heading);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: inline-block;
    text-decoration: none;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-heading {
    color: var(--footer-heading);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p, .footer-contact i {
    color: var(--footer-text);
}
.footer-contact i {
    color: var(--accent-color);
    margin-right: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--border-color);
    color: var(--footer-heading);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--footer-text);
}

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: var(--brand-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Inner Page Header */
.inner-header {
    background: linear-gradient(rgba(11, 29, 58, 0.8), rgba(11, 29, 58, 0.8)), url('https://images.unsplash.com/photo-1565515268480-4560b0e352ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    padding: 120px 0 60px;
    color: white;
    text-align: center;
}
.inner-header h1 {
    color: #fff;
}

.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin-top: 15px;
    justify-content: center;
}

.breadcrumb-custom .breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: rgba(255,255,255,0.7);
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.7);
}

/* Mega Menu simple */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    background-color: var(--card-bg);
}

.dropdown-item {
    color: var(--text-color);
}

.dropdown-item:hover {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--accent-color);
}

/* Cards & Utility overrides */
.card {
    background-color: var(--card-bg);
    border-color: var(--border-color) !important;
}
.card-title {
    color: var(--heading-color) !important;
}
.card-text {
    color: var(--text-color) !important;
}

.form-control, .form-select {
    background-color: var(--secondary-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}
.form-label {
    color: var(--heading-color);
}
