/* Color Variables */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1e40af;
    --accent-teal: #0d9488;
    --accent-orange: #f97316;
    --light-bg: #f8fafc;
    --medium-bg: #f1f5f9;
    --primary-dark: #1F2937;
    --primary-accent: #3B82F6;
    --primary-light: #F9FAFB;
    --primary-soft: #D1D5DB;
    --primary-accent-soft: #6EE7B7;
}

body {
    background: var(--primary-light);
    background-image: url('../images/infrastructure-bg.svg');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #1a1a1a;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

ul li::marker {
    color: var(--primary-accent);
}

/* Site Title Text Styling */
.navbar-brand .site-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    display: inline-block;
}

.navbar-brand:hover .site-title {
    color: var(--primary-accent);
}

/* Reduce gap between menu and content */
#body-wrapper .container {
    padding-top: 1rem;
}

/* Add space between h1 and h2 on title-h1h2 pages */
.title-h1h2 h1 + h2 {
    margin-top: 1.5rem;
}

/* Button Styling - Removed custom colors, using theme defaults */

/* Icon Spacing */
.fa, .fa-solid {
    margin-right: 0.5rem;
}

/* Heading Text Colors */
h2 {
    color: var(--primary-blue-dark);
}

h3 {
    color: var(--primary-blue);
}

/* Link Styling */
a {
    color: var(--primary-blue);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-blue-dark);
}

/* Section Backgrounds */
.section:nth-child(even) {
    background-color: var(--light-bg);
}

/* Card Enhancements */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Blog Card Title Links */
.card-title a {
    color: #1e293b;
}

.card-title a:hover {
    color: var(--primary-blue);
}

/* Tag Styling */
.label-secondary {
    background-color: var(--accent-teal);
    color: white;
}

.label-secondary:hover {
    background-color: #0f766e;
}

/* ===================================
   HOMEPAGE HERO SECTION - ENHANCED
   Make this the most impactful first impression!
   =================================== */

/* Hero section for homepage - main title area */
.title-center.title-h1h2 #body-wrapper > .container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Style the H1 - Main headline */
.title-center.title-h1h2 h1:first-of-type {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1e40af;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

/* Add decorative element before H1 */
.title-center.title-h1h2 h1:first-of-type::before {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #0d9488 100%);
    margin: 0 auto 1.5rem auto;
    border-radius: 2px;
}

/* Style the H2 with icon - Subheadline */
.title-center.title-h1h2 h1:first-of-type + h2 {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Make the icon in H2 more prominent */
.title-center.title-h1h2 h1:first-of-type + h2 i {
    font-size: 1.8rem;
    vertical-align: middle;
    margin-right: 0.5rem;
    color: #f97316;
}

/* Hero background box */
.title-center.title-h1h2 #body-wrapper > .container::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px;
    height: 500px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 10px 30px rgba(37,99,235,0.1);
    z-index: -1;
}

/* Add subtle pattern overlay */
.title-center.title-h1h2 #body-wrapper > .container::after {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px;
    height: 500px;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(37,99,235,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(13,148,136,0.05) 0%, transparent 50%);
    border-radius: 20px;
    z-index: -1;
    pointer-events: none;
}

/* Hero Section Enhancement - General */
.hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(13, 148, 136, 0.05) 100%);
}

/* Hero CTA Buttons */
.hero-cta-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.hero-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.4);
    color: white;
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-cta-secondary:hover {
    color: var(--primary-blue-dark);
    transform: translateX(4px);
}

/* Responsive adjustments for hero */
@media (max-width: 960px) {
    .title-center.title-h1h2 h1:first-of-type {
        font-size: 2.25rem;
    }

    .title-center.title-h1h2 h1:first-of-type + h2 {
        font-size: 1.25rem;
    }

    .title-center.title-h1h2 #body-wrapper > .container::before,
    .title-center.title-h1h2 #body-wrapper > .container::after {
        height: 550px;
    }

    .hero-cta-button {
        font-size: 1rem;
        padding: 0.875rem 1.75rem;
    }

    .hero-cta-secondary {
        font-size: 0.9375rem;
    }
}

@media (max-width: 600px) {
    .title-center.title-h1h2 h1:first-of-type {
        font-size: 1.75rem;
        margin-top: 2rem;
    }

    .title-center.title-h1h2 h1:first-of-type + h2 {
        font-size: 1.1rem;
    }

    .title-center.title-h1h2 #body-wrapper > .container::before,
    .title-center.title-h1h2 #body-wrapper > .container::after {
        height: 650px;
        top: -1rem;
    }

    .hero-cta-container {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .hero-cta-button {
        width: 100%;
        justify-content: center;
        font-size: 0.9375rem;
        padding: 0.875rem 1.5rem;
    }

    .hero-cta-secondary {
        font-size: 0.875rem;
    }
}

/* Highlight Boxes for Key Sections */
.content strong {
    color: var(--primary-blue);
}

/* ===================================
   AGENCY LOGOS SECTION
   Professional client showcase
   =================================== */

.agency-logos-section {
    margin: 3rem 0;
    padding: 2rem 0;
    text-align: center;
}

.agency-logos-section h3 {
    font-size: 1.5rem;
    color: var(--primary-blue-dark);
    margin-bottom: 2rem;
    font-weight: 600;
}

.agency-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
}

.agency-logo-item {
    width: 100%;
    max-width: 200px;
    transition: all 0.3s ease;
}

.agency-logo-item img {
    width: 100%;
    height: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.agency-logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Responsive adjustments for logos */
@media (max-width: 768px) {
    .agency-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .agency-logos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .agency-logo-item {
        max-width: 160px;
    }
}

/* ===================================
   Safe Bootstrap Lite Utilities
   (Compatible with Quark Theme)
   Added: [Current Date]
   =================================== */

/* Text Colors */
.text-primary { color: #0d6efd; }
.text-secondary { color: #6c757d; }
.text-success { color: #198754; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #0dcaf0; }
.text-muted { color: #6c757d; }
.text-dark { color: #212529; }
.text-challenge { color: #F97316; }
.text-delivered { color: #4F91FF; }
.text-impact { color: #20A148; }

/* Project Card Styling */
.project-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Background Colors */
.bg-primary { background-color: #0d6efd; color: white; padding: 0.5rem; }
.bg-success { background-color: #198754; color: white; padding: 0.5rem; }
.bg-danger { background-color: #dc3545; color: white; padding: 0.5rem; }
.bg-warning { background-color: #ffc107; color: #212529; padding: 0.5rem; }
.bg-info { background-color: #0dcaf0; color: #212529; padding: 0.5rem; }
.bg-light { background-color: #f8f9fa; color: #212529; padding: 0.5rem; }

/* Text Alignment */
.text-start { text-align: left; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.text-justify { text-align: justify; }

/* Font Weight & Style */
.fw-bold { font-weight: 700; }
.fw-bolder { font-weight: bolder; }
.fw-semibold { font-weight: 600; }
.fw-normal { font-weight: 400; }
.fw-light { font-weight: 300; }
.fst-italic { font-style: italic; }
.fst-normal { font-style: normal; }

/* Text Transform */
.text-lowercase { text-transform: lowercase; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }

/* Display Utilities */
.d-none { display: none; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-block { display: block; }

/* Border Utilities */
.border { border: 1px solid #dee2e6; }
.border-top { border-top: 1px solid #dee2e6; }
.border-bottom { border-bottom: 1px solid #dee2e6; }
.border-start { border-left: 1px solid #dee2e6; }
.border-end { border-right: 1px solid #dee2e6; }
.border-0 { border: 0; }
.rounded { border-radius: 0.375rem; }
.rounded-circle { border-radius: 50%; }

/* Shadow Utilities */
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); }
.shadow { box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175); }
.shadow-none { box-shadow: none; }

/* Opacity */
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Spacing - Margins */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 1rem; }
.m-4 { margin: 1.5rem; }
.m-5 { margin: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }
.ms-3 { margin-left: 1rem; }
.ms-4 { margin-left: 1.5rem; }
.ms-5 { margin-left: 3rem; }

.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.me-4 { margin-right: 1.5rem; }
.me-5 { margin-right: 3rem; }

.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-3 { margin-left: 1rem; margin-right: 1rem; }
.mx-4 { margin-left: 1.5rem; margin-right: 1.5rem; }
.mx-5 { margin-left: 3rem; margin-right: 3rem; }

.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }

/* Spacing - Padding */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }

.ps-1 { padding-left: 0.25rem; }
.ps-2 { padding-left: 0.5rem; }
.ps-3 { padding-left: 1rem; }
.ps-4 { padding-left: 1.5rem; }
.ps-5 { padding-left: 3rem; }

.pe-1 { padding-right: 0.25rem; }
.pe-2 { padding-right: 0.5rem; }
.pe-3 { padding-right: 1rem; }
.pe-4 { padding-right: 1.5rem; }
.pe-5 { padding-right: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
