:root {
    --primary-color: #0066cc;
    --secondary-color: #00a86b;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ========== Top Bar ========== */
.top-bar {
    font-size: 0.85rem;
}

.top-bar a:hover {
    text-decoration: underline !important;
}

/* ========== Navigation ========== */
.navbar {
    transition: all 0.3s ease;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333 !important;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* ========== Gradient Utilities ========== */
.gradient-primary {
    background: #0066cc;
}

.gradient-secondary {
    background: linear-gradient(135deg, #e6f7f0 0%, #e8f4fd 100%);
}

/* ========== Hero Section ========== */
.hero-section {
    background: linear-gradient(135deg, #e8f4fd 0%, #dceefb 40%, #e6f7f0 100%);
    min-height: 420px;
    max-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    color: #1a2b4a;
    font-weight: 700;
    line-height: 1.15;
}

.hero-section p {
    color: #4a5568;
    font-size: 1.05rem;
}

.hero-carousel-img {
    height: 350px;
    object-fit: cover;
    width: 100%;
}

#heroCarousel .carousel-item {
    transition: opacity 1.2s ease-in-out;
}

/* Sectors We Serve card images */
.sectors-card-img {
    height: 200px;
    object-fit: contain;
    width: 100%;
}

/* ========== Page Header (inner pages) ========== */
.page-header {
    background: linear-gradient(135deg, #e8f4fd 0%, #dceefb 40%, #e6f7f0 100%);
    color: #1a2b4a !important;
}

.page-header h1 {
    color: #1a2b4a !important;
}

.page-header p {
    color: #4a5568 !important;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: #0066cc !important;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: #6b7280;
}

/* ========== CTA Section ========== */
.cta-section {
    background: linear-gradient(135deg, #e8f4fd 0%, #dceefb 40%, #e6f7f0 100%);
    color: #1a2b4a !important;
}

.cta-section h2 {
    color: #1a2b4a !important;
}

.cta-section p {
    color: #4a5568 !important;
}

.cta-section .btn-light {
    background: #0066cc;
    color: #fff !important;
    border: none;
}

.cta-section .btn-light:hover {
    background: #0052a3;
}

.cta-section .btn-outline-light {
    color: #0066cc !important;
    border-color: #0066cc;
}

.cta-section .btn-outline-light:hover {
    background: #0066cc;
    color: #fff !important;
}

/* ========== Product Cards ========== */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

.product-img {
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* ========== Service Cards ========== */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f0fff4 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== Location Cards ========== */
.location-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.location-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    transform: translateX(5px);
}

/* ========== Stat Cards ========== */
.stat-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

/* ========== Contact Info Cards ========== */
.contact-info {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

/* ========== Icon Circle ========== */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ========== Process Steps ========== */
.process-step {
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========== Form Styling ========== */
.form-control,
.form-select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* ========== Buttons ========== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.btn-success {
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 107, 0.3);
}

.btn-light {
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.btn-outline-primary {
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

/* ========== Footer ========== */
footer {
    background-color: var(--dark-color);
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* ========== Accessibility ========== */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0052a3;
}

/* ========== Shadow Utilities ========== */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* ========== Badge ========== */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}

/* ========== List Styling ========== */
.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* ========== Rounded Corners ========== */
.rounded-3 {
    border-radius: 15px;
}

/* ========== Text ========== */
.text-muted {
    color: #666 !important;
}

/* ========== Spacing ========== */
section {
    scroll-margin-top: 80px;
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .display-6 {
        font-size: 1.4rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

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

    .product-img {
        height: 200px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.product-card,
.location-card,
.stat-card,
.contact-info,
.process-step {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== Floating Contact Button ========== */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 102, 204, 0.6);
    color: #fff !important;
}

/* ========== Modal Overrides ========== */
#contactModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#contactModal .form-control,
#contactModal .form-select {
    border-radius: 6px;
    padding: 8px 12px;
}

/* ========== Category Nav Dropdown ========== */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 0.5rem 0;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    color: #333;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f0f7ff;
    color: var(--primary-color);
}

/* ========== Category Page Content ========== */
.category-features {
    list-style: none;
    padding: 0;
}

.category-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.category-features li:last-child {
    border-bottom: none;
}
